android_kernel_samsung_univ.../drivers
Joonyoung Shim 098b62b757 clocksource/exynos_mct: Clear interrupt when cpu is shut down
commit bc7c36eedb0c7004aa06c2afc3c5385adada8fa3 upstream.

When a CPU goes offline a potentially pending timer interrupt is not
cleared. When the CPU comes online again then the pending interrupt is
delivered before the per cpu clockevent device is initialized. As a
consequence the tick interrupt handler dereferences a NULL pointer.

[   51.251378] Unable to handle kernel NULL pointer dereference at virtual address 00000040
[   51.289348] task: ee942d00 task.stack: ee960000
[   51.293861] PC is at tick_periodic+0x38/0xb0
[   51.298102] LR is at tick_handle_periodic+0x1c/0x90

Clear the pending interrupt in the cpu dying path.

Fixes: 56a94f1391 ("clocksource: exynos_mct: Avoid blocking calls in the cpu hotplug notifier")
Reported-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org
Cc: cw00.choi@samsung.com
Cc: daniel.lezcano@linaro.org
Cc: javier@osg.samsung.com
Cc: kgene@kernel.org
Cc: krzk@kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1484628876-22065-1-git-send-email-jy0922.shim@samsung.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-26 08:23:48 +01:00
..
accessibility
acpi ACPI / APEI: Fix NMI notification handling 2017-01-19 20:17:22 +01:00
amba
android
ata
atm
auxdisplay
base PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend 2017-01-12 11:22:49 +01:00
bcma
block
bluetooth
bus bus: vexpress-config: fix device reference leak 2017-01-19 20:17:22 +01:00
cdrom
char
clk clk: imx31: fix rewritten input argument of mx31_clocks_init() 2017-01-12 11:22:49 +01:00
clocksource clocksource/exynos_mct: Clear interrupt when cpu is shut down 2017-01-26 08:23:48 +01:00
connector
cpufreq cpufreq: powernv: Disable preemption while checking CPU throttling state 2017-01-19 20:17:22 +01:00
cpuidle
crypto
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware
fmc
fpga
gpio
gpu drm/radeon: drop verde dpm quirks 2017-01-19 20:17:21 +01:00
hid HID: corsair: fix control-transfer error handling 2017-01-26 08:23:48 +01:00
hsi
hv
hwmon hwmon: (g762) Fix overflows and crash seen when writing limit attributes 2017-01-12 11:22:48 +01:00
hwspinlock
hwtracing
i2c i2c: fix kernel memory disclosure in dev interface 2017-01-19 20:17:20 +01:00
ide
idle
iio
infiniband IB/IPoIB: Remove can't use GFP_NOIO warning 2017-01-26 08:23:47 +01:00
input Input: elants_i2c - avoid divide by 0 errors on bad touchscreen data 2017-01-19 20:17:20 +01:00
iommu iommu/vt-d: Flush old iommu caches for kdump when the device gets context mapped 2017-01-12 11:22:49 +01:00
ipack
irqchip irqchip/bcm7038-l1: Implement irq_cpu_offline() callback 2017-01-12 11:22:49 +01:00
isdn ser_gigaset: return -ENOMEM on error instead of success 2017-01-15 13:41:34 +01:00
leds
lguest
lightnvm
macintosh
mailbox
mcb
md md: MD_RECOVERY_NEEDED is set for mddev->recovery 2017-01-12 11:22:50 +01:00
media cx23885-dvb: move initialization of a8293_pdata 2017-01-12 11:22:51 +01:00
memory
memstick
message
mfd
misc mei: bus: fix mei_cldev_enable KDoc 2017-01-12 11:22:47 +01:00
mmc mmc: mxs-mmc: Fix additional cycles after transmission stop 2017-01-26 08:23:48 +01:00
mtd mtd: nand: xway: disable module support 2017-01-26 08:23:48 +01:00
net ieee802154: atusb: do not use the stack for buffers to make them DMA able 2017-01-26 08:23:48 +01:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
oprofile
parisc
parport
pci PCI: Enumerate switches below PCI-to-PCIe bridges 2017-01-26 08:23:48 +01:00
pcmcia
perf
phy
pinctrl pinctrl: sh-pfc: Do not unconditionally support PIN_CONFIG_BIAS_DISABLE 2017-01-19 20:17:23 +01:00
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi qla2xxx: Fix crash due to null pointer access 2017-01-26 08:23:48 +01:00
sfi
sh
sn
soc
spi spi: mvebu: fix baudrate calculation for armada variant 2017-01-15 13:41:36 +01:00
spmi
ssb
staging staging: comedi: dt282x: tidy up register bit defines 2017-01-12 11:22:50 +01:00
target target/iscsi: Fix double free in lio_target_tiqn_addtpg() 2017-01-12 11:22:49 +01:00
tc
thermal
thunderbolt
tty sysrq: attach sysrq handler correctly for 32-bit kernel 2017-01-19 20:17:21 +01:00
uio
usb USB: serial: ch341: fix modem-control and B0 handling 2017-01-19 20:17:21 +01:00
uwb
vfio
vhost
video
virt
virtio
vlynq
vme vme: Fix wrong pointer utilization in ca91cx42_slave_get 2017-01-19 20:17:21 +01:00
w1
watchdog
xen
zorro
Kconfig
Makefile