aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/hyperv_timer.c
diff options
context:
space:
mode:
authorJulien Grall <[email protected]>2019-08-21 09:24:07 +0000
committerThomas Gleixner <[email protected]>2019-08-21 14:10:01 +0000
commitdd2261ed45aaeddeb77768f291d604179bcab096 (patch)
tree728574e052504dd97511baa14d8db39b46dd4a3e /drivers/clocksource/hyperv_timer.c
parentposix-cpu-timers: Fixup stale comment (diff)
downloadkernel-dd2261ed45aaeddeb77768f291d604179bcab096.tar.gz
kernel-dd2261ed45aaeddeb77768f291d604179bcab096.zip
hrtimer: Protect lockless access to timer->base
The update to timer->base is protected by the base->cpu_base->lock(). However, hrtimer_cancel_wait_running() does access it lockless. So the compiler is allowed to refetch timer->base which can cause havoc when the timer base is changed concurrently. Use READ_ONCE() to prevent this. [ tglx: Adapted from a RT patch ] Signed-off-by: Julien Grall <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/clocksource/hyperv_timer.c')
0 files changed, 0 insertions, 0 deletions