summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2024-09-12 16:43:08 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-04 17:29:49 +0300
commit568c7c4c77eee6df7677bb861b7cee7398a3255d (patch)
tree89872b8caa5bcb8388533412d593c4608e245b40 /include/linux/fpga/fpga-mgr.h
parentfacf1e49a04a94ae4e1bd8267d766a2ee3dfd2ac (diff)
downloadlinux-568c7c4c77eee6df7677bb861b7cee7398a3255d.tar.xz
scsi: sd: Fix off-by-one error in sd_read_block_characteristics()
commit f81eaf08385ddd474a2f41595a7757502870c0eb upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions