]> Git Repo - linux.git/commit
usb: cdc-wdm: close race between read and workqueue
authorOliver Neukum <[email protected]>
Thu, 14 Mar 2024 11:50:48 +0000 (12:50 +0100)
committerGreg Kroah-Hartman <[email protected]>
Tue, 26 Mar 2024 13:56:33 +0000 (14:56 +0100)
commit339f83612f3a569b194680768b22bf113c26a29d
treeee684e37856195b5893dcdee01ae963e6fd0fee8
parent5d69a3b54e5a630c90d82a4c2bdce3d53dc78710
usb: cdc-wdm: close race between read and workqueue

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 <[email protected]>
Signed-off-by: Oliver Neukum <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/class/cdc-wdm.c
This page took 0.05005 seconds and 4 git commands to generate.