freebsd-dev/sys
Kristof Provost 95324dc3f4 pf: Do not allow negative ps_len in DIOCGETSTATES
Userspace may pass a negative ps_len value to us, which causes an
assertion failure in malloc().
Treat negative values as zero, i.e. return the required size.

Reported-by:	syzbot+53370d9d0358ee2a059a@syzkaller.appspotmail.com
Reviewed by:	lutz at donnerhacke.de
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D24447
2020-04-17 14:35:11 +00:00
..
amd64 Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
arm arm: nvidia: pcie: Rename class name to pcib 2020-04-16 20:44:23 +00:00
arm64 Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
bsm vfs: add realpathat syscall 2020-02-20 16:58:19 +00:00
cam Checks here against useracc are not useful and are racy. 2020-04-13 21:04:33 +00:00
cddl Make ZFS depend on xdr.ko only. It doesn't need kernel RPC. 2020-04-17 06:05:08 +00:00
compat Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
conf Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
contrib Remove FreeBSD/armv4 specific bits from CK. 2020-04-13 23:16:32 +00:00
crypto Use crypto_contiguous_subsegment(). 2020-04-15 21:05:38 +00:00
ddb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
dev Alert devd when acpi_video brightness changes 2020-04-16 21:56:52 +00:00
dts allwinner: aw_thermal: Cope with DTS changes 2020-04-14 19:05:17 +00:00
fs Add a sanity check for nes_numsecflavor to the NFS server. 2020-04-17 02:21:46 +00:00
gdb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
geom Mark eli_metadata_crypto_supported inline. 2020-04-15 18:27:28 +00:00
gnu dts: Import DTS from Linux 5.6 2020-04-14 18:57:00 +00:00
i386 Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
isa sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
kern Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
kgssapi Remove support for Kernel GSS algorithms deprecated in r348875. 2020-04-10 23:08:41 +00:00
libkern Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
mips Add 'gpio' since mmc now requires gpio_if.h. 2020-04-16 20:45:54 +00:00
modules Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
net Remove an duplicate definition of nhops_dump_sysctl() 2020-04-16 23:28:47 +00:00
net80211 Fix -Wvoid-pointer-to-enum-cast warnings. 2020-04-15 18:15:58 +00:00
netgraph Don't initialize m->m_data to m->m_pktdat, this is already done by the 2020-04-17 05:59:38 +00:00
netinet Avoid calling protocol drain routines more than once per reclamation event. 2020-04-16 20:17:24 +00:00
netinet6 Avoid calling protocol drain routines more than once per reclamation event. 2020-04-16 20:17:24 +00:00
netipsec Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
netpfil pf: Do not allow negative ps_len in DIOCGETSTATES 2020-04-17 14:35:11 +00:00
netsmb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
nfs Re-organize the NFS file handle affinity code for the NFS server. 2020-04-14 00:01:26 +00:00
nfsclient
nfsserver
nlm Remove the old NFS lock device driver that uses Giant. 2020-04-09 14:44:46 +00:00
ofed Convert OFED rtable interactions to the new routing KPI. 2020-04-15 13:06:55 +00:00
opencrypto Avoid checking pointers that are never NULL. 2020-04-02 17:22:16 +00:00
powerpc Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
riscv riscv: Add semicolon missing from r359672 2020-04-06 23:54:50 +00:00
rpc Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
security audit_canon_path_vp: don't panic if cdir == NULL 2020-04-17 02:09:31 +00:00
sys Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
teken
tests Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
tools vfs: stop null checking routines in vop wrappers 2020-01-26 00:41:38 +00:00
ufs ufs: apply suspension for non-forced rw unmounts. 2020-04-10 01:24:16 +00:00
vm Remove dead code leftover from r331018. 2020-03-31 01:12:53 +00:00
x86 Improve TSC calibration logic. 2020-04-15 22:28:51 +00:00
xdr Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
xen Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (16 of many) 2020-02-25 19:04:39 +00:00
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00