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

hv_netvsc: Reset the RSC count if NVSP_STAT_FAIL in netvsc_receive()

[ Upstream commit 12bc8dfb ]

Commit 44144185

 ("hv_netvsc: Add validation for untrusted Hyper-V
values") added validation to rndis_filter_receive_data() (and
rndis_filter_receive()) which introduced NVSP_STAT_FAIL-scenarios where
the count is not updated/reset.  Fix this omission, and prevent similar
scenarios from occurring in the future.

Reported-by: default avatarJuan Vazquez <juvazq@microsoft.com>
Signed-off-by: default avatarAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Fixes: 44144185

 ("hv_netvsc: Add validation for untrusted Hyper-V values")
Reviewed-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Link: https://lore.kernel.org/r/20210203113602.558916-1-parri.andrea@gmail.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 23b2eac8
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