diff options
| author | Eric Dumazet <edumazet@google.com> | 2026-04-21 17:23:09 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-04-23 07:12:54 +0300 |
| commit | a8f5192809caf636d05ba47c144f282cfd0e3839 (patch) | |
| tree | 66f8b643305bc993146598652322debdfadff280 /scripts/git.orderFile | |
| parent | bbfaa73ea6871db03dc05d7f05f00557a8981f25 (diff) | |
| download | linux-a8f5192809caf636d05ba47c144f282cfd0e3839.tar.xz | |
net/sched: sch_red: annotate data-races in red_dump_stats()
red_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_red_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/20260421142309.3964322-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
