linux-stable/drivers/tty
John Ogness 83d8181284 serial: msm_serial: disable interrupts in __msm_console_write()
[ Upstream commit aabdbb1b7a ]

__msm_console_write() assumes that interrupts are disabled, but
with threaded console printers it is possible that the write()
callback of the console is called with interrupts enabled.

Explicitly disable interrupts using local_irq_save() to preserve
the assumed context.

Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Link: https://lore.kernel.org/r/20220506213324.470461-1-john.ogness@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:41:36 +02:00
..
hvc tty: hvc: fix return value of __setup handler 2022-04-08 13:58:30 +02:00
ipwireless
serdev
serial serial: msm_serial: disable interrupts in __msm_console_write() 2022-06-14 18:41:36 +02:00
vt vt_ioctl: add array_index_nospec to VT_ACTIVATE 2022-02-04 15:36:02 +01:00
Kconfig
Makefile
amiserial.c
ehv_bytechan.c
goldfish.c tty: goldfish: Use tty_port_destroy() to destroy port 2022-06-14 18:41:13 +02:00
mips_ejtag_fdc.c
moxa.c
mxser.c mxser: fix xmit_buf leak in activate when LSR == 0xff 2022-04-08 13:58:23 +02:00
n_gsm.c tty: n_gsm: Fix packet data hex dump output 2022-06-09 10:26:32 +02:00
n_hdlc.c
n_null.c
n_tty.c tty: n_tty: Restore EOF push handling behavior 2022-06-14 18:41:13 +02:00
nozomi.c
pty.c
rpmsg_tty.c tty: rpmsg: Fix race condition releasing tty port 2022-01-26 14:50:26 +01:00
synclink_gt.c tty: synclink_gt: Fix null-pointer-dereference in slgt_clean() 2022-06-14 18:41:33 +02:00
sysrq.c sysrq: do not omit current cpu when showing backtrace of all active CPUs 2022-06-14 18:41:34 +02:00
tty.h
tty_audit.c
tty_baudrate.c
tty_buffer.c tty: fix deadlock caused by calling printk() under tty_port->lock 2022-06-09 10:26:07 +02:00
tty_io.c
tty_ioctl.c
tty_jobctrl.c
tty_ldisc.c
tty_ldsem.c
tty_mutex.c
tty_port.c
ttynull.c
vcc.c