acrn-kernel/drivers/bus
Jeffrey Hugo a2cbb1a45a bus: mhi: host: Range check CHDBOFF and ERDBOFF
commit 6a0c637bfe upstream.

If the value read from the CHDBOFF and ERDBOFF registers is outside the
range of the MHI register space then an invalid address might be computed
which later causes a kernel panic.  Range check the read value to prevent
a crash due to bad data from the device.

Fixes: 6cd330ae76 ("bus: mhi: core: Add support for ringing channel/event ring doorbells")
Cc: stable@vger.kernel.org
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/1679674384-27209-1-git-send-email-quic_jhugo@quicinc.com
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:03:05 +09:00
..
fsl-mc
mhi bus: mhi: host: Range check CHDBOFF and ERDBOFF 2023-05-11 23:03:05 +09:00
Kconfig
Makefile
arm-cci.c
arm-integrator-lm.c
brcmstb_gisb.c
bt1-apb.c
bt1-axi.c
da8xx-mstpri.c
hisi_lpc.c
imx-weim.c bus: imx-weim: fix branch condition evaluates to a garbage value 2023-03-30 12:49:29 +02:00
intel-ixp4xx-eb.c
mips_cdmm.c
moxtet.c
mvebu-mbus.c
omap-ocp2scp.c
omap_l3_noc.c
omap_l3_noc.h
omap_l3_smx.c
omap_l3_smx.h
qcom-ebi2.c
qcom-ssc-block-bus.c
simple-pm-bus.c
sun50i-de2.c
sunxi-rsb.c
tegra-aconnect.c
tegra-gmi.c
ti-pwmss.c
ti-sysc.c
ts-nbus.c
uniphier-system-bus.c
vexpress-config.c