]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
if_wg: fix access to noise_local->l_has_identity and l_private
authorAaron LI <aly@aaronly.me>
Wed, 17 Jan 2024 23:29:23 +0000 (23:29 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 17 Jan 2024 23:29:54 +0000 (17:29 -0600)
commit7a4d1d1df0b2e369adcb32aea9ef8c180f885751
treef0ac02212d735617b314a491204818fbd104b601
parentb891f61ef538a4e9b4658b4b756635c8036a5788
if_wg: fix access to noise_local->l_has_identity and l_private

These members are protected by the identity lock, so rlock it in
noise_remote_alloc() and then assert that we have it held to some extent
in noise_precompute_ss().

PR: 276392
sys/dev/wg/wg_noise.c