[Bug 297307] if_pfsync: pfsync_sendout() silently and permanently fails to transmit when pfsync MTU exceeds MJUMPAGESIZE

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 06 Aug 2026 17:45:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297307

--- Comment #1 from Kristof Provost <kp@freebsd.org> ---
I've not yet managed to reproduce this, but your analysis appears correct.

Fortunately the fix should be trivial: 

diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c
index a64d0ef64a61..db7db987197b 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -2039,7 +2039,7 @@ pfsync_sendout(int schedswi, int c)
                return;
        }

-       m = m_get2(max_linkhdr + b->b_len, M_NOWAIT, MT_DATA, M_PKTHDR);
+       m = m_get3(max_linkhdr + b->b_len, M_NOWAIT, MT_DATA, M_PKTHDR);
        if (m == NULL) {
                if_inc_counter(sc->sc_ifp, IFCOUNTER_OERRORS, 1);
                V_pfsyncstats.pfsyncs_onomem++;

That's against main, but I expect it to just apply to 14 and 15 as well.

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