HomeFreeBSD

socket: Fix handling of listening sockets in sotoxsocket()

Description

socket: Fix handling of listening sockets in sotoxsocket()

A lock needs to be held to ensure that the socket does not become a
listening socket while sotoxsocket() is loading fields from the socket
buffers, as the memory backing the socket buffers is repurposed when
transitioning to a listening socket.

MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: Stormshield

(cherry picked from commit fc4365853f1c4b572d9fd643ea336508d9a6a0f7)

Details

Provenance
markjAuthored on Jul 9 2024, 8:28 PM
Parents
rG7300dec10a0b: EC2: Set dhclient_arpwait="NO"
Branches
Unknown
Tags
Unknown