Page MenuHomeFreeBSD

sockets: on shutdown(2) do sorflush() only in case of generic sockbuf
ClosedPublic

Authored by glebius on Jan 8 2024, 6:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 28, 2:08 AM
Unknown Object (File)
Jun 3 2024, 6:15 AM
Unknown Object (File)
Jun 2 2024, 10:18 PM
Unknown Object (File)
May 5 2024, 3:51 PM
Unknown Object (File)
May 2 2024, 7:52 AM
Unknown Object (File)
May 1 2024, 11:08 AM
Unknown Object (File)
Feb 28 2024, 8:11 AM
Unknown Object (File)
Feb 3 2024, 11:25 AM
Subscribers

Details

Summary

This is a quick plug to fix panic with Netlink which has protocol specific
buffers. Note that PF_UNIX/SOCK_DGRAM, which also has its own buffers,
avoids the panic due to being SOCK_DGRAM. A correct but more complicated
fix that needs to be done is to merge pr_shutdown, pr_flush and dom_dispose
into one protocol method that may call sorflush for generic sockets or do
their own stuff for protocol which has own buffers.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable