android_kernel_xiaomi_sm8450/drivers/tty
Wolfram Sang 158adcb7fd serial: sh-sci: protect invalidating RXDMA on shutdown
[ Upstream commit aae20f6e34cd0cbd67a1d0e5877561c40109a81b ]

The to-be-fixed commit removed locking when invalidating the DMA RX
descriptors on shutdown. It overlooked that there is still a rx_timer
running which may still access the protected data. So, re-add the
locking.

Reported-by: Dirk Behme <dirk.behme@de.bosch.com>
Closes: https://lore.kernel.org/r/ee6c9e16-9f29-450e-81da-4a8dceaa8fc7@de.bosch.com
Fixes: 2c4ee23530 ("serial: sh-sci: Postpone DMA release when falling back to PIO")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20240506114016.30498-7-wsa+renesas@sang-engineering.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-16 13:32:21 +02:00
..
hvc hvc/xen: prevent concurrent accesses to the shared ring 2024-03-01 13:16:46 +01:00
ipwireless
serdev
serial serial: sh-sci: protect invalidating RXDMA on shutdown 2024-06-16 13:32:21 +02:00
vt vt: fix unicode buffer corruption when deleting characters 2024-04-13 12:58:52 +02:00
amiserial.c
cyclades.c tty: drivers/tty/, stop using tty_schedule_flip() 2022-07-29 17:19:27 +02:00
ehv_bytechan.c
goldfish.c tty: drivers/tty/, stop using tty_schedule_flip() 2022-07-29 17:19:27 +02:00
isicom.c
Kconfig
Makefile
mips_ejtag_fdc.c
moxa.c tty: drivers/tty/, stop using tty_schedule_flip() 2022-07-29 17:19:27 +02:00
moxa.h
mxser.c
mxser.h
n_gsm.c tty: n_gsm: fix possible out-of-bounds in gsm0_receive() 2024-06-16 13:31:59 +02:00
n_hdlc.c tty: clean include/linux/tty.h up 2023-05-17 11:48:09 +02:00
n_null.c
n_r3964.c
n_tracerouter.c
n_tracesink.c
n_tracesink.h
n_tty.c tty: create internal tty.h file 2023-05-17 11:48:08 +02:00
nozomi.c
pty.c tty: create internal tty.h file 2023-05-17 11:48:08 +02:00
rocket_int.h
rocket.c
rocket.h
synclink_gt.c
synclink.c
synclinkmp.c
sysrq.c tty/sysrq: replace smp_processor_id() with get_cpu() 2023-11-28 16:54:56 +00:00
tty_audit.c tty: audit: move some local functions out of tty.h 2023-05-17 11:48:08 +02:00
tty_baudrate.c tty: clean include/linux/tty.h up 2023-05-17 11:48:09 +02:00
tty_buffer.c tty: move some internal tty lock enums and functions out of tty.h 2023-05-17 11:48:08 +02:00
tty_io.c usb: cdc-acm: return correct error code on unsupported break 2024-01-25 14:37:54 -08:00
tty_ioctl.c tty: allow TIOCSLCKTRMIOS with CAP_CHECKPOINT_RESTORE 2024-02-23 08:42:14 +01:00
tty_jobctrl.c tty: tty_jobctrl: fix pid memleak in disassociate_ctty() 2023-11-20 11:06:52 +01:00
tty_ldisc.c tty: create internal tty.h file 2023-05-17 11:48:08 +02:00
tty_ldsem.c
tty_mutex.c tty: move some internal tty lock enums and functions out of tty.h 2023-05-17 11:48:08 +02:00
tty_port.c tty: create internal tty.h file 2023-05-17 11:48:08 +02:00
tty.h tty: change tty_write_lock()'s ndelay parameter to bool 2024-01-25 14:37:54 -08:00
ttynull.c
vcc.c tty: vcc: Add check for kstrdup() in vcc_probe() 2023-11-28 16:54:52 +00:00