Skip to content
  1. Dec 01, 2011
  2. Nov 29, 2011
  3. Nov 24, 2011
    • Linus Torvalds's avatar
      Linux 3.2-rc3 · caca6a03
      Linus Torvalds authored
      caca6a03
    • Linus Torvalds's avatar
      Merge git://github.com/rustyrussell/linux · 9b82e65d
      Linus Torvalds authored
      * git://github.com/rustyrussell/linux:
        virtio-pci: make reset operation safer
        virtio-mmio: Correct the name of the guest features selector
        virtio: add HAS_IOMEM dependency to MMIO platform bus driver
      9b82e65d
    • Michael S. Tsirkin's avatar
      virtio-pci: make reset operation safer · e6af578c
      Michael S. Tsirkin authored
      
      
      virtio pci device reset actually just does an I/O
      write, which in PCI is really posted, that is it
      can complete on CPU before the device has received it.
      
      Further, interrupts might have been pending on
      another CPU, so device callback might get invoked after reset.
      
      This conflicts with how drivers use reset, which is typically:
      	reset
      	unregister
      a callback running after reset completed can race with
      unregister, potentially leading to use after free bugs.
      
      Fix by flushing out the write, and flushing pending interrupts.
      
      This assumes that device is never reset from
      its vq/config callbacks, or in parallel with being
      added/removed, document this assumption.
      
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      e6af578c
    • Sasha Levin's avatar
      virtio-mmio: Correct the name of the guest features selector · fe1a7fe2
      Sasha Levin authored
      
      
      Guest features selector spelling mistake.
      
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: virtualization@lists.linux-foundation.org
      Signed-off-by: default avatarSasha Levin <levinsasha928@gmail.com>
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      fe1a7fe2
    • Heiko Carstens's avatar
      virtio: add HAS_IOMEM dependency to MMIO platform bus driver · bd20817f
      Heiko Carstens authored
      
      
      Fix this compile error on s390:
      
        CC [M]  drivers/virtio/virtio_mmio.o
      drivers/virtio/virtio_mmio.c: In function 'vm_get_features':
      drivers/virtio/virtio_mmio.c:107:2: error: implicit declaration of function 'writel'
      
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
      Acked-by: default avatarPawel Moll <pawel.moll@arm.com>
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      bd20817f
    • Linus Torvalds's avatar
      Merge branch 'upstream-linus' of git://github.com/jgarzik/libata-dev · 8174a06e
      Linus Torvalds authored
      * 'upstream-linus' of git://github.com/jgarzik/libata-dev:
        libata: fix build without BMDMA
        [libata] ahci_platform: fix DT probing
      8174a06e
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci · 09521577
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci:
        PCI hotplug: shpchp: don't blindly claim non-AMD 0x7450 device IDs
        PCI: pciehp: wait 100 ms after Link Training check
        PCI: pciehp: wait 1000 ms before Link Training check
        PCI: pciehp: Retrieve link speed after link is trained
        PCI: Let PCI_PRI depend on PCI
        PCI: Fix compile errors with PCI_ATS and !PCI_IOV
        PCI / ACPI: Make acpiphp ignore root bridges using PCIe native hotplug
      09521577
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs · de7badf1
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs:
        eCryptfs: Extend array bounds for all filename chars
        eCryptfs: Flush file in vma close
        eCryptfs: Prevent file create race condition
      de7badf1
    • Tyler Hicks's avatar
      eCryptfs: Extend array bounds for all filename chars · 0f751e64
      Tyler Hicks authored
      
      
      From mhalcrow's original commit message:
      
          Characters with ASCII values greater than the size of
          filename_rev_map[] are valid filename characters.
          ecryptfs_decode_from_filename() will access kernel memory beyond
          that array, and ecryptfs_parse_tag_70_packet() will then decrypt
          those characters. The attacker, using the FNEK of the crafted file,
          can then re-encrypt the characters to reveal the kernel memory past
          the end of the filename_rev_map[] array. I expect low security
          impact since this array is statically allocated in the text area,
          and the amount of memory past the array that is accessible is
          limited by the largest possible ASCII filename character.
      
      This patch solves the issue reported by mhalcrow but with an
      implementation suggested by Linus to simply extend the length of
      filename_rev_map[] to 256. Characters greater than 0x7A are mapped to
      0x00, which is how invalid characters less than 0x7A were previously
      being handled.
      
      Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
      Reported-by: default avatarMichael Halcrow <mhalcrow@google.com>
      Cc: stable@kernel.org
      0f751e64
    • Tyler Hicks's avatar
      eCryptfs: Flush file in vma close · 32001d6f
      Tyler Hicks authored
      
      
      Dirty pages weren't being written back when an mmap'ed eCryptfs file was
      closed before the mapping was unmapped. Since f_ops->flush() is not
      called by the munmap() path, the lower file was simply being released.
      This patch flushes the eCryptfs file in the vm_ops->close() path.
      
      https://launchpad.net/bugs/870326
      
      Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
      Cc: stable@kernel.org [2.6.39+]
      32001d6f
    • Tyler Hicks's avatar
      eCryptfs: Prevent file create race condition · b59db43a
      Tyler Hicks authored
      
      
      The file creation path prematurely called d_instantiate() and
      unlock_new_inode() before the eCryptfs inode info was fully
      allocated and initialized and before the eCryptfs metadata was written
      to the lower file.
      
      This could result in race conditions in subsequent file and inode
      operations leading to unexpected error conditions or a null pointer
      dereference while attempting to use the unallocated memory.
      
      https://launchpad.net/bugs/813146
      
      Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
      Cc: stable@kernel.org
      b59db43a
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest · f10cdea6
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
        ktest: Check parent options for iterated tests
      f10cdea6
    • Linus Torvalds's avatar
      Merge branch 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging · 5907c5f8
      Linus Torvalds authored
      * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
        i2c: Make i2cdev_notifier_call static
        i2c: Delete ANY_I2C_BUS
        i2c: Fix device name for 10-bit slave address
        i2c-algo-bit: Generate correct i2c address sequence for 10-bit target
      5907c5f8
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator · 0a2c9865
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: TPS65910: Fix VDD1/2 voltage selector count
      0a2c9865
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · 2d0f2400
      Linus Torvalds authored
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux: (31 commits)
        drm: integer overflow in drm_mode_dirtyfb_ioctl()
        drivers/gpu/vga/vgaarb.c: add missing kfree
        drm/radeon/kms/atom: unify i2c gpio table handling
        drm/radeon/kms: fix up gpio i2c mask bits for r4xx for real
        ttm: Don't return the bo reserved on error path
        drm/radeon/kms: add a CS ioctl flag not to rewrite tiling flags in the CS
        drm/i915: Fix inconsistent backlight level during disabled
        drm, i915: Fix memory leak in i915_gem_busy_ioctl().
        drm/i915: Use DPCD value for max DP lanes.
        drm/i915: Initiate DP link training only on the lanes we'll be using
        drm/i915: Remove trailing white space
        drm/i915: Try harder during dp pattern 1 link training
        drm/i915: Make DP prepare/commit consistent with DP dpms
        drm/i915: Let panel power sequencing hardware do its job
        drm/i915: Treat PCH eDP like DP in most places
        drm/i915: Remove link_status field from intel_dp structure
        drm/i915: Move common PCH_PP_CONTROL setup to ironlake_get_pp_control
        drm/i915: Module parameters using '-1' as default must be signed type
        drm/i915: Turn on another required clock gating bit on gen6.
        drm/i915: Turn on a required 3D clock gating bit on Sandybridge.
        ...
      2d0f2400
  4. Nov 23, 2011