freebsd-dev/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
..
amd64 MIMIMAL: add uart 2022-07-01 11:24:51 -06:00
arm ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
arm64 pca954x: harmonize pca9547 and pca954x and add pca9540 support 2022-07-04 19:12:01 +00:00
bsm
cam ses: don't panic if disk elements have really weird descriptors 2022-06-23 11:19:20 -06:00
cddl loader: add support for gzip compression 2022-06-09 20:54:30 +03:00
compat linux(4): Implement __vdso_time 2022-07-04 23:41:32 +03:00
conf pca954x: harmonize pca9547 and pca954x and add pca9540 support 2022-07-04 19:12:01 +00:00
contrib Revert "rtw88: split driver up into a core and pci part" 2022-07-01 13:06:31 +00:00
crypto OpenSSL: Regen assembly file for OpenSSSL 1.1.1q 2022-07-05 12:06:50 -04:00
ddb ddb: add _FLAGS command variants 2022-07-05 11:56:42 -03:00
dev ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
dts sys/dts: Remove MIPS files 2022-05-20 17:11:27 +01:00
fs cuse(3): Remove PAGE_SIZE from libcuse. 2022-06-25 12:01:59 +02:00
gdb ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
geom ses: don't panic if disk elements have really weird descriptors 2022-06-23 11:19:20 -06:00
gnu bwn: eliminate dead writes in BWN_GPL_PHY 2022-05-04 09:32:59 -04:00
i386 elfnote: place note in a PT_NOTE program header 2022-06-28 09:51:57 +02:00
isa isa: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:59 -07:00
kern ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
kgssapi kgssapi krb5: Remove unused variables. 2022-04-06 16:45:29 -07:00
libkern libkern: Fix a typo in a source code comment 2022-06-05 08:57:26 +02:00
modules Revert "rtw88: split driver up into a core and pci part" 2022-07-01 13:06:31 +00:00
net if_ovpn: deal with short packets 2022-07-05 19:27:00 +02:00
net80211 net80211 / LinuxKPI: 802.11: add Control Trigger Subframe information 2022-06-17 22:55:13 +00:00
netgraph ng_ubt(4): Probe USB Bluetooth per USB interface and not per USB device. 2022-06-03 10:49:17 +02:00
netinet ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
netinet6 netinet6: perform out-of-bounds check for loX multicast statistics 2022-07-05 11:44:30 +00:00
netipsec ipsec_encap: setdf is only used for INET. 2022-04-13 16:08:21 -07:00
netpfil dummynet: fix ip_dn_vnet_init() / dummynet_task() race 2022-07-05 18:59:00 +02:00
netsmb smb_smb_treedisconnect: eliminate write only variable mbp 2022-04-04 22:30:57 -06:00
nfs nfs: skip bootpc when vfs.root.mountfrom is other than nfs 2022-05-31 16:07:27 -03:00
nfsclient
nfsserver
nlm
ofed sockets: use only soref()/sorele() as socket reference count 2022-07-04 12:40:51 -07:00
opencrypto crypto: Validate return values from CRYPTODEV_PROCESS() 2022-07-01 11:09:39 -04:00
powerpc subr_bus: restore bus_null_rescan() 2022-06-23 16:07:00 -03:00
riscv riscv: implement db_show_mdpcpu() 2022-07-05 11:51:14 -03:00
rpc krpc: Fix NFS-over-TLS for KTLS1.3 2022-05-15 11:51:56 -07:00
security mac_veriexec: Authorize reads of secured sysctls 2022-06-29 10:48:01 +02:00
sys sockets: use only soref()/sorele() as socket reference count 2022-07-04 12:40:51 -07:00
teken
tests
tools firmware: Map '@' in filenames to '_' in symbols. 2022-06-14 10:50:51 -07:00
ufs UFS quotaoff: start write before unbusying 2022-06-29 12:36:59 +03:00
vm vm: Fix racy checks for swap objects 2022-06-20 12:48:14 -04:00
x86 ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
xdr
xen xenbus: improve device tracking 2022-06-07 12:29:53 +02:00
Makefile