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

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

--- Comment #11 from tech-lists@zyxst.net ---
this time, I couldn't reload pf even with the big table commented out again.

it won't load any tables at all. I'll have to restart the machine.

# pfctl -f /etc/pf.conf
/etc/pf.conf:23: cannot define table rfc6890: Cannot allocate memory
/etc/pf.conf:25: cannot define table gooDNS4: Cannot allocate memory
/etc/pf.conf:26: cannot define table gooDNS6: Cannot allocate memory
/etc/pf.conf:27: cannot define table friends: Cannot allocate memory
pfctl: Syntax error in config file: pf rules not loaded

I had to kill -9 the dtrace to run it again:

CPU     ID                    FUNCTION:NAME
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  13251         pfr_create_ktable:return 1
  0  13251         pfr_create_ktable:return ffffa00116984000
  0  13251         pfr_create_ktable:return 1
  0  13251         pfr_create_ktable:return ffffa0007d6b7800
  0  13259         pfr_create_kentry:return 0
  0  13251         pfr_create_ktable:return 1
  0  13251         pfr_create_ktable:return ffffa0007d6b7800
  0  13251         pfr_create_ktable:return 1
  0  13251         pfr_create_ktable:return ffffa000957a3800
  0  13259         pfr_create_kentry:return 0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  0  13251         pfr_create_ktable:return 1
  0  13251         pfr_create_ktable:return ffffa000957a3800
  0  13251         pfr_create_ktable:return 1
  0  13251         pfr_create_ktable:return ffffa0001a8a4000
  0  13259         pfr_create_kentry:return 0
  0  13251         pfr_create_ktable:return 1
  0  13251         pfr_create_ktable:return ffffa000957a3800
  0  13259         pfr_create_kentry:return 0

(re-ran the pfctl command again)

  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  13251         pfr_create_ktable:return 1
  2  13251         pfr_create_ktable:return ffffa00080bc2000
  2  13251         pfr_create_ktable:return 1
  2  13251         pfr_create_ktable:return ffffa000d24d6000
  2  13259         pfr_create_kentry:return 0
  2  13251         pfr_create_ktable:return 1
  2  13251         pfr_create_ktable:return ffffa000d24d6000
  2  13251         pfr_create_ktable:return 1
  2  13251         pfr_create_ktable:return ffffa00116976800
  2  13259         pfr_create_kentry:return 0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  36465 pf_find_or_create_kruleset:return ffff000041aef0e0
  2  13251         pfr_create_ktable:return 1
  2  13251         pfr_create_ktable:return ffffa00116976800
  2  13251         pfr_create_ktable:return 1
  2  13251         pfr_create_ktable:return ffffa0001a83d000
  2  13259         pfr_create_kentry:return 0
  2  13251         pfr_create_ktable:return 1
  2  13251         pfr_create_ktable:return ffffa00116976800
  2  13259         pfr_create_kentry:return 0

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