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)
Sun, Oct 11, 10:59 PM
Unknown Object (File)
Sat, Oct 10, 9:35 PM
Unknown Object (File)
Sat, Oct 10, 5:05 PM
Unknown Object (File)
Sat, Oct 10, 5:00 PM
Unknown Object (File)
Sat, Sep 26, 7:24 PM
Unknown Object (File)
Sep 17 2026, 1:47 PM
Unknown Object (File)
Sep 17 2026, 6:04 AM
Unknown Object (File)
Sep 13 2026, 10:02 PM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41295
Build 38184: arc lint + arc unit