git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72859d9
)
target: Add missing WRITE_SAME end-of-device sanity check
author
Nicholas Bellinger
<nab@linux-iscsi.org>
Fri, 13 Feb 2015 22:09:47 +0000
(22:09 +0000)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Sat, 14 Feb 2015 02:09:35 +0000
(
02:09
+0000)
This patch adds a check to sbc_setup_write_same() to verify
the incoming WRITE_SAME LBA + number of blocks does not exceed
past the end-of-device.
Also check for potential LBA wrap-around as well.
Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org # 3.8+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
patch
|
blob
|
history
diff --cc
drivers/target/target_core_sbc.c
Simple merge