Page MenuHomeFreeBSD

sctp: Fix lock recursion in sctp_swap_inpcb_for_listen()
ClosedPublic

Authored by markj on Sep 8 2021, 3:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 6:40 PM
Unknown Object (File)
Mar 7 2024, 5:16 PM
Unknown Object (File)
Jan 10 2024, 10:46 AM
Unknown Object (File)
Dec 20 2023, 4:34 AM
Unknown Object (File)
Dec 18 2023, 4:48 PM
Unknown Object (File)
Dec 14 2023, 8:40 PM
Unknown Object (File)
Nov 12 2023, 3:44 AM
Unknown Object (File)
Sep 26 2023, 7:39 AM
Subscribers

Details

Summary

After commit bd4a39cc93d9 we now hold the global inp info lock across
the call to sctp_swap_inpcb_for_listen(), which attempts to acquire it
again. Since sctp_swap_inpcb_for_listen()'s sole caller is
sctp_listen(), we can simply change it to not try to acquire the lock.

Fixes: bd4a39cc93d9 ("socket: Properly interlock when transitioning to a listening socket")
Reported by: syzkaller

Diff Detail

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