diff options
author | Julien Grall <julien.grall@arm.com> | 2019-08-21 12:24:07 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-08-21 17:10:01 +0300 |
commit | dd2261ed45aaeddeb77768f291d604179bcab096 (patch) | |
tree | 728574e052504dd97511baa14d8db39b46dd4a3e /.clang-format | |
parent | 7cb9a94c158b956f46cf093ed966d0c1e996dddb (diff) | |
download | linux-dd2261ed45aaeddeb77768f291d604179bcab096.tar.xz |
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 <julien.grall@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190821092409.13225-2-julien.grall@arm.com
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions