Re: pfctl: Cannot allocate memory.

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Mon, 28 Mar 2022 07:44:14 UTC
On 27 Mar 2022, at 22:11, Marcel Bischoff wrote:
> Hello all,
>
> when updating a table of ~370k entries, PF sometimes refuses to do so and from then on continues to refuse until I reboot the machine.
>
> $ doas pfctl -f /etc/pf.conf
> /etc/pf.conf:27: cannot define table pfbadhost: Cannot allocate memory
> pfctl: Syntax error in config file: pf rules not loaded
>
That sounds a lot like https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260406

My current theory is that this is a bug in the memory allocator somewhere. I do not have the background or time to debug that.

Kristof