summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2026-07-22 15:11:28 -0700
committerPaul E. McKenney <paulmck@kernel.org>2026-07-23 10:39:16 -0700
commit3159bc28e37577ca3514a6d79c67a7332f649cb7 (patch)
tree7b033d27b9d00b17ac1a6bc01e21a665497292d5 /tools/testing
parent6eec6da5c7bb1806a0af047571886e11a45d269a (diff)
downloadlinux-next-3159bc28e37577ca3514a6d79c67a7332f649cb7.tar.gz
linux-next-3159bc28e37577ca3514a6d79c67a7332f649cb7.zip
futex: Use accessor for hrtimer_sleeper ->task field in requeue
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 handle_early_requeue_pi_wakeup(). KCSAN located this issue. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Darren Hart <dvhart@infradead.org> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: "André Almeida" <andrealmeid@igalia.com> Cc: Anna-Maria Behnsen <anna-maria@linutronix.de> Cc: Frederic Weisbecker <frederic@kernel.org> Cc: Thomas Gleixner <tglx@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions