linux-stable/drivers/net/hyperv
Kees Cook f2fcffe392 hv_netvsc: Avoid field-overflowing memcpy()
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
intentionally writing across neighboring fields.

Add flexible array to represent start of buf_info, improving readability
and avoid future warning where memcpy() thinks it is writing past the
end of the structure.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-22 10:20:51 -07:00
..
hyperv_net.h hv_netvsc: Avoid field-overflowing memcpy() 2021-06-22 10:20:51 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile hv_netvsc: Add XDP support 2020-01-25 10:43:19 +01:00
netvsc.c hv_netvsc: Add error handling while switching data path 2021-03-29 16:35:59 -07:00
netvsc_bpf.c hv_netvsc: Add (more) validation for untrusted Hyper-V values 2021-01-18 19:47:47 -08:00
netvsc_drv.c hv_netvsc: Make netvsc/VF binding check both MAC and serial number 2021-04-25 18:19:23 -07:00
netvsc_trace.c
netvsc_trace.h
rndis_filter.c hv_netvsc: Avoid field-overflowing memcpy() 2021-06-22 10:20:51 -07:00