[Bug 260406] pfctl: Cannot allocate memory (after a time)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 30 Mar 2022 16:18:48 UTC

--- 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

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

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