linux/drivers/message/fusion
Tomas Henzl afe89f115e scsi: mptscsih: Fix read sense data size
The sense data buffer in sense_buf_pool is allocated with size of
MPT_SENSE_BUFFER_ALLOC(64) (multiplied by req_depth) while SNS_LEN(sc)(96)
is used when reading the data.  That may lead to a read from unallocated
area, sometimes from another (unallocated) page.  To fix this, limit the
read size to MPT_SENSE_BUFFER_ALLOC.

Link: https://lore.kernel.org/r/20200616150446.4840-1-thenzl@redhat.com
Co-developed-by: Stanislav Saner <ssaner@redhat.com>
Signed-off-by: Stanislav Saner <ssaner@redhat.com>
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-06-24 00:23:17 -04:00
..
lsi
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
mptbase.c scsi: docs: fusion: get rid of a doc build warning 2020-04-13 14:20:00 -04:00
mptbase.h
mptctl.c scsi: mptfusion: Fix double fetch bug in ioctl 2020-01-15 23:05:52 -05:00
mptctl.h
mptdebug.h
mptfc.c
mptlan.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
mptlan.h scsi: fusion: fix if-statement empty body warning 2020-03-11 23:07:57 -04:00
mptsas.c
mptsas.h scsi: message: fusion: Replace zero-length array with flexible-array member 2020-03-26 22:40:47 -04:00
mptscsih.c scsi: mptscsih: Fix read sense data size 2020-06-24 00:23:17 -04:00
mptscsih.h
mptspi.c