1. 09 Dec, 2011 4 commits
  2. 29 Nov, 2011 3 commits
  3. 28 Nov, 2011 11 commits
  4. 27 Nov, 2011 5 commits
  5. 26 Nov, 2011 5 commits
  6. 25 Nov, 2011 2 commits
    • Lars-Peter Clausen's avatar
      hwmon: Remove redundant spi driver bus initialization · b52fabca
      Lars-Peter Clausen authored
      In ancient times it was necessary to manually initialize the bus field of an
      spi_driver to spi_bus_type. These days this is done in spi_register_driver(),
      so we can drop the manual assignment.
      
      The patch was generated using the following coccinelle semantic patch:
      // <smpl>
      @@
      identifier _driver;
      @@
      struct spi_driver _driver = {
      	.driver = {
      -		.bus = &spi_bus_type,
      	},
      };
      // </smpl>
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: lm-sensors@lm-sensors.org
      Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
      b52fabca
    • Tejun Heo's avatar
      ext4: fix racy use-after-free in ext4_end_io_dio() · 4c81f045
      Tejun Heo authored
      ext4_end_io_dio() queues io_end->work and then clears iocb->private;
      however, io_end->work calls aio_complete() which frees the iocb
      object.  If that slab object gets reallocated, then ext4_end_io_dio()
      can end up clearing someone else's iocb->private, this use-after-free
      can cause a leak of a struct ext4_io_end_t structure.
      
      Detected and tested with slab poisoning.
      
      [ Note: Can also reproduce using 12 fio's against 12 file systems with the
        following configuration file:
      
        [global]
        direct=1
        ioengine=libaio
        iodepth=1
        bs=4k
        ba=4k
        size=128m
      
        [create]
        filename=${TESTDIR}
        rw=write
      
        -- tytso ]
      
      Google-Bug-Id: 5354697
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      Reported-by: default avatarKent Overstreet <koverstreet@google.com>
      Tested-by: default avatarKent Overstreet <koverstreet@google.com>
      Cc: stable@kernel.org
      4c81f045
  7. 24 Nov, 2011 10 commits