linux/drivers/phy
Yang Yingliang e1723d8b87 phy: phy-twl4030-usb: Fix possible use-after-free in twl4030_usb_remove()
This driver's remove path calls cancel_delayed_work(). However, that
function does not wait until the work function finishes. This means
that the callback function may still be running after the driver's
remove function has finished, which would result in a use-after-free.

Fix by calling cancel_delayed_work_sync(), which ensures that
the work is properly cancelled, no longer running, and unable
to re-schedule itself.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210407092716.3270248-1-yangyingliang@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-16 07:27:19 +02:00
..
allwinner phy: sun4i-usb: remove enable_pmu_unk1 from sun50i_h6_cfg 2020-11-19 11:49:18 +05:30
amlogic phy: amlogic: replace devm_reset_control_array_get() 2020-11-30 16:32:37 +05:30
broadcom phy: phy-brcm-usb: select SOC_BRCMSTB on brcmstb only 2021-03-15 15:58:24 +05:30
cadence phy: cadence-torrent: Add delay for PIPE clock to be stable 2021-03-31 16:45:47 +05:30
freescale phy: freescale: convert to devm_platform_ioremap_resource 2020-11-16 12:47:46 +05:30
hisilicon phy: hisilicon: Use the correct HiSilicon copyright 2021-04-06 10:35:51 +05:30
ingenic phy: ingenic: Fix a typo in ingenic_usb_phy_probe() 2021-03-30 23:35:17 +05:30
intel phy: intel: Fix a typo 2021-03-25 12:54:24 +05:30
lantiq phy: lantiq: rcu-usb2: wait after clock enable 2021-01-13 19:29:03 +05:30
marvell phy: marvell: phy-mvebu-cp11i-utmi needs USB_COMMON 2021-04-06 10:34:20 +05:30
mediatek phy: second round of phy fixes for v5.11 2021-02-10 10:39:23 +01:00
microchip phy: fix resource_size.cocci warnings 2021-04-06 10:39:20 +05:30
motorola phy-for-5.12 2021-02-09 09:32:35 +01:00
mscc treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
qualcomm phy: qcom-qmp: add support for sm8250-usb3-dp phy 2021-03-31 21:29:44 +05:30
ralink phy: ralink: phy-mt7621-pci: fix return value check in mt7621_pci_phy_probe() 2021-03-30 23:35:17 +05:30
renesas phy: renesas: rcar-gen3-usb2: disable runtime pm in case of failure 2020-12-05 13:36:12 +05:30
rockchip phy: rockchip-typec: add missing of_node_put 2021-03-15 15:35:32 +05:30
samsung phy: samsung: Merge Kconfig for Exynos5420 and Exynos5250 2020-12-02 12:35:07 +05:30
socionext phy: socionext: Add UniPhier AHCI PHY driver support 2020-08-31 17:07:53 +05:30
st phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock 2021-03-15 15:25:29 +05:30
tegra phy-for-5.11 2020-12-09 14:26:40 +01:00
ti phy: phy-twl4030-usb: Fix possible use-after-free in twl4030_usb_remove() 2021-04-16 07:27:19 +02:00
xilinx phy: zynqmp: Handle the clock enable/disable properly 2021-03-31 18:25:54 +05:30
Kconfig phy: Add Sparx5 ethernet serdes PHY driver 2021-03-17 12:13:19 +05:30
Makefile phy: Add Sparx5 ethernet serdes PHY driver 2021-03-17 12:13:19 +05:30
phy-core-mipi-dphy.c phy: dphy: Change units of wakeup and init parameters 2019-02-07 11:11:05 +05:30
phy-core.c phy: Add media type and speed serdes configuration interfaces 2021-03-17 12:13:19 +05:30
phy-lgm-usb.c phy: Add USB3 PHY support for Intel LGM SoC 2020-09-11 17:12:49 +05:30
phy-lpc18xx-usb-otg.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
phy-pistachio-usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
phy-xgene.c phy: phy-xgene: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30