diff options
| author | Shuah Khan <[email protected]> | 2020-10-06 22:39:14 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-10-07 07:25:48 +0000 |
| commit | 9e8586827a7061fdb183e6571fac63af378be013 (patch) | |
| tree | 19e5f532b74b2be75a5d1114267f28ec59414469 /security/selinux/hooks.c | |
| parent | usb: cdc-acm: add quirk to blacklist ETAS ES58X devices (diff) | |
| download | kernel-9e8586827a7061fdb183e6571fac63af378be013.tar.gz kernel-9e8586827a7061fdb183e6571fac63af378be013.zip | |
usbip: vhci_hcd: fix calling usb_hcd_giveback_urb() with irqs enabled
kcov testing uncovered call to usb_hcd_giveback_urb() without disabling
interrupts.
Link: https://lore.kernel.org/linux-usb/CAAeHK+wb4k-LGTjK9F5YbJNviF_+yU+wE_=Vpo9Rn7KFN8vG6Q@mail.gmail.com/
usb_hcd_giveback_urb() is called from vhci's urb_enqueue, when it
determines it doesn't need to xmit the urb and can give it back.
This path runs in task context.
Disable irqs around usb_hcd_giveback_urb() call.
Reported-by: Andrey Konovalov <[email protected]>
Suggested-by: Alan Stern <[email protected]>
Acked-by: Andrey Konovalov <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
