1. 31 Oct, 2009 3 commits
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://neil.brown.name/md · bf699c9b
      Linus Torvalds authored
      * 'for-linus' of git://neil.brown.name/md:
        async_tx: fix asynchronous raid6 recovery for ddf layouts
        async_pq: rename scribble page
        async_pq: kill a stray dma_map() call and other cleanups
        md/raid6: kill a gcc-4.0.1 'uninitialized variable' warning
        raid6/async_tx: handle holes in block list in async_syndrome_val
        md/async: don't pass a memory pointer as a page pointer.
        md: Fix handling of raid5 array which is being reshaped to fewer devices.
        md: fix problems with RAID6 calculations for DDF.
        md/raid456: downlevel multicore operations to raid_run_ops
        md: drivers/md/unroll.pl replaced with awk analog
        md: remove clumsy usage of do_sync_mapping_range from bitmap code
        md: raid1/raid10: handle allocation errors during array setup.
        md/raid5: initialize conf->device_lock earlier
        md/raid1/raid10: add a cond_resched
        Revert "md: do not progress the resync process if the stripe was blocked"
      bf699c9b
    • OGAWA Hirofumi's avatar
      dpt_i2o: Fix typo of EINVAL · aefba418
      OGAWA Hirofumi authored
      Commit ef7562b7 ("dpt_i2o: Fix up
      copy*user") had a silly typo: EINVAL should be -EINVAL.
      Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Cc: stable@kernel.org
      Cc: Alan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      aefba418
    • David Howells's avatar
      NOMMU: Don't pass NULL pointers to fput() in do_mmap_pgoff() · 89a86402
      David Howells authored
      Don't pass NULL pointers to fput() in the error handling paths of the NOMMU
      do_mmap_pgoff() as it can't handle it.
      
      The following can be used as a test program:
      
      	int main() { static long long a[1024 * 1024 * 20] = { 0 }; return a;}
      
      Without the patch, the code oopses in atomic_long_dec_and_test() as called by
      fput() after the kernel complains that it can't allocate that big a chunk of
      memory.  With the patch, the kernel just complains about the allocation size
      and then the program segfaults during execve() as execve() can't complete the
      allocation of all the new ELF program segments.
      Reported-by: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Acked-by: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      89a86402
  2. 29 Oct, 2009 37 commits