HomeFreeBSD

Rework PCB SP cache to avoid races.

Description

Rework PCB SP cache to avoid races.

Add ipsec_cachepolicy() and ipsec_invalidate_cache() functions that
implement the cache logic. Use INPCB lock to protect access to the cache.
Also, now SP are kept in the cache referenced. This protects from access
to already freed policies.

Details

Provenance
aeAuthored on
Parents
rS311781: Use standard Versions.def for libprocstat.
Branches
Unknown
Tags
Unknown