freebsd-src/tests/sys/net
Kristof Provost 6ba6c05cb2 if_ovpn: deal with short packets
If we receive a UDP packet (directed towards an active OpenVPN socket)
which is too short to contain an OpenVPN header ('struct
ovpn_wire_header') we wound up making m_copydata() read outside the
mbuf, and panicking the machine.

Explicitly check that the packet is long enough to copy the data we're
interested in. If it's not we will pass the packet to userspace, just
like we'd do for an unknown peer.

Extend a test case to provoke this situation.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2022-07-05 19:27:00 +02:00
..
if_ovpn if_ovpn: deal with short packets 2022-07-05 19:27:00 +02:00
routing routing: add multipath pytest tests 2022-06-25 19:29:11 +00:00
dhclient_pcp.conf net tests: basic test case for bpf(4)'s ability to set vlan pcp 2021-07-26 23:13:31 +02:00
if_bridge_test.sh if_bridge tests: test adding interfaces with different MTU 2022-06-27 08:27:28 +02:00
if_clone_test.sh if: avoid interface destroy race 2022-05-06 13:55:08 +02:00
if_epair.c tests/sys/net/epair: don't leak the interface after the test 2022-01-26 21:08:50 -08:00
if_gif.sh net tests: basic if_gif(4) test case 2021-11-08 12:00:00 +01:00
if_lagg_test.sh Skip sys.net.if_lagg_test.status_stress in CI 2021-10-12 05:40:24 +08:00
if_stf.sh net tests: fix if_stf:6to4 2021-11-20 19:29:02 +01:00
if_tun_test.sh
if_vlan.sh vlan tests: fix bpf_pcp test 2022-02-15 07:53:30 +01:00
Makefile if_ovpn tests: basic test case 2022-06-28 13:50:37 +02:00
pcp.py net tests: basic test case for bpf(4)'s ability to set vlan pcp 2021-07-26 23:13:31 +02:00
randsleep.c Properly fix GCC build in r357867 2020-02-14 09:25:29 +00:00
stp.py tests: Only log critical errors from scapy 2021-05-12 20:54:30 +02:00