summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorDaniel Hodges <hodgesd@meta.com>2026-02-03 09:56:21 -0500
committerSasha Levin <sashal@kernel.org>2026-03-04 07:21:15 -0500
commit7a4fd19c567fe740fe137b371fa072845f2fc63e (patch)
tree0615c42a96935717a6f217a2359d916abb4cc4b4 /virt
parent8e875cf8851b2be3b4abfa0f463baf2131e487c5 (diff)
tipc: fix RCU dereference race in tipc_aead_users_dec()
[ Upstream commit 6a65c0cb0ff20b3cbc5f1c87b37dd22cdde14a1c ] tipc_aead_users_dec() calls rcu_dereference(aead) twice: once to store in 'tmp' for the NULL check, and again inside the atomic_add_unless() call. Use the already-dereferenced 'tmp' pointer consistently, matching the correct pattern used in tipc_aead_users_inc() and tipc_aead_users_set(). Fixes: fc1b6d6de220 ("tipc: introduce TIPC encryption & authentication") Cc: stable@vger.kernel.org Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Daniel Hodges <hodgesd@meta.com> Link: https://patch.msgid.link/20260203145621.17399-1-git@danielhodges.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions