linux-stable/drivers/usb
Heikki Krogerus 1768f29972 usb: typec: ucsi: displayport: Fix potential deadlock
commit b791a67f68 upstream.

The function ucsi_displayport_work() does not access the
connector, so it also must not acquire the connector lock.

This fixes a potential deadlock scenario:

ucsi_displayport_work() -> lock(&con->lock)
typec_altmode_vdm()
dp_altmode_vdm()
dp_altmode_work()
typec_altmode_enter()
ucsi_displayport_enter() -> lock(&con->lock)

Reported-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Fixes: af8622f6a5 ("usb: typec: ucsi: Support for DisplayPort alt mode")
Cc: stable@vger.kernel.org
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240507134316.161999-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-25 16:20:18 +02:00
..
atm
c67x00
cdns3 usb: cdns3: fix memory double free when handle zero packet 2024-03-01 13:21:49 +01:00
chipidea usb: chipidea: wait controller resume finished for wakeup irq 2024-01-25 14:52:47 -08:00
class Revert "usb: cdc-wdm: close race between read and workqueue" 2024-04-27 17:05:27 +02:00
common usb: common: usb-conn-gpio: Prevent bailing out if initial role is none 2023-08-16 18:21:59 +02:00
core usb: Fix regression caused by invalid ep0 maxpacket in virtual SuperSpeed device 2024-05-17 11:51:02 +02:00
dwc2 usb: dwc2: host: Fix dereference issue in DDMA completion flow. 2024-04-27 17:05:27 +02:00
dwc3 usb: dwc3: core: Prevent phy suspend during init 2024-05-17 11:51:03 +02:00
early usb: early: xhci-dbc: Fix a potential out-of-bound memory access 2023-03-10 09:39:39 +01:00
gadget usb: gadget: f_fs: Fix a race condition when processing setup packets. 2024-05-17 11:51:03 +02:00
host usb: xhci-plat: Don't include xhci.h 2024-05-17 11:51:03 +02:00
image
isp1760
misc USB: sisusbvga: Add endpoint checks 2023-05-30 13:55:31 +01:00
mon usb: mon: Fix atomicity violation in mon_bin_vma_fault 2024-01-25 14:52:47 -08:00
mtu3 usb: mtu3: fix kernel panic at qmu transfer done irq handler 2023-05-11 23:00:33 +09:00
musb usb: musb: Modify the "HWVers" register address 2023-10-19 23:05:35 +02:00
phy Revert "usb: phy: generic: Get the vbus supply" 2024-04-10 16:19:40 +02:00
renesas_usbhs
roles usb: roles: don't get/set_role() when usb_role_switch is unregistered 2024-03-01 13:21:50 +01:00
serial USB: serial: option: add Telit FN920C04 rmnet compositions 2024-04-27 17:05:27 +02:00
storage USB: UAS: return ENODEV when submit urbs fail with device not attached 2024-04-10 16:19:35 +02:00
typec usb: typec: ucsi: displayport: Fix potential deadlock 2024-05-25 16:20:18 +02:00
usbip USB: usbip: fix stub_dev hub disconnect 2023-11-20 11:08:26 +01:00
Kconfig
Makefile
usb-skeleton.c