Page MenuHomeFreeBSD

divert: Fix handling of the bound state
AbandonedPublic

Authored by markj on May 26 2026, 1:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 6, 12:10 PM
Unknown Object (File)
Wed, Jun 24, 11:50 AM
Unknown Object (File)
Wed, Jun 24, 12:53 AM
Unknown Object (File)
Mon, Jun 22, 1:22 AM
Unknown Object (File)
Jun 12 2026, 12:19 AM
Unknown Object (File)
Jun 8 2026, 6:47 PM
Unknown Object (File)
Jun 4 2026, 2:31 PM
Unknown Object (File)
Jun 2 2026, 12:22 PM

Details

Reviewers
glebius
Group Reviewers
network
Summary

Commit f1fb05171662 added a field to the divert PCB which indicates
whether the socket is bound. This field is never set however, so
div_detach() doesn't remove a bound socket from the hash before freeing
it.

Fixes: f1fb05171662 ("divert(4): maintain own cb database and stop using inpcb KPI")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73444
Build 70327: arc lint + arc unit

Event Timeline

markj requested review of this revision.May 26 2026, 1:41 PM

Sorry, never mind, I missed that dcb_bound is set implicitly via the union.