diff options
| author | Pedro Tammela <[email protected]> | 2023-07-11 02:16:34 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-07-12 22:59:33 +0000 |
| commit | 150e33e62c1fa4af5aaab02776b6c3812711d478 (patch) | |
| tree | d2b769621b1ba460aae88201845b2185154ce6b4 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | net: ena: fix shift-out-of-bounds in exponential backoff (diff) | |
| download | kernel-150e33e62c1fa4af5aaab02776b6c3812711d478.tar.gz kernel-150e33e62c1fa4af5aaab02776b6c3812711d478.zip | |
net/sched: make psched_mtu() RTNL-less safe
Eric Dumazet says[1]:
-------
Speaking of psched_mtu(), I see that net/sched/sch_pie.c is using it
without holding RTNL, so dev->mtu can be changed underneath.
KCSAN could issue a warning.
-------
Annotate dev->mtu with READ_ONCE() so KCSAN don't issue a warning.
[1] https://lore.kernel.org/all/CANn89iJoJO5VtaJ-2=_d2aOQhb0Xw8iBT_Cxqp2HyuS-zj6azw@mail.gmail.com/
v1 -> v2: Fix commit message
Fixes: d4b36210c2e6 ("net: pkt_sched: PIE AQM scheme")
Suggested-by: Eric Dumazet <[email protected]>
Signed-off-by: Pedro Tammela <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions
