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)
Sat, May 4, 10:09 PM
Unknown Object (File)
Fri, May 3, 4:35 AM
Unknown Object (File)
Mar 29 2024, 8:35 PM
Unknown Object (File)
Mar 10 2024, 11:38 PM
Unknown Object (File)
Mar 10 2024, 11:35 PM
Unknown Object (File)
Mar 10 2024, 11:35 PM
Unknown Object (File)
Mar 10 2024, 11:23 PM
Unknown Object (File)
Feb 29 2024, 4:12 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