Page MenuHomeFreeBSD

tcp: Fix the SO_REUSEPORT_LB check
ClosedPublic

Authored by markj on Jun 17 2025, 1:22 AM.
Tags
None
Referenced Files
F151076209: D50893.id157170.diff
Sun, Apr 5, 7:59 PM
Unknown Object (File)
Sat, Apr 4, 1:19 PM
Unknown Object (File)
Tue, Mar 31, 2:01 PM
Unknown Object (File)
Tue, Mar 31, 6:35 AM
Unknown Object (File)
Sun, Mar 29, 3:29 PM
Unknown Object (File)
Mon, Mar 9, 1:27 PM
Unknown Object (File)
Mar 6 2026, 3:32 AM
Unknown Object (File)
Mar 4 2026, 4:31 AM

Details

Summary

This needs to happen in tcp_connect() rather than tcp_usr_connect(), as
the latter is reachable by implied connect() via sendto().

Reported by: syzbot+eecc86e6952fd9ba9f11@syzkaller.appspotmail.com
Fixes: c7f803c71dae ("inpcb: fix a panic with SO_REUSEPORT_LB + connect(2) misuse")

Diff Detail

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

Event Timeline

markj requested review of this revision.Jun 17 2025, 1:22 AM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 17 2025, 11:28 AM
This revision was automatically updated to reflect the committed changes.