[Bug 255971] FreeBSD 13.0 Stable r3822450 hangs with error pfctl: DIOCGETRULE: Cannot allocate memory

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 18 May 2021 10:05:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255971

            Bug ID: 255971
           Summary: FreeBSD 13.0 Stable r3822450 hangs with error pfctl:
                    DIOCGETRULE: Cannot allocate memory
           Product: Base System
           Version: 13.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: rpalov@e-card.bg

Hello all,

We have upgraded one of our servers to FreeBSD 13.0 Stable last week. 

The server have nagios/nrpe sensor, checking the current states, rules and nat
entries in PF namespace. 

After an 12-14 hours uptime server hangs. 

No messages in system log, debug log and so on. 

To prove our suspicions, we start the sensor script which is responsible for
the pf states check, in infinite loop. The server hangs in next 10-15 minutes.
This is 100% reproducible. 

The main part of the scirpt is :

pfctl -sr
pfctl -sn
pfctl -ss

Each command return value is compared with established limits. 

We are at your service if you need more information or details.

Cheers
Rumen Palov

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