]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net_sched: sch_hhf: annotate data-races in hhf_dump_stats()
authorEric Dumazet <edumazet@google.com>
Tue, 21 Apr 2026 14:33:49 +0000 (14:33 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Apr 2026 04:12:40 +0000 (21:12 -0700)
commita6edf2cd4156b71e07258876b7626692e158f7e8
treeb3878e5eb59c9f32f603c894c5f94d970b428343
parent9d146a5d10685ab19e15bbedc5107c5b94d45ebe
net_sched: sch_hhf: annotate data-races in hhf_dump_stats()

hhf_dump_stats() only runs with RTNL held,
reading fields that can be changed in qdisc fast path.

Add READ_ONCE()/WRITE_ONCE() annotations.

Fixes: edb09eb17ed8 ("net: sched: do not acquire qdisc spinlock in qdisc/class stats dump")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20260421143349.4052215-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_hhf.c