diff options
| author | Julien Grall <[email protected]> | 2019-08-21 09:24:07 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-08-21 14:10:01 +0000 |
| commit | dd2261ed45aaeddeb77768f291d604179bcab096 (patch) | |
| tree | 728574e052504dd97511baa14d8db39b46dd4a3e /drivers/clocksource/hyperv_timer.c | |
| parent | posix-cpu-timers: Fixup stale comment (diff) | |
| download | kernel-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
