net/netvsc: check for overflow on packet info from host
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 11 Aug 2020 02:33:14 +0000 (19:33 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:06 +0000 (18:55 +0200)
commit7838d3a6ae7a4ae8b3e994efe0d7d9f814941841
tree05a0e244e9fd7ff5e847b418798faec2c7181dcd
parent0caf5621a4cdaadb40c7686d86bf58dd841057d3
net/netvsc: check for overflow on packet info from host

The data from the host is trusted but checked by the driver.
One check that is missing is that the packet offset and length
might cause wraparound.

Cc: stable@dpdk.org
Reported-by: Nan Chen <whutchennan@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Long Li <longli@microsoft.com>
drivers/net/netvsc/hn_rxtx.c