net_sched: act: annotate data-races in tcf_lastuse_update() and tcf_tm_dump()
authorEric Dumazet <edumazet@google.com>
Wed, 9 Jul 2025 09:01:53 +0000 (09:01 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Jul 2025 23:01:15 +0000 (16:01 -0700)
commit30dbb2d0e16fce445581049ebcd9043837a843ac
tree771de070ce8e91f1c5a1e7b5773c1e20bc6b5c44
parent0346000aaab8cf8baf4ae40c48a5779a03971e80
net_sched: act: annotate data-races in tcf_lastuse_update() and tcf_tm_dump()

tcf_tm_dump() reads fields that can be changed concurrently,
and tcf_lastuse_update() might race against itself.

Add READ_ONCE() and WRITE_ONCE() annotations.

Fetch jiffies once in tcf_tm_dump().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250709090204.797558-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/act_api.h