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
F80128525: D32584.id.diff
Thu, Mar 28, 7:26 AM
Unknown Object (File)
Jan 16 2024, 5:51 PM
Unknown Object (File)
Dec 26 2023, 1:05 PM
Unknown Object (File)
Dec 22 2023, 3:13 AM
Unknown Object (File)
Dec 13 2023, 8:11 AM
Unknown Object (File)
Dec 12 2023, 10:44 AM
Unknown Object (File)
Sep 23 2023, 3:07 PM
Unknown Object (File)
Aug 14 2023, 4:02 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