HomeFreeBSD

ipsec: fix a panic with INVARIANTS

Description

ipsec: fix a panic with INVARIANTS

When adding an SPD entry that already exists, a refcount wraparound
panic is encountered. This was caused from dropping a reference on the
wrong security policy.

Fixes: 4920e38fecc3 ("ipsec: fix race condition in key.c")
Reviewed by: wma
Sponsored by: Klara Inc.
Differential Revision: https://reviews.freebsd.org/D33100

Details

Provenance
rewAuthored on Dec 3 2021, 11:22 PM
Reviewer
wma
Differential Revision
D33100: ipsec: fix a panic with INVARIANTS
Parents
rGa21f086a3316: Fix "set but not used" in the tws driver
Branches
Unknown
Tags
Unknown