summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2026-09-18 17:14:25 -0700
committerThomas Gleixner <tglx@kernel.org>2026-09-29 21:02:52 +0200
commit7eed1771a6e84101c7cdf8b7d487f01b6420ba8c (patch)
tree2a9525daec2c1fa71c511c2bd269beaac4e4b2ac /scripts/Makefile.thinlto
parent9cd2f4e304d921459a9348323aff518aee7fdc06 (diff)
downloadlinux-7eed1771a6e84101c7cdf8b7d487f01b6420ba8c.tar.gz
linux-7eed1771a6e84101c7cdf8b7d487f01b6420ba8c.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> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: André Almeida <andrealmeid@igalia.com> Reviewed-by: Dmitry Ilvokhin <d@ilvokhin.com> Link: https://patch.msgid.link/20260919001428.3133388-9-paulmck@kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions