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)
Thu, Mar 6, 4:34 PM
Unknown Object (File)
Tue, Feb 25, 3:25 PM
Unknown Object (File)
Fri, Feb 21, 6:40 PM
Unknown Object (File)
Wed, Feb 19, 3:45 PM
Unknown Object (File)
Sun, Feb 16, 11:31 PM
Unknown Object (File)
Feb 9 2025, 9:35 PM
Unknown Object (File)
Feb 8 2025, 11:50 AM
Unknown Object (File)
Feb 6 2025, 11:27 PM
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