Page MenuHomeFreeBSD

sockets/tcp: quick fix for regression with SO_REUSEPORT_LB
ClosedPublic

Authored by glebius on Jan 27 2025, 10:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 14, 6:39 AM
Unknown Object (File)
Sat, Nov 22, 2:36 PM
Unknown Object (File)
Thu, Nov 20, 4:41 PM
Unknown Object (File)
Wed, Nov 19, 9:07 PM
Unknown Object (File)
Nov 15 2025, 7:19 AM
Unknown Object (File)
Nov 8 2025, 1:19 AM
Unknown Object (File)
Oct 29 2025, 7:04 AM
Unknown Object (File)
Oct 29 2025, 5:21 AM
Subscribers

Details

Summary

There was a long living problem that pr_listen is called every time on
consecutive listen(2) syscalls. Up until today it produces spurious TCP
state change events in tracing software and other harmless problems. But
with 7cbb6b6e28db we started to call LIST_REMOVE() twice on the same
entry.

This is quite ugly, but quick and robuse fix against regression, that we
decided to put in the scope of the January stabilization week. A better
refactoring will happen later.

Fixes: 7cbb6b6e28db33095a1cf7a8887921a5ec969824

Diff Detail

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