Page MenuHomeFreeBSD

Lock the socket in soo_stat().
ClosedPublic

Authored by markj on Mar 19 2020, 9:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 3:37 AM
Unknown Object (File)
Jun 28 2023, 6:19 AM
Unknown Object (File)
Dec 31 2022, 4:15 AM
Subscribers
None

Details

Reviewers
glebius
markj
Summary

Otherwise nothing synchronizes with a concurrent conversion of the
socket to a listening socket.

Only the PF_LOCAL protocols implement pru_sense, and it is safe to hold
the socket lock there, so do so for now.

Reported by: syzbot+4801f1b79ea40953ca8e@syzkaller.appspotmail.com

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30011
Build 27824: arc lint + arc unit