Page MenuHomeFreeBSD

tcp: Fix a locking issue
ClosedPublic

Authored by tuexen on Nov 12 2021, 8:25 PM.
Tags
None
Referenced Files
F105340862: D32975.diff
Sun, Dec 15, 3:04 AM
Unknown Object (File)
Thu, Dec 5, 12:45 AM
Unknown Object (File)
Mon, Nov 25, 6:37 PM
Unknown Object (File)
Nov 13 2024, 8:58 PM
Unknown Object (File)
Nov 4 2024, 9:50 PM
Unknown Object (File)
Oct 29 2024, 5:53 PM
Unknown Object (File)
Oct 21 2024, 7:06 PM
Unknown Object (File)
Oct 20 2024, 2:41 AM
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 Skipped
Unit
Tests Skipped

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.