1. 04 Oct, 2010 5 commits
    • Linus Torvalds's avatar
      Merge branch 'merge-spi' of git://git.secretlab.ca/git/linux-2.6 · 989cd445
      Linus Torvalds authored
      * 'merge-spi' of git://git.secretlab.ca/git/linux-2.6:
        of/spi: Fix OF-style driver binding of spi devices
        spi: spi-gpio.c tests SPI_MASTER_NO_RX bit twice, but not SPI_MASTER_NO_TX
        spi/mpc8xxx: fix buffer overrun on large transfers
      989cd445
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 4a73a437
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
        vlan: dont drop packets from unknown vlans in promiscuous mode
        Phonet: Correct header retrieval after pskb_may_pull
        um: Proper Fix for f25c80a4: remove duplicate structure field initialization
        ip_gre: Fix dependencies wrt. ipv6.
        net-2.6: SYN retransmits: Add new parameter to retransmits_timed_out()
        iwl3945: queue the right work if the scan needs to be aborted
        mac80211: fix use-after-free
      4a73a437
    • Linus Torvalds's avatar
      Merge branch 'drm-intel-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel · c470af0a
      Linus Torvalds authored
      * 'drm-intel-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel:
        drm/i915: Rephrase pwrite bounds checking to avoid any potential overflow
        drm/i915: Sanity check pread/pwrite
        drm/i915: Use pipe state to tell when pipe is off
        drm/i915: vblank status not valid while training display port
        drivers/gpu/drm/i915/i915_gem.c: Add missing error handling code
        drm/i915: Fix refleak during eviction.
        drm/i915: fix GMCH power reporting
      c470af0a
    • Hugh Dickins's avatar
      ksm: fix bad user data when swapping · 4e31635c
      Hugh Dickins authored
      
      Building under memory pressure, with KSM on 2.6.36-rc5, collapsed with
      an internal compiler error: typically indicating an error in swapping.
      
      Perhaps there's a timing issue which makes it now more likely, perhaps
      it's just a long time since I tried for so long: this bug goes back to
      KSM swapping in 2.6.33.
      
      Notice how reuse_swap_page() allows an exclusive page to be reused, but
      only does SetPageDirty if it can delete it from swap cache right then -
      if it's currently under Writeback, it has to be left in cache and we
      don't SetPageDirty, but the page can be reused.  Fine, the dirty bit
      will get set in the pte; but notice how zap_pte_range() does not bother
      to transfer pte_dirty to page_dirty when unmapping a PageAnon.
      
      If KSM chooses to share such a page, it will look like a clean copy of
      swapcache, and not be written out to swap when its memory is needed;
      then stale data read back from swap when it's needed again.
      
      We could fix this in reuse_swap_page() (or even refuse to reuse a
      page under writeback), but it's more honest to fix my oversight in
      KSM's write_protect_page().  Several days of testing on three machines
      confirms that this fixes the issue they showed.
      Signed-off-by: default avatarHugh Dickins <hughd@google.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andrea Arcangeli <aarcange@redhat.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4e31635c
    • Hugh Dickins's avatar
      ksm: fix page_address_in_vma anon_vma oops · 4829b906
      Hugh Dickins authored
      2.6.36-rc1 commit 21d0d443 "rmap:
      resurrect page_address_in_vma anon_vma check" was right to resurrect
      that check; but now that it's comparing anon_vma->roots instead of
      just anon_vmas, there's a danger of oopsing on a NULL anon_vma.
      
      In most cases no NULL anon_vma ever gets here; but it turns out that
      occasionally KSM, when enabled on a forked or forking process, will
      itself call page_address_in_vma() on a "half-KSM" page left over from
      an earlier failed attempt to merge - whose page_anon_vma() is NULL.
      
      It's my bug that those should be getting here at all: I thought they
      were already dealt with, this oops proves me wrong, I'll fix it in
      the next release - such pages are effectively pinned until their
      process exits, since rmap cannot find their ptes (though swapoff can).
      
      For now just work around it by making page_address_in_vma() safe (and
      add a comment on why that check is wanted anyway).  A similar check
      in __page_check_anon_rm...
      4829b906
  2. 03 Oct, 2010 6 commits
  3. 02 Oct, 2010 1 commit
  4. 01 Oct, 2010 28 commits