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

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Dec 2021 21:26:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260406

--- Comment #12 from tech-lists@zyxst.net ---
after reboot, before loading pf:

# doas -u _pfbadhost pf-badhost -O freebsd
Password:

pf-badhost 1594 - - Using experimental "aggy" aggregator...

1 table created.
17842 addresses added.

pf-badhost 1662 - - 
IPv4 addresses in table:  619194384

[dtrace]

loads of this, maybe over a thousand lines. it fills the standard screen(8)
scroll-back buffer:

  1  13259         pfr_create_kentry:return ffffa00150ffb3c0
  1  13259         pfr_create_kentry:return ffffa00150ffb320
  1  13259         pfr_create_kentry:return ffffa00150ffb280
[...]
  1  13259         pfr_create_kentry:return ffffa00158828780
  1  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  1  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  1  13251         pfr_create_ktable:return 1
  1  13251         pfr_create_ktable:return ffffa00158826000
  1  13251         pfr_create_ktable:return 1
  1  13251         pfr_create_ktable:return ffffa00158827800
  1  13259         pfr_create_kentry:return ffffa001588286e0
  1  13259         pfr_create_kentry:return ffffa00158828640
  1  13259         pfr_create_kentry:return ffffa001588285a0
(ends)

but the rules load successfully.

later on when the cronjob runs to refresh the table, it'll succeed once maybe
twice then pf will bail.

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