linux-kernel-test/include/linux/platform_data
Robin Gong bd73dfabdd dmaengine: imx-sdma: fix size check for sdma script_number
Illegal memory will be touch if SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3
(41) exceed the size of structure sdma_script_start_addrs(40),
thus cause memory corrupt such as slob block header so that kernel
trap into while() loop forever in slob_free(). Please refer to below
code piece in imx-sdma.c:
for (i = 0; i < sdma->script_number; i++)
	if (addr_arr[i] > 0)
		saddr_arr[i] = addr_arr[i]; /* memory corrupt here */
That issue was brought by commit a572460be9 ("dmaengine: imx-sdma: Add
support for version 3 firmware") because SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3
(38->41 3 scripts added) not align with script number added in
sdma_script_start_addrs(2 scripts).

Fixes: a572460be9 ("dmaengine: imx-sdma: Add support for version 3 firmware")
Cc: stable@vger.kernel
Link: https://www.spinics.net/lists/arm-kernel/msg754895.html
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reported-by: Jurgen Lambrecht <J.Lambrecht@TELEVIC.com>
Link: https://lore.kernel.org/r/1569347584-3478-1-git-send-email-yibin.gong@nxp.com
[vkoul: update the patch title]
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-10-14 13:33:44 +05:30
..
gpio
jz4740
media
txx9
x86
ad5449.h
ad5755.h
ad5761.h
ad7266.h
ad7291.h
ad7298.h
ad7303.h
ad7791.h
ad7793.h
ad7887.h
adau17x1.h
adau1977.h
adp5588.h
adp8860.h
adp8870.h
ads1015.h
ads7828.h
ams-delta-fiq.h
apds990x.h
arm-ux500-pm.h
asoc-imx-ssi.h
asoc-kirkwood.h
asoc-mx27vis.h
asoc-palm27x.h
asoc-s3c24xx_simtec.h
asoc-s3c.h
asoc-ti-mcbsp.h
asoc-ux500-msp.h
at91_adc.h
ata-pxa.h
ata-samsung_cf.h
atmel.h
b53.h
bcmgenet.h
bd6107.h
bh1770glc.h
brcmfmac.h
clk-da8xx-cfgchip.h
clk-davinci-pll.h
clk-integrator.h
clk-st.h
clk-u300.h
cpuidle-exynos.h
cros_ec_chardev.h
cros_ec_commands.h - New Drivers 2019-09-23 19:37:49 -07:00
cros_ec_proto.h
crypto-atmel.h
crypto-ux500.h
cyttsp4.h
davinci_asp.h
davinci-cpufreq.h
dma-atmel.h
dma-coh901318.h
dma-dw.h
dma-ep93xx.h
dma-hsu.h
dma-imx-sdma.h dmaengine: imx-sdma: fix size check for sdma script_number 2019-10-14 13:33:44 +05:30
dma-imx.h
dma-iop32x.h
dma-mcf-edma.h
dma-mmp_tdma.h
dma-mv_xor.h
dma-s3c24xx.h
dma-ste-dma40.h
dmtimer-omap.h
ds620.h
dsa.h
edma.h
efm32-spi.h
efm32-uart.h
ehci-sh.h
elm.h
emif_plat.h
eth-ep93xx.h
g762.h
gpio_backlight.h
gpio-ath79.h
gpio-davinci.h
gpio-dwapb.h
gpio-htc-egpio.h
gpio-omap.h
gpmc-omap.h
hsmmc-omap.h
hwmon-s3c.h
i2c-davinci.h
i2c-designware.h
i2c-gpio.h
i2c-hid.h
i2c-imx.h
i2c-mux-gpio.h
i2c-mux-reg.h
i2c-ocores.h
i2c-omap.h
i2c-pca-platform.h
i2c-pxa.h
i2c-s3c2410.h
i2c-xiic.h
ina2xx.h
intel-mid_wdt.h
intel-spi.h
invensense_mpu6050.h
iommu-omap.h
irda-pxaficp.h
irda-sa11x0.h
isl9305.h
itco_wdt.h
keyboard-pxa930_rotary.h
keyboard-spear.h
keypad-ep93xx.h
keypad-nomadik-ske.h
keypad-omap.h
keypad-pxa27x.h
keyscan-davinci.h
lcd-mipid.h
leds-kirkwood-ns2.h
leds-lm355x.h
leds-lm3642.h
leds-lp55xx.h
leds-omap.h
leds-pca963x.h
leds-s3c24xx.h
lm3630a_bl.h
lm3639_bl.h
lm8323.h
lp855x.h
lp8727.h
lp8755.h
ltc4245.h
lv5207lp.h
macb.h
max197.h
max732x.h
max3421-hcd.h
max6639.h
max6697.h
mcs.h
mdio-bcm-unimac.h
mdio-gpio.h
mfd-mcp-sa11x0.h
microchip-ksz.h
mlxreg.h
mmc-davinci.h
mmc-esdhc-imx.h
mmc-mxcmmc.h
mmc-omap.h
mmc-pxamci.h
mmc-s3cmci.h
mmc-sdhci-s3c.h
mmp_audio.h
mmp_dma.h
mouse-pxa930_trkball.h
mtd-davinci-aemif.h
mtd-davinci.h
mtd-mxc_nand.h
mtd-nand-omap2.h
mtd-nand-pxa3xx.h
mtd-nand-s3c2410.h
mtd-orion_nand.h
mv88e6xxx.h
mv_usb.h
net-cw1200.h
nfcmrvl.h
ntc_thermistor.h
omap1_bl.h
omap-twl4030.h
omap-wd-timer.h
omapdss.h
pca953x.h
pcf857x.h
pcmcia-pxa2xx_viper.h
phy-da8xx-usb.h
pinctrl-single.h
pixcir_i2c_ts.h
pm33xx.h
pwm_omap_dmtimer.h
pxa2xx_udc.h
pxa_sdhci.h
regulator-haptic.h
remoteproc-omap.h
rtc-ds2404.h
rtc-v3020.h
s3c-hsotg.h
s3c-hsudc.h
sa11x0-serial.h
sc18is602.h
sdhci-pic32.h
serial-imx.h
serial-omap.h
serial-sccnxp.h
sgi-w1.h
shmob_drm.h
sht3x.h
shtc1.h
si5351.h
simplefb.h
sky81452-backlight.h
spi-ath79.h
spi-clps711x.h
spi-davinci.h
spi-ep93xx.h
spi-imx.h
spi-mt65xx.h
spi-omap2-mcspi.h
spi-s3c64xx.h
ssm2518.h
st33zp24.h
st_sensors_pdata.h
syscon.h
tc35876x.h
tda9950.h
ti-aemif.h
ti-sysc.h
timer-ixp4xx.h
touchscreen-s3c2410.h
tsc2007.h
tsl2563.h
tsl2772.h
uio_dmem_genirq.h
uio_pruss.h
usb3503.h
usb-davinci.h
usb-ehci-mxc.h
usb-ehci-orion.h
usb-musb-ux500.h
usb-mx2.h
usb-ohci-pxa27x.h
usb-ohci-s3c2410.h
usb-omap1.h
usb-omap.h
usb-pxa3xx-ulpi.h
usb-s3c2410_udc.h
ux500_wdt.h
video_s3c.h
video-ep93xx.h
video-imxfb.h
video-mx3fb.h
video-pxafb.h
voltage-omap.h
wilco-ec.h
wiznet.h
wkup_m3.h
xilinx-ll-temac.h
xtalk-bridge.h
zforce_ts.h