acrn-kernel/drivers/phy
Harshit Mogalapalli 13c088cf36 phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()
The size of array 'priv->ports[]' is INNO_PHY_PORT_NUM.

In the for loop, 'i' is used as the index for array 'priv->ports[]'
with a check (i > INNO_PHY_PORT_NUM) which indicates that
INNO_PHY_PORT_NUM is allowed value for 'i' in the same loop.

This > comparison needs to be changed to >=, otherwise it potentially leads
to an out of bounds write on the next iteration through the loop

Fixes: ba8b0ee81f ("phy: add inno-usb2-phy driver for hi3798cv200 SoC")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Link: https://lore.kernel.org/r/20230721090558.3588613-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2023-07-24 16:23:37 +05:30
..
allwinner phy: Use of_property_present() for testing DT property presence 2023-03-20 18:14:58 +05:30
amlogic Merge branch 'fixes' into next 2023-05-19 23:16:43 +05:30
broadcom phy: usb: suppress OC condition for 7439b2 2023-06-21 17:43:27 +05:30
cadence phy-for-6.5-v2 2023-07-05 21:38:13 -07:00
freescale phy: fsl-imx8mp-usb: add support for phy tuning 2023-05-19 23:20:30 +05:30
hisilicon phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe() 2023-07-24 16:23:37 +05:30
ingenic
intel phy-for-6.4 2023-05-03 11:17:34 -07:00
lantiq
marvell phy: marvell: drop of_match_ptr for ID table 2023-03-20 18:14:59 +05:30
mediatek phy: mediatek: hdmi: mt8195: fix prediv bad upper limit test 2023-07-12 22:27:02 +05:30
microchip phy: sparx5-serdes: add skip_cmu_cfg check when configuring lanes 2023-05-08 17:13:01 +05:30
motorola phy: motorola: phy-mapphone-mdm6600: Convert to platform remove callback returning void 2023-03-20 18:14:56 +05:30
mscc phy: phy-ocelot-serdes: add ability to be used in a non-syscon configuration 2023-03-20 09:08:48 +00:00
qualcomm phy: qcom-snps-femto-v2: use qcom_snps_hsphy_suspend/resume error code 2023-07-12 22:27:03 +05:30
ralink
renesas phy: renesas: r8a779f0-ether-serdes: Convert to platform remove callback returning void 2023-03-20 18:14:57 +05:30
rockchip phy: rockchip: remove unused hw_to_inno function 2023-04-12 21:47:50 +05:30
samsung phy: Revert "phy: Remove SOC_EXYNOS4212 dep. from PHY_EXYNOS4X12_USB" 2023-05-16 19:38:39 +05:30
socionext
st phy: stm32-usphyc: add 200 to 300 us delay to fix timeout on some machines 2023-03-31 18:59:16 +05:30
sunplus
tegra phy: tegra: xusb: check return value of devm_kzalloc() 2023-06-21 23:28:52 +05:30
ti phy-for-6.5-v2 2023-07-05 21:38:13 -07:00
xilinx phy: xilinx: phy-zynqmp: mention SGMII as supported protocol 2023-03-31 19:08:48 +05:30
Kconfig media: tc358746: select CONFIG_GENERIC_PHY 2023-06-28 11:08:42 +02:00
Makefile
phy-can-transceiver.c
phy-core-mipi-dphy.c
phy-core.c phy: core: add debugfs files 2023-05-19 23:23:52 +05:30
phy-lgm-usb.c phy: phy-lgm-usb: Convert to platform remove callback returning void 2023-03-20 18:14:56 +05:30
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c