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 19 2023, 7:29 PM
Parents
rGe23e0e3c9cbf: pf_purge_expired_states(): fix build without SDT probes
Branches
Unknown
Tags
Unknown