diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2023-12-06 09:27:18 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2023-12-06 09:27:18 +0000 |
commit | d4cd916a714965c895affd7a0c32f4b68ecf568f (patch) | |
tree | b68f9681c2b0f80cfadd5467bd3179d308b13fdb /usr.bin/deroff | |
parent | fa1a6cf266f262f48ecbe7fcaf6c37eb1ef4b02b (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