]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/sched: sch_choke: annotate data-races in choke_dump_stats()
authorEric Dumazet <edumazet@google.com>
Thu, 23 Apr 2026 06:28:39 +0000 (06:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Apr 2026 00:41:08 +0000 (17:41 -0700)
commitd3aeb889dcbd78e95f500d383799a23d949796e0
treeee12f5553564bf9fbf11a127a27942f98472e6d0
parentbde34e84edc8b5571fbde7e941e175a4293ee1eb
net/sched: sch_choke: annotate data-races in choke_dump_stats()

choke_dump_stats() only runs with RTNL held.
It reads 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/20260423062839.2524324-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_choke.c