linux-stable/drivers/char
Madhuparna Bhowmik 418b8afbec drivers: char: tlclk.c: Avoid data race between init and interrupt handler
[ Upstream commit 44b8fb6eaa ]

After registering character device the file operation callbacks can be
called. The open callback registers interrupt handler.
Therefore interrupt handler can execute in parallel with rest of the init
function. To avoid such data race initialize telclk_interrupt variable
and struct alarm_events before registering character device.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Link: https://lore.kernel.org/r/20200417153451.1551-1-madhuparnabhowmik10@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:12:42 +02:00
..
agp agp/intel: Fix a memory leak on module initialisation failure 2020-08-21 09:48:06 +02:00
hw_random hwrng: imx-rngc - fix an error path 2020-04-13 10:34:33 +02:00
ipmi ipmi: Fix NULL pointer dereference in ssif_probe 2020-05-20 08:17:08 +02:00
mwave char/mwave: fix potential Spectre v1 vulnerability 2019-01-31 08:13:43 +01:00
pcmcia
tpm tpm: ibmvtpm: Wait for buffer to be set before proceeding 2020-10-01 13:12:37 +02:00
xilinx_hwicap
xillybus
apm-emulation.c
applicom.c applicom: Fix potential Spectre v1 vulnerabilities 2019-03-13 14:03:10 -07:00
applicom.h
bfin-otp.c
bsr.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
efirtc.c
generic_nvram.c
hangcheck-timer.c
hpet.c hpet: Fix division by zero in hpet_time_div() 2019-07-31 07:28:58 +02:00
Kconfig tty: mark Siemens R3964 line discipline as BROKEN 2019-04-17 08:37:44 +02:00
lp.c
Makefile
mbcs.c
mbcs.h
mem.c /dev/mem: Bail out upon SIGKILL. 2019-10-05 12:48:11 +02:00
misc.c
mspec.c
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c
powernv-op-panel.c
ppdev.c ppdev: fix PPGETTIME/PPSETTIME ioctls 2019-12-17 20:39:39 +01:00
ps3flash.c
random.c random32: update the net random state on interrupt and activity 2020-08-07 09:38:41 +02:00
raw.c
rtc.c
scx200_gpio.c
snsc.c
snsc.h
snsc_event.c
sonypi.c
tb0219.c
tile-srom.c
tlclk.c drivers: char: tlclk.c: Avoid data race between init and interrupt handler 2020-10-01 13:12:42 +02:00
toshiba.c
ttyprintk.c ttyprintk: fix a potential deadlock in interrupt context issue 2020-02-05 14:18:15 +00:00
uv_mmtimer.c
virtio_console.c virtio: virtio_console: add missing MODULE_DEVICE_TABLE() for rproc serial 2020-07-22 09:22:27 +02:00