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
F102771391: D31754.diff
Sat, Nov 16, 11:12 PM
Unknown Object (File)
Thu, Nov 7, 7:00 AM
Unknown Object (File)
Mon, Oct 21, 12:20 PM
Unknown Object (File)
Oct 15 2024, 5:15 PM
Unknown Object (File)
Oct 9 2024, 10:57 PM
Unknown Object (File)
Oct 3 2024, 7:38 AM
Unknown Object (File)
Sep 29 2024, 7:33 AM
Unknown Object (File)
Sep 29 2024, 7:23 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