[Bug 260406] pfctl: Cannot allocate memory (after a time)
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 260406] pfctl: Cannot allocate memory (after a time)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Mar 2022 16:18:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260406 --- Comment #76 from Mark Johnston <markj@FreeBSD.org> --- (In reply to Mark Johnston from comment #75) The problem has to do with the reimplementation of zone limits in 13.0. pf may allocate items from the table entry zone before a limit is set, and these items won't be counted. When a limit is set, and the uncounted items are freed (as can happen if there's a memory shortage), then they end up underflowing our counter. uma_zone_set_max() is missing an assertion that would have caught this. pf also needs to set a dummy limit on the table entry zone at initialization time. I'm not sure if other pf zones might have the same problem. I'll work on a patch. -- You are receiving this mail because: You are the assignee for the bug.