kernel_samsung_a53x/drivers/usb/class
Oliver Neukum d2eb54d2a0 usb: cdc-wdm: close race between read and workqueue
commit 339f83612f3a569b194680768b22bf113c26a29d upstream.

wdm_read() cannot race with itself. However, in
service_outstanding_interrupt() it can race with the
workqueue, which can be triggered by error handling.

Hence we need to make sure that the WDM_RESPONDING
flag is not just only set but tested.

Fixes: afba937e540c9 ("USB: CDC WDM driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20240314115132.3907-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 09:22:42 +01:00
..
cdc-acm.c usb: cdc-acm: return correct error code on unsupported break 2024-11-18 12:12:50 +01:00
cdc-acm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdc-wdm.c usb: cdc-wdm: close race between read and workqueue 2024-11-19 09:22:42 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usblp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usbtmc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00