Page MenuHomeFreeBSD

Use network epoch to protect local IPv4 addresses hash.
ClosedPublic

Authored by glebius on Oct 20 2021, 7:33 PM.
Tags
None
Referenced Files
F115516546: D32584.id97308.diff
Thu, Apr 24, 5:57 PM
Unknown Object (File)
Sun, Apr 13, 4:58 AM
Unknown Object (File)
Fri, Apr 4, 6:07 PM
Unknown Object (File)
Mar 22 2025, 4:35 AM
Unknown Object (File)
Mar 12 2025, 9:27 PM
Unknown Object (File)
Feb 24 2025, 2:03 PM
Unknown Object (File)
Feb 23 2025, 5:49 PM
Unknown Object (File)
Feb 23 2025, 5:33 PM

Details

Summary

The modification to the hash are already naturally locked by
in_control_sx. Convert the hash lists to CK lists. Remove the
in_ifaddr_rmlock. Assert the network epoch where necessary.

Most cases when the hash lookup is done the epoch is already entered.
Cover a few cases, that need entering the epoch, which mostly is
initial configuration of tunnel interfaces and multicast addresses.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42280
Build 39168: arc lint + arc unit