Page MenuHomeFreeBSD

sctp: Hold association locks across socket wakeups when freeing
ClosedPublic

Authored by markj on Aug 31 2021, 4:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 2, 5:42 AM
Unknown Object (File)
Thu, Apr 24, 8:45 PM
Unknown Object (File)
Thu, Apr 24, 6:57 AM
Unknown Object (File)
Apr 4 2025, 6:58 AM
Unknown Object (File)
Mar 27 2025, 5:42 AM
Unknown Object (File)
Mar 14 2025, 3:35 AM
Unknown Object (File)
Feb 9 2025, 8:26 PM
Unknown Object (File)
Feb 9 2025, 10:19 AM
Subscribers

Details

Summary

At this point we do not hold the inpcb lock, so the only thing holding
the socket reference live is the TCB lock, which needs to be acquired by
sctp_inpcb_free() in order to destroy associations. Defer the unlock
until after we dereference the socket reference.

Reported by: syzbot+1d0f2c4675de76a4cf1e@syzkaller.appspotmail.com
Reported by: syzbot+fabee77954fe69d3a5ad@syzkaller.appspotmail.com

Diff Detail

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