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
Unknown Object (File)
Wed, Mar 12, 9:27 PM
Unknown Object (File)
Mon, Feb 24, 2:03 PM
Unknown Object (File)
Sun, Feb 23, 5:49 PM
Unknown Object (File)
Sun, Feb 23, 5:33 PM
Unknown Object (File)
Fri, Feb 21, 9:16 PM
Unknown Object (File)
Fri, Feb 21, 12:02 PM
Unknown Object (File)
Feb 7 2025, 5:24 AM
Unknown Object (File)
Feb 6 2025, 6:17 AM

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable