linux-stable/drivers
Sergey Shtylyov a43bdc6ba3 usb: host: xhci-plat: fix possible kernel oops while resuming
[ Upstream commit a5f928db59 ]

If this driver enables the xHC clocks while resuming from sleep, it calls
clk_prepare_enable() without checking for errors and blithely goes on to
read/write the xHC's registers -- which, with the xHC not being clocked,
at least on ARM32 usually causes an imprecise external abort exceptions
which cause kernel oops.  Currently, the chips for which the driver does
the clock dance on suspend/resume seem to be the Broadcom STB SoCs, based
on ARM32 CPUs, as it seems...

Found by Linux Verification Center (linuxtesting.org) with the Svace static
analysis tool.

Fixes: 8bd954c561 ("usb: host: xhci-plat: suspend and resume clocks")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20231019102924.2797346-19-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:57:17 +01:00
..
accel accel/habanalabs/gaudi2: Fix incorrect string length computation in gaudi2_psoc_razwi_get_engines() 2023-11-20 11:57:01 +01:00
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block
bluetooth
bus
cdrom
cdx
char hwrng: geode - fix accessing registers 2023-11-20 11:57:07 +01:00
clk clk: scmi: Free scmi_clk allocated when the clocks with invalid info are skipped 2023-11-20 11:57:05 +01:00
clocksource clocksource/drivers/arm_arch_timer: limit XGene-1 workaround 2023-11-20 11:57:02 +01:00
comedi
connector
counter
cpufreq
cpuidle
crypto crypto: qat - fix deadlock in backlog processing 2023-11-20 11:57:11 +01:00
cxl
dax
dca
devfreq
dio
dma dmaengine: pxa_dma: Remove an erroneous BUG_ON() in pxad_free_desc() 2023-11-20 11:57:14 +01:00
dma-buf
edac
eisa
extcon
firewire
firmware firmware: tegra: Add suspend hook and reset BPMP IPC early on resume 2023-11-20 11:57:06 +01:00
fpga
fsi
gnss
gpio
gpu drm/amd/pm: Fix a memory leak on an error path 2023-11-20 11:57:02 +01:00
greybus
hid HID: logitech-hidpp: Move get_wireless_feature_index() check to hidpp_connect_event() 2023-11-20 11:57:10 +01:00
hsi
hte hte: tegra: Fix missing error code in tegra_hte_test_probe() 2023-11-20 11:56:58 +01:00
hv
hwmon hwmon: (sch5627) Disallow write access if virtual registers are locked 2023-11-20 11:56:58 +01:00
hwspinlock
hwtracing
i2c
i3c
idle
iio iio: frequency: adf4350: Use device managed functions and fix power down issue. 2023-11-20 11:57:12 +01:00
infiniband IB/mlx5: Fix init stage error handling to avoid double free of same QP and UAF 2023-11-20 11:57:11 +01:00
input
interconnect interconnect: fix error handling in qnoc_probe() 2023-11-20 11:57:16 +01:00
iommu iommufd: Add iopt_area_alloc() 2023-11-20 11:57:06 +01:00
ipack
irqchip
isdn
leds leds: trigger: ledtrig-cpu:: Fix 'output may be truncated' issue for 'cpu' 2023-11-20 11:57:12 +01:00
macintosh
mailbox
mcb
md
media
memory memory: tegra: Set BPMP msg flags to reset IPC channels 2023-11-20 11:57:06 +01:00
memstick
message
mfd mfd: arizona-spi: Set pdata.hpdet_channel for ACPI enumerated devs 2023-11-20 11:57:11 +01:00
misc misc: st_core: Do not call kfree_skb() under spin_lock_irqsave() 2023-11-20 11:57:14 +01:00
mmc
most
mtd
mux
net
nfc
ntb
nubus
nvdimm nd_btt: Make BTT lanes preemptible 2023-11-20 11:57:08 +01:00
nvme
nvmem
of
opp
parisc
parport
pci PCI: endpoint: Fix double free in __pci_epc_create() 2023-11-20 11:57:11 +01:00
pcmcia
peci
perf perf: hisi: Fix use-after-free when register pmu fails 2023-11-20 11:57:03 +01:00
phy
pinctrl pinctrl: renesas: rzg2l: Make reverse order of enable() for disable() 2023-11-20 11:57:13 +01:00
platform platform/chrome: cros_ec_lpc: Separate host command and irq disable 2023-11-20 11:56:58 +01:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: qcom-rpmh: Fix smps4 regulator for pm8550ve 2023-11-20 11:56:57 +01:00
remoteproc
reset
rpmsg
rtc
s390 s390/ap: re-init AP queues on config on 2023-11-20 11:57:16 +01:00
sbus
scsi scsi: ibmvfc: Fix erroneous use of rtas_busy_delay with hcall return code 2023-11-20 11:57:07 +01:00
sh
siox
slimbus
soc soc: qcom: pmic_glink: fix connector type to be DisplayPort 2023-11-20 11:57:06 +01:00
soundwire
spi spi: omap2-mcspi: Fix hardcoded reference clock 2023-11-20 11:56:58 +01:00
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty tty: tty_jobctrl: fix pid memleak in disassociate_ctty() 2023-11-20 11:57:13 +01:00
ufs scsi: ufs: core: Leave space for '\0' in utf8 desc string 2023-11-20 11:57:10 +01:00
uio
usb usb: host: xhci-plat: fix possible kernel oops while resuming 2023-11-20 11:57:17 +01:00
vdpa
vfio
vhost
video backlight: pwm_bl: Disable PWM on shutdown, suspend and remove 2023-11-20 11:57:09 +01:00
virt
virtio
vlynq
w1
watchdog
xen xen-pciback: Consider INTx disabled when MSI/MSI-X is enabled 2023-11-20 11:57:02 +01:00
zorro
Kconfig
Makefile