HomeFreeBSD

ipsec: add a lock encompassing SPI allocation

Description

ipsec: add a lock encompassing SPI allocation

SPIs get allocated and inserted in separate steps. Prior to the change
there was nothing preventing 2 differnet threads from ending up with the
same one.

PR: 258849
Reported by: Herbie.Robinson@stratus.com
Reviewed by: ae
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D32826

Details

Provenance
mjgAuthored on Nov 3 2021, 1:10 PM
Reviewer
ae
Differential Revision
D32826: ipsec: serialize SPI allocation
Parents
rG626bd0970abf: ipsec: fix edge case detection in key_do_getnewspi
Branches
Unknown
Tags
Unknown