diff options
author | Andrea Parri (Microsoft) <[email protected]> | 2021-10-07 14:28:28 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-10-12 21:59:50 -0400 |
commit | 6fd13d699d24beaa28310848fe65fd898fbb9043 (patch) | |
tree | 24fa8cf6809715d9a0f27dfbf96a37cb7be863c9 /lib/test_overflow.c | |
parent | 187a580c9e7895978dcd1e627b9c9e7e3d13ca96 (diff) |
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/[email protected]
Fixes: 91b1b640b834b2 ("scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()")
Reported-by: Dexuan Cui <[email protected]>
Reviewed-by: Michael Kelley <[email protected]>
Reviewed-by: Haiyang Zhang <[email protected]>
Signed-off-by: Andrea Parri (Microsoft) <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions