[Bug 209475] pf didn't check if enough free RAM for net.pf.states_hashsize

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 8 13:16:19 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209475

--- Comment #25 from Kristof Provost <kp at freebsd.org> ---
(In reply to fehmi noyan isi from comment #24)
I'd change the error message ('invalid states hashtable size(%lu)', and
friends) to say there's not enough memory. It's not so much that the value is
incorrect, just that it's more than we have memory for.

What crash are you seeing? Note that mallocarray() will panic if you trigger an
integer overflow, which could well happen with 2147483648 on a 32-bit machine.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-pf mailing list