diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2013-09-06 17:49:51 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-11 18:44:00 +0200 |
commit | 984f1733fcee3fbc78d47e26c5096921c5d9946a (patch) | |
tree | 2f36698d0e3a90f653d5c6673c2144b3530cb1c6 /drivers/bus | |
parent | [SCSI] lpfc 8.3.42: Update lpfc version to driver version 8.3.42 (diff) | |
download | linux-984f1733fcee3fbc78d47e26c5096921c5d9946a.tar.xz linux-984f1733fcee3fbc78d47e26c5096921c5d9946a.zip |
[SCSI] sd: Fix potential out-of-bounds access
This patch fixes an out-of-bounds error in sd_read_cache_type(), found
by Google's AddressSanitizer tool. When the loop ends, we know that
"offset" lies beyond the end of the data in the buffer, so no Caching
mode page was found. In theory it may be present, but the buffer size
is limited to 512 bytes.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
CC: <stable@vger.kernel.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions