]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Initialize the table entry zone limit at initialization time
authorMark Johnston <markj@FreeBSD.org>
Tue, 5 Apr 2022 23:26:02 +0000 (23:26 +0000)
committerEd Maste <emaste@FreeBSD.org>
Tue, 5 Apr 2022 23:26:02 +0000 (23:26 +0000)
commit5b789e0c92a7c363b36111b1f75519f2acd21f97
tree042e23b6bc7d6738b16c29a60efc05f0699bfb30
parent312522780e83a32373f3f1e9ef6a598cb4c68b18
pf: Initialize the table entry zone limit at initialization time

The limit may later be updated by the "set limit" directive in pf.conf.
UMA does not permit a limit to be set on a zone after any items have
been allocated from a zone.

Other UMA zones used by pf do not appear to be susceptible to this
problem: they either set a limit at zone creation time or never set one
at all.

PR: 260406
Reviewed by: kp
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 7d1ab866911a2b29e041d64bc83a93638533f957)
(cherry picked from commit 1487f84223ce1341ebdfc87e50fbcddedc6d1de8)

Approved by: so
Security: FreeBSD-EN-22:15.pf
sys/netpfil/pf/pf_table.c