John Stultz
27727df240
timekeeping: Avoid taking lock in NMI path with CONFIG_DEBUG_TIMEKEEPING
...
When I added some extra sanity checking in timekeeping_get_ns() under
CONFIG_DEBUG_TIMEKEEPING, I missed that the NMI safe __ktime_get_fast_ns()
method was using timekeeping_get_ns().
Thus the locking added to the debug checks broke the NMI-safety of
__ktime_get_fast_ns().
This patch open-codes the timekeeping_get_ns() logic for
__ktime_get_fast_ns(), so can avoid any deadlocks in NMI.
Fixes: 4ca22c2648 "timekeeping: Add warnings when overflows or underflows are observed"
Reported-by: Steven Rostedt <rostedt@goodmis.org>
Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Cc: stable <stable@vger.kernel.org>
Link: http://lkml.kernel.org/r/1471993702-29148-2-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2016-08-24 09:34:31 +02:00
..
alarmtimer.c
alarmtimer: Fix comments describing structure fields
2016-06-20 12:47:09 -07:00
clockevents.c
clockevents: Make clockevents_subsys static
2016-07-19 10:48:06 +02:00
clocksource.c
clocksource: Make clocksource insert entry more efficient
2016-06-20 12:46:34 -07:00
hrtimer.c
hrtimer: Convert to hotplug state machine
2016-07-15 10:41:37 +02:00
itimer.c
itimers: Handle relative timers with CONFIG_TIME_LOW_RES proper
2016-01-17 11:13:55 +01:00
jiffies.c
jiffies: Use CLOCKSOURCE_MASK instead of constant
2016-02-27 08:55:31 +01:00
Kconfig
Makefile
ntp.c
ntp: Fix ADJ_SETOFFSET being used w/ ADJ_NANO
2016-01-22 12:01:42 +01:00
ntp_internal.h
ntp: Fix second_overflow's input parameter type to be 64bits
2015-12-16 16:50:56 -08:00
posix-clock.c
posix-clock: Fix return code on the poll method's error path
2015-12-29 11:33:06 +01:00
posix-cpu-timers.c
posix_cpu_timer: Exit early when process has been reaped
2016-07-11 17:20:12 +02:00
posix-timers.c
posix-timers: Handle relative timers with CONFIG_TIME_LOW_RES proper
2016-01-17 11:13:55 +01:00
sched_clock.c
test_udelay.c
time: Avoid timespec in udelay_test
2016-06-20 12:47:26 -07:00
tick-broadcast-hrtimer.c
tick/broadcast-hrtimer: Set name of the ce_broadcast_hrtimer
2016-07-05 17:02:19 +02:00
tick-broadcast.c
tick: Move the export of tick_broadcast_oneshot_control to the proper place
2015-07-14 12:01:04 +02:00
tick-common.c
clockevents: Remove unused set_mode() callback
2015-09-14 11:00:55 +02:00
tick-internal.h
timers: Forward the wheel clock whenever possible
2016-07-07 10:35:11 +02:00
tick-oneshot.c
tick-sched.c
tick/nohz: Optimize nohz idle enter
2016-07-19 13:48:24 +02:00
tick-sched.h
timers/nohz: Convert tick dependency mask to atomic_t
2016-03-29 11:52:11 +02:00
time.c
time: remove timespec_add_safe()
2016-05-19 19:12:14 -07:00
timeconst.bc
timeconst: Update path in comment
2015-10-26 10:06:06 +09:00
timeconv.c
time: Add time64_to_tm()
2016-06-20 12:47:15 -07:00
timecounter.c
timekeeping.c
timekeeping: Avoid taking lock in NMI path with CONFIG_DEBUG_TIMEKEEPING
2016-08-24 09:34:31 +02:00
timekeeping.h
timekeeping_debug.c
timekeeping_internal.h
clocksource: Make clocksource validation work for all clocksources
2015-12-19 15:59:57 +01:00
timer.c
timers: Fix get_next_timer_interrupt() computation
2016-08-09 09:31:55 +02:00
timer_list.c
hrtimer: Handle remaining time proper for TIME_LOW_RES
2016-01-17 11:13:55 +01:00
timer_stats.c
timer: Avoid using timespec
2016-06-20 12:47:33 -07:00