freebsd-dev/tests/sys
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
..
acl
aio
audit Extend the length of dirpath to fix failure in kyua test 2022-04-12 09:23:56 -07:00
auditpipe
capsicum
cddl zfs: Update test format strings to match variable typtes 2022-03-01 12:21:40 -05:00
common Reenable vnet tests in CI 2022-05-05 14:38:08 -04:00
devrandom
fifo Avoid hard-coding pipe buffer sizes in the pipe and fifo kqueue tests. 2020-05-20 17:48:18 +00:00
file path_test: Verify that operations on unlinked files work 2022-04-18 17:55:24 -04:00
fs fusefs tests: Remove an unused variable. 2022-05-13 20:52:14 +03:00
geom Skip sys.geom.class.multipath.failloop.failloop if dtrace fails to run 2022-03-08 18:12:40 +08:00
kern unix: change error code for recvmsg() failed due to RLIMIT_NOFILE 2022-06-29 09:42:58 -07:00
kqueue kqueue tests: Simplify the test runner 2022-05-24 20:17:41 -04:00
mac
mqueue
net if_ovpn: deal with short packets 2022-07-05 19:27:00 +02:00
netgraph
netinet Add tests for TCP_MD5 getsockopt 2022-06-23 15:57:56 +01:00
netinet6 netinet6: fix ndp proxying 2022-05-30 10:53:33 +00:00
netipsec
netmap
netpfil pf: handle dummynet for non-IP packets 2022-07-01 14:31:57 +02:00
opencrypto
pjdfstest
posixshm Have posixshm_test ask the kernel for the page size 2022-04-20 14:44:52 +01:00
ses tests/sys/ses: Use ANSI C definition for has_ses. 2022-02-01 13:25:47 -08:00
sys bitstring_test: Add regression tests for bit_ff(c|s)_area_at() 2022-05-20 10:36:05 -04:00
vfs
vm mmap map_at_zero test: handle W^X 2022-02-21 09:43:42 -06:00
vmm
Makefile Add tests for ses(4) 2022-01-19 12:43:51 -07:00
Makefile.depend
Makefile.inc