Page MenuHomeFreeBSD

net: don't panic on ifconfig pfsync0 mtu 9000
ClosedPublic

Authored by kp on Aug 7 2026, 2:54 PM.
Tags
None
Referenced Files
F174739633: D58701.diff
Mon, Oct 5, 3:36 PM
Unknown Object (File)
Sun, Oct 4, 3:37 AM
Unknown Object (File)
Sun, Oct 4, 3:37 AM
Unknown Object (File)
Thu, Oct 1, 7:57 PM
Unknown Object (File)
Tue, Sep 29, 12:11 AM
Unknown Object (File)
Tue, Sep 29, 12:10 AM
Unknown Object (File)
Tue, Sep 29, 12:09 AM
Unknown Object (File)
Tue, Sep 29, 12:09 AM

Details

Summary

pfsync interfaces do not have ifp->if_inet6 set, so when we update the
MTU for those interfaces we panicked.

Add an explicit check for this. This should be temporary, until pfsync
is no longer a struct ifnet (as we've already done for pflog).

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Aug 7 2026, 2:54 PM
glebius added inline comments.
sys/net/route.c
519–521

Let's mark it with IFT_PFSYNC so that won't be forgotten to be removed.

This revision is now accepted and ready to land.Aug 7 2026, 9:23 PM

Add IFT_PFSYNC comment.

This revision now requires review to proceed.Aug 8 2026, 8:10 AM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 8 2026, 9:07 AM
This revision was automatically updated to reflect the committed changes.