diff options
| author | 2026-04-21 14:29:44 +0000 | |
|---|---|---|
| committer | 2026-04-22 21:12:47 -0700 | |
| commit | 5154561d9b119f781249f8e845fecf059b38b483 (patch) | |
| tree | 7bd8fb4566c8024016ea023a4c8db81ef4945f16 /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | net_sched: sch_hhf: annotate data-races in hhf_dump_stats() (diff) | |
net/sched: sch_pie: annotate data-races in pie_dump_stats()
pie_dump_stats() only runs with RTNL held,
reading fields that can be changed in qdisc fast path.
Add READ_ONCE()/WRITE_ONCE() annotations.
Alternative would be to acquire the qdisc spinlock, but our long-term
goal is to make qdisc dump operations lockless as much as we can.
tc_pie_xstats fields don't need to be latched atomically,
otherwise this bug would have been caught earlier.
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/20260421142944.4009941-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
