Page MenuHomeFreeBSD

tcp: Fix the SO_REUSEPORT_LB check
ClosedPublic

Authored by markj on Tue, Jun 17, 1:22 AM.
Tags
None
Referenced Files
F121089277: D50893.id157170.diff
Mon, Jun 23, 1:45 PM
Unknown Object (File)
Fri, Jun 20, 12:03 AM
Unknown Object (File)
Thu, Jun 19, 1:26 AM
Unknown Object (File)
Thu, Jun 19, 12:12 AM
Unknown Object (File)
Tue, Jun 17, 11:41 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.Tue, Jun 17, 1:22 AM
This revision was not accepted when it landed; it landed in state Needs Review.Tue, Jun 17, 11:28 AM
This revision was automatically updated to reflect the committed changes.