]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r329950:
authorkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 18 Mar 2018 11:26:07 +0000 (11:26 +0000)
committerkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 18 Mar 2018 11:26:07 +0000 (11:26 +0000)
commit201759dd36a6b7d721991f4be0f39e1495d4b0b7
treebaf9e5c35a21e0f70dc743553325e0da3ccf287e
parentd9409f3918ddde948e9b5173c9c67104fa11b7c9
MFC r329950:

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>

git-svn-id: svn://svn.freebsd.org/base/stable/10@331117 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/pfvar.h
sys/netpfil/pf/pf.c