[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
Sun Feb 11 10:26:17 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209475
--- Comment #27 from Kristof Provost <kp at freebsd.org> ---
(In reply to fehmi noyan isi from comment #26)
Yes, your analysis looks to be correct. I'd go for the second option: try to
allocate both keyhash and idhash with the requested size. If either one fails
free both and re-try with the default size.
I don't think the sizes of the structs are relevant here. We allocate
'pf_hashsize' elements of both, but we don't care how much memory each
allocation takes, just that we know how many there are.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-pf
mailing list