[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
Tue Jan 16 09:23:14 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209475
--- Comment #12 from fehmi noyan isi <fnoyanisi at yahoo.com> ---
(In reply to Kristof Provost from comment #11)
For the first issue you mentioned,
I think it is this line blocking the startup
V_pf_srchash = malloc(pf_srchashsize * sizeof(struct
pf_srchash),M_PFHASH,M_WAITOK|M_ZERO);
then maybe something like below?
if ((V_pf_srchash = malloc(..., ... ,M_NOWAIT|M_ZERO)) == NULL) {
/* error handling, cleanup & return */
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-pf
mailing list