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)
Nov 28 2024, 7:24 PM
Unknown Object (File)
Nov 28 2024, 7:24 PM
Unknown Object (File)
Nov 23 2024, 9:37 AM
Unknown Object (File)
Nov 20 2024, 9:01 AM
Unknown Object (File)
Nov 16 2024, 11:12 PM
Unknown Object (File)
Nov 7 2024, 7:00 AM
Unknown Object (File)
Oct 21 2024, 12:20 PM
Unknown Object (File)
Oct 15 2024, 5:15 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable