android_kernel_samsung_msm8976/kernel/time
Thomas Gleixner c63af23f96 tick/broadcast: Prevent NULL pointer dereference
commit c1a9eeb938b5433947e5ea22f89baff3182e7075 upstream.

When a disfunctional timer, e.g. dummy timer, is installed, the tick core
tries to setup the broadcast timer.

If no broadcast device is installed, the kernel crashes with a NULL pointer
dereference in tick_broadcast_setup_oneshot() because the function has no
sanity check.

Reported-by: Mason <slash.tmp@free.fr>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Anna-Maria Gleixner <anna-maria@linutronix.de>
Cc: Richard Cochran <rcochran@linutronix.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
Cc: Sebastian Frias <sf84@laposte.net>
Cc: Thibaud Cornic <thibaud_cornic@sigmadesigns.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Link: http://lkml.kernel.org/r/1147ef90-7877-e4d2-bb2b-5c4fa8d3144b@free.fr
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:43:41 +02:00
..
alarmtimer.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
clockevents.c This is the 3.10.67 stable release 2015-04-24 18:04:40 -07:00
clocksource.c
jiffies.c
Kconfig
Makefile time: Remove CONFIG_TIMER_STATS 2017-04-22 23:02:59 +02:00
ntp.c ntp: Fixup adjtimex freq validation on 32-bit systems 2015-03-06 14:40:52 -08:00
ntp_internal.h
posix-clock.c posix-clock: Fix return code on the poll method's error path 2016-03-03 15:06:23 -08:00
sched_clock.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
tick-broadcast-hrtimer.c tick: Introduce hrtimer based broadcast 2014-08-15 11:46:52 -07:00
tick-broadcast.c tick/broadcast: Prevent NULL pointer dereference 2019-07-27 21:43:41 +02:00
tick-common.c clockevents: Move the tick_notify() switch case to clockevents_notify() 2014-08-15 11:46:56 -07:00
tick-internal.h time: Change the return type of clockevents_notify() to integer 2014-08-15 17:20:11 -07:00
tick-oneshot.c
tick-sched.c sched: use ktime instead of sched_clock for load tracking 2015-12-16 13:38:12 +05:30
timeconv.c
timekeeping.c time: Always make sure wall_to_monotonic isn't positive 2017-12-19 00:21:52 -08:00
timer_list.c time: Remove CONFIG_TIMER_STATS 2017-04-22 23:02:59 +02:00