19 Apr, 2008

19 commits


26 Mar, 2008

4 commits


25 Mar, 2008

17 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    [PATCH] get stack footprint of pathname resolution back to relative sanity
    [PATCH] double iput() on failure exit in hugetlb
    [PATCH] double dput() on failure exit in tiny-shmem
    [PATCH] fix up new filp allocators
    [PATCH] check for null vfsmount in dentry_open()
    [PATCH] reiserfs: eliminate private use of struct file in xattr
    [PATCH] sanitize hppfs
    hppfs pass vfsmount to dentry_open()
    [PATCH] restore export of do_kern_mount()

    Linus Torvalds
     
  • While backporting 72dc67a69690288538142df73a7e3ac66fea68dc, a gfn_to_page()
    call was duplicated instead of moved (due to an unrelated patch not being
    present in mainline). This caused a page reference leak, resulting in a
    fairly massive memory leak.

    Fix by removing the extraneous gfn_to_page() call.

    Signed-off-by: Avi Kivity

    Avi Kivity
     
  • init_rmode_tss was forgotten during the conversion from mmap_sem to
    slots_lock.

    INFO: task qemu-system-x86:3748 blocked for more than 120 seconds.
    Call Trace:
    [] __down_read+0x86/0x9e
    [] do_page_fault+0x346/0x78e
    [] trace_hardirqs_on_thunk+0x35/0x3a
    [] error_exit+0x0/0xa9
    [] copy_user_generic_string+0x17/0x40
    [] :kvm:kvm_write_guest_page+0x3e/0x5f
    [] :kvm_intel:init_rmode_tss+0xa7/0xf9
    [] :kvm_intel:vmx_vcpu_reset+0x10/0x38a
    [] :kvm:kvm_arch_vcpu_setup+0x20/0x53
    [] :kvm:kvm_vm_ioctl+0xad/0x1cf
    [] __lock_acquire+0x4f7/0xc28
    [] vfs_ioctl+0x21/0x6b
    [] do_vfs_ioctl+0x252/0x26b
    [] sys_ioctl+0x3c/0x5e
    [] system_call_after_swapgs+0x7b/0x80

    Signed-off-by: Marcelo Tosatti
    Signed-off-by: Avi Kivity

    Marcelo Tosatti
     
  • Do not assume that a shadow mapping will always point to the same host
    frame number. Fixes crash with madvise(MADV_DONTNEED).

    [avi: move after first printk(), add another printk()]

    Signed-off-by: Marcelo Tosatti
    Signed-off-by: Avi Kivity

    Marcelo Tosatti
     
  • is_rmap_pte() doesn't take into account io ptes, which have the avail bit set.

    Signed-off-by: Avi Kivity

    Avi Kivity
     
  • The vmx hardware state restore restores the tss selector and base address, but
    not its length. Usually, this does not matter since most of the tss contents
    is within the default length of 0x67. However, if a process is using ioperm()
    to grant itself I/O port permissions, an additional bitmap within the tss,
    but outside the default length is consulted. The effect is that the process
    will receive a SIGSEGV instead of transparently accessing the port.

    Fix by restoring the tss length. Note that i386 had this working already.

    Closes bugzilla 10246.

    Signed-off-by: Avi Kivity

    Avi Kivity
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: Fix cut-and-paste error in rtl8150.c
    USB: ehci: stop vt6212 bus hogging
    USB: sierra: add another device id
    USB: sierra: dma fixes
    USB: add support for Motorola ROKR Z6 cellphone in mass storage mode
    USB: isd200: fix memory leak in isd200_get_inquiry_data
    USB: pl2303: another product ID
    USB: new quirk flag to avoid Set-Interface
    USB: fix gadgetfs class request delegation

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6:
    driver core: debug for bad dev_attr_show() return value.
    UIO: add pgprot_noncached() to UIO mmap code

    Linus Torvalds
     
  • Revert as it is reported to cause problems for people.

    commit 4348a2dc49f9baecd34a9b0904245488c6189398
    Author: Shaohua Li
    Date: Wed Oct 24 10:45:08 2007 +0800

    pcie: utilize pcie transaction pending bit

    PCIE has a mechanism to wait for Non-Posted request to complete. I think
    pci_disable_device is a good place to do this.

    Signed-off-by: Shaohua Li
    Signed-off-by: Greg Kroah-Hartman

    Due to the regression reported at
    http://bugzilla.kernel.org/show_bug.cgi?id=10065

    Cc: Shaohua Li
    Cc: Soeren Sonnenburg
    Cc: "Rafael J. Wysocki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • lockdep goes off on the iova copy_reserved_iova() because it and a function
    it calls grabs locks in the from, and the to of the copy operation.

    The function grab locks of the same lock classes triggering the warning. The
    first lock grabbed is for the constant reserved areas that is never accessed
    after early boot. Technically you could do without grabbing the locks for the
    "from" structure its copying reserved areas from.

    But dropping the from locks to me looks wrong, even though it would be ok.

    The affected code only runs in early boot as its setting up the DMAR
    engines.

    This patch gives the reserved_ioval_list locks special lockdep classes.

    Signed-off-by: Mark Gross
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Mark Gross
     
  • Try to find the culprit who caused
    http://bugzilla.kernel.org/show_bug.cgi?id=10150

    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • Mapping of physical memory in UIO needs pgprot_noncached() to ensure
    that IO memory is not cached. Without pgprot_noncached(), it (accidentally)
    works on x86 and arm, but fails on PPC.

    Signed-off-by: Jean-Samuel Chenard
    Signed-off-by: Hans J Koch
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Jean-Samuel Chenard
     
  • Signed-off-by: Robert P. J. Day
    Signed-off-by: Greg Kroah-Hartman

    Robert P. J. Day
     
  • The VIA VT6212 defaults to only waiting 1us between passes over EHCI's
    async ring, which hammers PCI badly ... and by preventing other devices
    from accessing the bus, causes problems like drops in IDE throughput,
    a problem that's been bugging users of those chips for several years.

    A (partial) datasheet for this chip eventually turned up, letting us
    see how to make it use a VIA-specific register to switch over to the
    the normal 10us value instead, as suggested by the EHCI specification
    Solution noted by Lev A. Melnikovsky.

    It's not clear whether this register exists on other VIA chips; we
    know that it's ineffective on the vt8235. So this patch only applies
    to chips that seem to be incarnations of the (discrete) vt6212.

    Signed-off-by: Rene Herman
    Tested-by: Lev A. Melnikovsky
    Tested-by: Alessandro Suardi
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Rene Herman
     
  • Add support for the MC8775 device to the sierra driver.

    Signed-off-by: Kevin Lloyd
    Signed-off-by: Greg Kroah-Hartman

    Kevin Lloyd
     
  • while I was adding autosuspend to that driver I noticed a few issues.
    You were having DMAed buffers as a part of a structure.
    This will fail on platforms that are not DMA-coherent (arm, sparc, ppc, ...)
    Please test this patch to fix it.

    Signed-off-by: Kevin Lloyd
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • Motorola ROKR Z6 cellphone has bugs in its USB, so it is impossible to use
    it as mass storage. Patch describes new "unusual" USB device for it with
    FIX_INQUIRY and FIX_CAPACITY flags and new BULK_IGNORE_TAG flag.
    Last flag relaxes check for equality of bcs->Tag and us->tag in
    usb_stor_Bulk_transport routine.

    Signed-off-by: Constantin Baranov
    Signed-off-by: Matthew Dharm
    Signed-off-by: Daniel Drake
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Constantin Baranov