freebsd-nq/sys/netpfil/pf
Kristof Provost bf56a3fe47 pf: Cope with overly large net.pf.states_hashsize
If the user configures a states_hashsize or source_nodes_hashsize value we may
not have enough memory to allocate this. This used to lock up pf, because these
allocations used M_WAITOK.

Cope with this by attempting the allocation with M_NOWAIT and falling back to
the default sizes (with M_WAITOK) if these fail.

PR:		209475
Submitted by:	Fehmi Noyan Isi <fnoyanisi AT yahoo.com>
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D14367
2018-02-25 08:56:44 +00:00
..
if_pflog.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
if_pfsync.c SPDX: Fix some cases wrongly attributed to MIT. 2017-11-30 15:10:11 +00:00
in4_cksum.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
pf_altq.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
pf_if.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
pf_ioctl.c pf: Avoid integer overflow issues by using mallocarray() iso. malloc() 2018-01-07 13:35:15 +00:00
pf_lb.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
pf_mtag.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
pf_norm.c pf: Clean all fragments on shutdown 2017-12-31 10:01:31 +00:00
pf_osfp.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
pf_ruleset.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
pf_table.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
pf.c pf: Cope with overly large net.pf.states_hashsize 2018-02-25 08:56:44 +00:00
pf.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00