summaryrefslogtreecommitdiff
path: root/drivers/message/fusion/mptctl.c
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2024-09-12 16:43:08 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2024-09-13 03:55:53 +0300
commitf81eaf08385ddd474a2f41595a7757502870c0eb (patch)
tree0887a467da8db0c7852a93c3826b8c29adc77a16 /drivers/message/fusion/mptctl.c
parenta141c17a543332fc1238eb5cba562bfc66879126 (diff)
downloadlinux-f81eaf08385ddd474a2f41595a7757502870c0eb.tar.xz
scsi: sd: Fix off-by-one error in sd_read_block_characteristics()
Ff the device returns page 0xb1 with length 8 (happens with qemu v2.x, for example), sd_read_block_characteristics() may attempt an out-of-bounds memory access when accessing the zoned field at offset 8. Fixes: 7fb019c46eee ("scsi: sd: Switch to using scsi_device VPD pages") Cc: stable@vger.kernel.org Signed-off-by: Martin Wilck <mwilck@suse.com> Link: https://lore.kernel.org/r/20240912134308.282824-1-mwilck@suse.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
0 files changed, 0 insertions, 0 deletions