CVSROOT:        /cvs
Module name:    src
Changes by:     bl...@cvs.openbsd.org   2023/12/06 02:27:17

Modified files:
        sys/netinet    : ip_mroute.c 
        sys/netinet6   : ip6_mroute.c 

Log message:
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@

Reply via email to