Skip to content
Commit ce527668 authored by Andrea Parri (Microsoft)'s avatar Andrea Parri (Microsoft) Committed by Greg Kroah-Hartman
Browse files

scsi: storvsc: Fix validation for unsolicited incoming packets

[ Upstream commit 6fd13d69 ]

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: 91b1b640 ("scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()")
Reported-by: default avatarDexuan Cui <decui@microsoft.com>
Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
Reviewed-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 08d82a9b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment