summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_sysfs.c
diff options
context:
space:
mode:
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>2021-10-07 15:28:28 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-13 04:59:50 +0300
commit6fd13d699d24beaa28310848fe65fd898fbb9043 (patch)
tree24fa8cf6809715d9a0f27dfbf96a37cb7be863c9 /drivers/scsi/scsi_sysfs.c
parent187a580c9e7895978dcd1e627b9c9e7e3d13ca96 (diff)
downloadlinux-6fd13d699d24beaa28310848fe65fd898fbb9043.tar.xz
scsi: storvsc: Fix validation for unsolicited incoming packets
The validation on the length of incoming packets performed in storvsc_on_channel_callback() does not apply to unsolicited packets with ID of 0 sent by Hyper-V. Adjust the validation for such unsolicited packets. Link: https://lore.kernel.org/r/20211007122828.469289-1-parri.andrea@gmail.com Fixes: 91b1b640b834b2 ("scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()") Reported-by: Dexuan Cui <decui@microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
0 files changed, 0 insertions, 0 deletions