Page MenuHomeFreeBSD

tcp: Fix a locking issue
ClosedPublic

Authored by tuexen on Nov 12 2021, 8:25 PM.
Tags
None
Referenced Files
F148623675: D32975.id98444.diff
Thu, Mar 19, 5:18 AM
F148611390: D32975.id98447.diff
Thu, Mar 19, 3:28 AM
Unknown Object (File)
Wed, Mar 18, 6:31 AM
Unknown Object (File)
Tue, Mar 17, 6:06 AM
Unknown Object (File)
Feb 10 2026, 3:20 AM
Unknown Object (File)
Feb 8 2026, 2:40 PM
Unknown Object (File)
Feb 7 2026, 8:06 PM
Unknown Object (File)
Jan 30 2026, 6:14 PM
Subscribers

Details

Summary

INP_WLOCK_RECHECK_CLEANUP() and INP_WLOCK_RECHECK() might return from the function, which would leave a lock held.

This fixes https://syzkaller.appspot.com/bug?id=72b2acf2475d24006a8f1a63f5a10224aeee1c8d

Diff Detail

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

Event Timeline

Thanks.

sys/netinet/tcp_usrreq.c
2080

You don't need the ptr != NULL check, strictly speaking.

This revision was not accepted when it landed; it landed in state Needs Review.Nov 12 2021, 9:14 PM
This revision was automatically updated to reflect the committed changes.