Thread (1 message) 1 message, 1 author, 2026-02-01

Re: [PATCH] tipc: fix RCU dereference race in tipc_aead_users_dec()

From: Eric Dumazet <edumazet@google.com>
Date: 2026-02-01 09:48:17
Also in: lkml, stable

On Sun, Feb 1, 2026 at 3:31 AM Daniel Hodges [off-list ref] wrote:
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

Signed-off-by: Daniel Hodges <redacted>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help