summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2026-09-18 17:14:23 -0700
committerThomas Gleixner <tglx@kernel.org>2026-09-29 21:02:52 +0200
commit3990d196954a06cf9fb1bb4efd142d57c30a8e21 (patch)
treee3a3e71a060f69a1a41ab690a1e46d5fefc3c069 /scripts/Makefile.thinlto
parent9b7bcd671e9c979f16c48589f4b9b6c684ab052f (diff)
downloadlinux-3990d196954a06cf9fb1bb4efd142d57c30a8e21.tar.gz
linux-3990d196954a06cf9fb1bb4efd142d57c30a8e21.zip
net: pktgen: Use accessor for hrtimer_sleeper ->task field
The hrtimer_sleeper structure's ->task field is used as a flag to indicate that the associated hrtimer has expired. This means that the hrtimer handler can be storing to this field while other code is loading from it to check for expiry. Note that additional races appear for hrtimers that can be restarted, which could be argued to be a user error. However, that is no reason to let the compiler introduce additional confusion, and to this end, the hrtimer_sleeper_task_get() was introduced, use of which also has the benefit of avoiding open-code access to hrtimer_sleeper innards. Therefore, apply this accessor to the pktgen spin() function. KCSAN located this issue. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260919001428.3133388-7-paulmck@kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions