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
F109153131: D32584.id97184.diff
Sat, Feb 1, 12:33 PM
F109122355: D32584.diff
Sat, Feb 1, 2:18 AM
Unknown Object (File)
Sun, Jan 26, 8:59 AM
Unknown Object (File)
Fri, Jan 24, 5:42 PM
Unknown Object (File)
Fri, Jan 24, 10:26 AM
Unknown Object (File)
Mon, Jan 20, 10:19 PM
Unknown Object (File)
Sat, Jan 18, 9:59 PM
Unknown Object (File)
Sat, Jan 18, 9:46 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