freebsd-nq/sys/netpfil
Kristof Provost 02214ac854 pf: Improve ioctl validation for DIOCIGETIFACES and DIOCXCOMMIT
These ioctls can process a number of items at a time, which puts us at
risk of overflow in mallocarray() and of impossibly large allocations
even if we don't overflow.

There's no obvious limit to the request size for these, so we limit the
requests to something which won't overflow. Change the memory allocation
to M_NOWAIT so excessive requests will fail rather than stall forever.

MFC after:	1 week
2018-04-06 19:20:45 +00:00
..
ipfw Do not try to reassemble IPv6 fragments in "reass" rule. 2018-03-12 09:40:46 +00:00
pf pf: Improve ioctl validation for DIOCIGETIFACES and DIOCXCOMMIT 2018-04-06 19:20:45 +00:00