]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
inet: annotate data-races around isk->inet_num
authorEric Dumazet <edumazet@google.com>
Wed, 25 Feb 2026 20:35:45 +0000 (20:35 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 01:16:59 +0000 (17:16 -0800)
commit29252397bcc1e0a1f85e5c3bee59c325f5c26341
tree3fa5b59fa8dae56966ae79f34005a3dd388f5dad
parent62413a9c3cb183afb9bb6e94dd68caf4e4145f4c
inet: annotate data-races around isk->inet_num

UDP/TCP lookups are using RCU, thus isk->inet_num accesses
should use READ_ONCE() and WRITE_ONCE() where needed.

Fixes: 3ab5aee7fe84 ("net: Convert TCP & DCCP hash tables to use RCU / hlist_nulls")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260225203545.1512417-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/inet6_hashtables.h
include/net/inet_hashtables.h
include/net/ip.h
net/ipv4/inet_hashtables.c
net/ipv4/tcp_diag.c
net/ipv6/inet6_hashtables.c