]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: fib_rules: annotate data-races around rule->[io]ifindex
authorEric Dumazet <edumazet@google.com>
Thu, 6 Feb 2025 08:30:51 +0000 (08:30 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Feb 2025 19:51:26 +0000 (11:51 -0800)
commitcb827db50a88aebec516151681adb6db10b688ee
tree7c8d6c47ba37c4bb3762c957339870b52e8c5643
parent1438f5d07b9a7afb15e1d0e26df04a6fd4e56a3c
net: fib_rules: annotate data-races around rule->[io]ifindex

rule->iifindex and rule->oifindex can be read without holding RTNL.

Add READ_ONCE()/WRITE_ONCE() annotations where needed.

Fixes: 32affa5578f0 ("fib: rules: no longer hold RTNL in fib_nl_dumprule()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20250206083051.2494877-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/fib_rules.c