HomeFreeBSD

if_wg: Missing radix unlock can cause deadlock

Description

if_wg: Missing radix unlock can cause deadlock

In function 'wg_aip_add()', the error path of returning ENOMEM when
(node == NULL) is forgetting to unlock the radix tree, and thus may lead
to a deadlock.

PR: 275001
Reviewed by: kp
MFC after: 1 week

(cherry picked from commit dcc4d2939f789a6d1f272ffeab2068ba2b7525ea)

Details

Provenance
aly_aaronly.meAuthored on Nov 11 2023, 1:13 PM
kpCommitted on Nov 18 2023, 9:46 AM
Parents
rG51a024c42c46: pfsync: Document the transport over IPv6 feature
Branches
Unknown
Tags
Unknown