summaryrefslogtreecommitdiff
path: root/usr.bin/deroff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2023-12-06 09:27:18 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2023-12-06 09:27:18 +0000
commitd4cd916a714965c895affd7a0c32f4b68ecf568f (patch)
treeb68f9681c2b0f80cfadd5467bd3179d308b13fdb /usr.bin/deroff
parentfa1a6cf266f262f48ecbe7fcaf6c37eb1ef4b02b (diff)
Protect socket receive buffer in IP multicast routing.
Since soreceive() runs in parallel for raw sockets, sbappendaddr() has to be protected by inpcb mutex. This was missing in multicast forwarding which is running with a combination of shared net lock and kernel lock. soreceive() uses shared net lock and mutex per inpcb. Grab mutex before sbappendaddr() in socket_send() and socket6_send(). panic receive 1 reported by Jo Geraerts OK mvs@ claudio@
Diffstat (limited to 'usr.bin/deroff')
0 files changed, 0 insertions, 0 deletions