Date: Wed, 30 Mar 2022 16:18:48 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260406] pfctl: Cannot allocate memory (after a time) Message-ID: <bug-260406-227-42kie48oRY@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-260406-227@https.bugs.freebsd.org/bugzilla/> References: <bug-260406-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260406 --- 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 i= tems 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 t= ime. I'm not sure if other pf zones might have the same problem. I'll work on a patch. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260406-227-42kie48oRY>