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)
Mon, Nov 4, 6:30 AM
Unknown Object (File)
Thu, Oct 31, 8:19 AM
Unknown Object (File)
Oct 2 2024, 7:29 PM
Unknown Object (File)
Oct 1 2024, 6:00 AM
Unknown Object (File)
Sep 30 2024, 1:08 AM
Unknown Object (File)
Sep 19 2024, 10:02 AM
Unknown Object (File)
Sep 5 2024, 11:02 PM
Unknown Object (File)
Sep 5 2024, 3:47 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable