]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
if_wg: Missing radix unlock can cause deadlock
authorAaron LI <aly@aaronly.me>
Sat, 11 Nov 2023 13:13:08 +0000 (14:13 +0100)
committerKristof Provost <kp@FreeBSD.org>
Sun, 19 Nov 2023 19:29:35 +0000 (20:29 +0100)
commit16c65f7ae15e6ca8b36fc546e038c59270c87ccc
tree907b03707406a776c657e38b3ba23664eeb2ad21
parente23e0e3c9cbf1ca79e1029c89b19c88a28c18e9f
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)
sys/dev/wg/if_wg.c