summaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_pscsi.c
diff options
context:
space:
mode:
authorDarrick J. Wong2011-02-01 03:47:54 +0100
committerJames Bottomley2011-02-12 18:21:56 +0100
commita361cc0025614fdd07f5f69aeeaa8075530870bc (patch)
tree419b9ae33664d20e6df60e78bf51f2d320548cf1 /drivers/target/target_core_pscsi.c
parent[SCSI] qla2xxx: Change from irq to irqsave with host_lock (diff)
downloadkernel-qcow2-linux-a361cc0025614fdd07f5f69aeeaa8075530870bc.tar.gz
kernel-qcow2-linux-a361cc0025614fdd07f5f69aeeaa8075530870bc.tar.xz
kernel-qcow2-linux-a361cc0025614fdd07f5f69aeeaa8075530870bc.zip
[SCSI] scsi_debug: Fix 32-bit overflow in do_device_access causing memory corruption
If I create a scsi_debug device that is larger than 4GB, the multiplication of (block * scsi_debug_sector_size) can produce a 64-bit value. Unfortunately, the compiler sees two 32-bit quantities and performs a 32-bit multiplication, thus truncating the bits above 2^32. This causes the wrong memory location to be read or written. Change block and rest to be unsigned long long. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/target/target_core_pscsi.c')
0 files changed, 0 insertions, 0 deletions