android_kernel_sony_sdm845/drivers/phy
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yang Yingliang 0956dcc782 phy: phy-twl4030-usb: Fix possible use-after-free in twl4030_usb_remove()
[ Upstream commit e1723d8b87b73ab363256e7ca3af3ddb75855680 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 10:40:16 +02:00
..
tegra phy: tegra: xusb: Fix dangling pointer on probe failure 2020-12-02 08:31:27 +01:00
Kconfig
Makefile
phy-armada375-usb2.c
phy-bcm-cygnus-pcie.c
phy-bcm-kona-usb2.c
phy-bcm-ns-usb2.c
phy-bcm-ns-usb3.c
phy-bcm-ns2-pcie.c
phy-berlin-sata.c
phy-berlin-usb.c
phy-brcm-sata.c
phy-core.c
phy-da8xx-usb.c
phy-dm816x-usb.c
phy-exynos-dp-video.c
phy-exynos-mipi-video.c
phy-exynos4x12-usb2.c
phy-exynos5-usbdrd.c
phy-exynos4210-usb2.c
phy-exynos5250-sata.c
phy-exynos5250-usb2.c
phy-hi6220-usb.c
phy-hix5hd2-sata.c
phy-lpc18xx-usb-otg.c
phy-miphy28lp.c
phy-miphy365x.c
phy-mt65xx-usb3.c
phy-mvebu-sata.c
phy-omap-control.c
phy-omap-usb2.c
phy-pistachio-usb.c
phy-pxa-28nm-hsic.c
phy-pxa-28nm-usb2.c
phy-qcom-apq8064-sata.c
phy-qcom-ipq806x-sata.c
phy-qcom-ufs-i.h
phy-qcom-ufs-qmp-14nm.c
phy-qcom-ufs-qmp-14nm.h
phy-qcom-ufs-qmp-20nm.c
phy-qcom-ufs-qmp-20nm.h
phy-qcom-ufs.c
phy-rcar-gen2.c
phy-rcar-gen3-usb2.c
phy-rockchip-dp.c
phy-rockchip-emmc.c
phy-rockchip-inno-usb2.c
phy-rockchip-pcie.c
phy-rockchip-typec.c
phy-rockchip-usb.c
phy-s5pv210-usb2.c phy: samsung: s5pv210-usb2: Add delay after reset 2020-10-01 20:40:12 +02:00
phy-samsung-usb2.c
phy-samsung-usb2.h
phy-spear1310-miphy.c
phy-spear1340-miphy.c
phy-stih41x-usb.c
phy-stih407-usb.c
phy-sun4i-usb.c
phy-sun9i-usb.c
phy-ti-pipe3.c
phy-tusb1210.c
phy-twl4030-usb.c phy: phy-twl4030-usb: Fix possible use-after-free in twl4030_usb_remove() 2021-05-22 10:40:16 +02:00
phy-xgene.c
ulpi_phy.h