HomeFreeBSD

Fix sendto() on unconnected SOCK_STREAM/SEQPACKET unix sockets.

Description

Fix sendto() on unconnected SOCK_STREAM/SEQPACKET unix sockets.

Previously the unpcb pointer of the newly connected remote socket was
not initialized correctly, so attempting to lock it would result in a
null pointer dereference.

Reported by: syzkaller
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on
Parents
rS359892: Relax restrictions on private mappings of POSIX shm objects.
Branches
Unknown
Tags
Unknown