HomeFreeBSD

netinet6: require network epoch for in6_pcbconnect()

Description

netinet6: require network epoch for in6_pcbconnect()

This removes recursive epoch entry in the syncache case. Fixes
unprotected access to V_in6_ifaddrhead in in6_pcbladdr(), as
well as access to prison IP address lists. It also matches what
IPv4 in_pcbconnect() does.

Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D38355

Details

Provenance
glebiusAuthored on Feb 3 2023, 7:33 PM
Reviewer
markj
Differential Revision
D38355: netinet6: require network epoch for in6_pcbconnect()
Parents
rG221b9e3d0684: inpcb: merge two versions of in6_pcbconnect() into one
Branches
Unknown
Tags
Unknown