Page MenuHomeFreeBSD

Lock the socket in soo_stat().
Needs ReviewPublic

Authored by markj on Thu, Mar 19, 9:14 PM.

Details

Reviewers
glebius
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 OK
Unit
No Unit Test Coverage
Build Status
Buildable 30011
Build 27824: arc lint + arc unit

Event Timeline

markj created this revision.Thu, Mar 19, 9:14 PM
markj edited the summary of this revision. (Show Details)Thu, Mar 19, 9:17 PM
markj added a reviewer: glebius.