1. 20 3月, 2006 9 次提交
  2. 19 3月, 2006 2 次提交
  3. 17 3月, 2006 3 次提交
    • K
      [PATCH] dm stripe: Fix bounds · 8ba32fde
      Kevin Corry 提交于
      The dm-stripe target currently does not enforce that the size of a stripe
      device be a multiple of the chunk-size.  Under certain conditions, this can
      lead to I/O requests going off the end of an underlying device.  This
      test-case shows one example.
      
      echo "0 100 linear /dev/hdb1 0" | dmsetup create linear0
      echo "0 100 linear /dev/hdb1 100" | dmsetup create linear1
      echo "0 200 striped 2 32 /dev/mapper/linear0 0 /dev/mapper/linear1 0" | \
         dmsetup create stripe0
      dd if=/dev/zero of=/dev/mapper/stripe0 bs=1k
      
      This will produce the output:
      dd: writing '/dev/mapper/stripe0': Input/output error
      97+0 records in
      96+0 records out
      
      And in the kernel log will be:
      attempt to access beyond end of device
      dm-0: rw=0, want=104, limit=100
      
      The patch will check that the table size is a multiple of the stripe
      chunk-size when the table is created, which will prevent the above striped
      device from being created.
      
      This should not affect tools like LVM or EVMS, since in all the cases I can
      think of, striped devices are always created with the sizes being a
      multiple of the chunk-size.
      
      The size of a stripe device must be a multiple of its chunk-size.
      
      (akpm: that typecast is quite gratuitous)
      Signed-off-by: NKevin Corry <kevcorry@us.ibm.com>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      8ba32fde
    • S
      [netdrvr] fix array overflows in Chelsio driver · 232a347a
      Scott Bardone 提交于
      Adrian Bunk wrote:
      > The Coverity checker spotted the following two array overflows in
      > drivers/net/chelsio/sge.c (in both cases, the arrays contain 3
      > elements):
      [snip]
      
      This is a bug. The array should contain 2 elements.  Here is the fix.
      Signed-off-by: NScott Bardone <sbardone@chelsio.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      232a347a
    • D
      [PATCH] e1000 endianness bugs · c3d7a3a4
      David S. Miller 提交于
      	return -E_NO_BIG_ENDIAN_TESTING;
      
      [E1000]: Fix 4 missed endianness conversions on RX descriptor fields.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      c3d7a3a4
  4. 16 3月, 2006 1 次提交
  5. 15 3月, 2006 1 次提交
  6. 14 3月, 2006 4 次提交
  7. 12 3月, 2006 20 次提交