android_kernel_sony_sdm845/include/linux/platform_data
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Robin Gong 9e0951ca58 dmaengine: imx-sdma: fix size check for sdma script_number
[ Upstream commit bd73dfabdda280fc5f05bdec79b6721b4b2f035f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-29 10:24:34 +01:00
..
media [media] media: platform: pxa_camera: make a standalone v4l2 device 2016-09-09 10:52:31 -03:00
ad5449.h
ad5755.h
ad5761.h iio: add ad5761 DAC driver 2016-01-24 14:46:21 +00:00
ad7266.h
ad7291.h
ad7298.h
ad7303.h
ad7791.h
ad7793.h
ad7879.h Input: ad7879 - move header to platform_data directory 2016-03-08 10:51:10 -08:00
ad7887.h
adau17x1.h ASoC: adau17x1: Correct typos in file headers 2016-02-24 13:14:05 +09:00
adau1977.h
ads7828.h
arm-ux500-pm.h
asoc-imx-ssi.h
asoc-kirkwood.h
asoc-mx27vis.h
asoc-palm27x.h
asoc-s3c.h ASoC: samsung: pass filter function as pointer 2015-11-21 13:27:22 +00:00
asoc-s3c24xx_simtec.h
asoc-ti-mcbsp.h ARM: OMAP2+: McBSP: Remove the old iclk allow/deny idle code 2016-06-10 05:07:25 -07:00
asoc-ux500-msp.h
at24.h eeprom: at24: add support for at24mac series 2016-07-17 19:58:00 +02:00
at91_adc.h
ata-pxa.h
ata-samsung_cf.h
atmel.h ARM: SoC platform updates for v4.4 2015-11-10 14:56:23 -08:00
atmel_mxt_ts.h
b53.h net: dsa: b53: Add support for Broadcom RoboSwitch 2016-06-09 22:21:29 -07:00
bcmgenet.h
bd6107.h
bfin_rotary.h
brcmfmac.h brcmfmac: switch to new platform data 2016-03-07 14:15:50 +02:00
bt-nokia-h4p.h
clk-integrator.h
clk-lpss.h
clk-realview.h
clk-u300.h
cpuidle-exynos.h
crypto-atmel.h
crypto-ux500.h
cyttsp4.h
davinci_asp.h
db8500_thermal.h
dma-atmel.h
dma-coh901318.h
dma-dw.h dmaengine: dw: override LLP support if asked in platform data 2016-08-31 16:13:29 +02:00
dma-ep93xx.h dmaengine: ep93xx: Return proper enum in ep93xx_dma_chan_direction 2019-11-25 09:53:24 +01:00
dma-hsu.h
dma-imx-sdma.h dmaengine: imx-sdma: fix size check for sdma script_number 2020-01-29 10:24:34 +01:00
dma-imx.h
dma-mmp_tdma.h dmaengine: mmp_tdma: enable COMPILE_TEST 2016-09-26 22:31:04 +05:30
dma-mv_xor.h
dma-s3c24xx.h dmaengine: s3c24xx: Add dma_slave_map for s3c2440 devices 2016-09-26 23:13:04 +05:30
dma-ste-dma40.h
dmtimer-omap.h
drv260x-pdata.h
dwc3-omap.h
edma.h dmaengine updates for 4.5-rc1 2016-01-13 10:59:52 -08:00
efm32-spi.h
efm32-uart.h
ehci-sh.h
elm.h
emif_plat.h
eth-netx.h
fsa9480.h
g762.h
gpio-ath79.h
gpio-davinci.h
gpio-dwapb.h gpio: dwapb: convert device node to fwnode 2016-04-29 11:23:53 +02:00
gpio-htc-egpio.h mfd/gpio: Move HTC GPIO driver to GPIO subsystem 2016-09-28 09:28:34 -07:00
gpio-omap.h
gpio-ts5500.h
gpio_backlight.h
gpmc-omap.h ARM: OMAP2+: gpmc: Add gpmc timings and settings to platform data 2016-04-15 11:51:02 +03:00
hsmmc-omap.h
hwmon-s3c.h
i2c-cbus-gpio.h
i2c-davinci.h
i2c-designware.h
i2c-imx.h
i2c-mux-reg.h
i2c-nuc900.h
i2c-s3c2410.h
ina2xx.h hwmon: (ina2xx) fix sysfs shunt resistor read access 2018-10-03 17:01:52 -07:00
intel-mid_wdt.h
invensense_mpu6050.h iio:imu:mpu6050: enhance mounting matrix support 2016-04-23 22:16:01 +01:00
iommu-omap.h ARM: OMAP2+: Remove omap_mmu_dev_attr structure 2015-11-30 10:35:07 -08:00
irda-pxaficp.h
irda-sa11x0.h
isl9305.h regulator: isl9305: fix array size 2018-03-22 09:17:50 +01:00
itco_wdt.h
keyboard-pxa930_rotary.h
keyboard-spear.h
keypad-ep93xx.h
keypad-nomadik-ske.h
keypad-omap.h
keypad-pxa27x.h
keypad-w90p910.h
keyscan-davinci.h
lcd-mipid.h
leds-kirkwood-netxbig.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
lp855x.h
lp8727.h
lp8755.h
lv5207lp.h
macb.h
max197.h
max3421-hcd.h
max6697.h
mdio-gpio.h
mfd-mcp-sa11x0.h
mmc-davinci.h
mmc-esdhc-imx.h mmc: sdhci-esdhc-imx: support setting tuning start point 2016-07-25 10:34:54 +02:00
mmc-mxcmmc.h
mmc-omap.h
mmc-pxamci.h
mmc-s3cmci.h
mmc-sdhci-s3c.h
mmp_audio.h
mmp_dma.h dmaengine: mmp-pdma: add number of requestors 2016-02-26 22:56:52 +01:00
mouse-pxa930_trkball.h
mtd-davinci-aemif.h
mtd-davinci.h
mtd-mxc_nand.h
mtd-nand-omap2.h mtd: nand: omap2: Implement NAND ready using gpiolib 2016-04-15 11:55:37 +03:00
mtd-nand-pxa3xx.h
mtd-nand-s3c2410.h mtd: nand: s3c2410: kill the ->ecc_layout field 2016-01-26 10:27:35 -08:00
mtd-onenand-omap2.h
mtd-orion_nand.h
mv_usb.h
net-cw1200.h
nfcmrvl.h
ntc_thermistor.h hwmon: (ntc_thermistor) Add support for ncpXXxh103 2016-03-05 06:25:34 -08:00
nxp-nci.h
omap-twl4030.h
omap-wd-timer.h
omap1_bl.h
omap_drm.h
omapdss.h platform_data: omapdss: Remove unused members from omap_dss_board_info 2016-06-03 16:06:35 +03:00
pca953x.h
pcmcia-pxa2xx_viper.h
pinctrl-adi2.h
pinctrl-single.h
pixcir_i2c_ts.h
pn544.h
pwm_omap_dmtimer.h ARM: OMAP2+: Add more functions to pwm pdata for ir-rx51 2016-04-28 14:26:32 -07:00
pxa2xx_udc.h
pxa_sdhci.h
regulator-haptic.h
remoteproc-omap.h remoteproc/omap: fix various code formatting issues 2016-08-12 21:27:50 -07:00
rtc-ds2404.h rtc: ds2404: move rtc-ds2404.h to platform_data 2016-06-27 10:48:28 +02:00
rtc-m48t86.h rtc: m48t86: move m48t86.h to platform_data 2016-06-27 18:15:25 +02:00
rtc-v3020.h rtc: v3020: move rtc-v3020.h to platform_data 2016-07-09 10:24:21 +02:00
s3c-hsotg.h
s3c-hsudc.h
sa11x0-serial.h serial: sa1100: make sa1100_register_uart_fns a function 2016-03-07 16:11:14 -08:00
sc18is602.h
sdhci-pic32.h MIPS: Add support for PIC32MZDA platform 2016-01-24 02:53:28 +01:00
serial-imx.h
serial-omap.h ARM: OMAP: serial: Rename DRIVER_NAME 2016-02-06 23:13:30 -08:00
serial-sccnxp.h
sh_ipmmu.h
shmob_drm.h
sht3x.h hwmon: add support for Sensirion SHT3x sensors 2016-06-27 18:58:03 -07:00
sht15.h
shtc1.h
si5351.h
simplefb.h
sky81452-backlight.h
spi-clps711x.h
spi-davinci.h
spi-ep93xx.h
spi-imx.h
spi-mt65xx.h
spi-nuc900.h
spi-omap2-mcspi.h
spi-s3c64xx.h spi: s3c64xx: consider the case when the CS line is not connected 2016-06-29 22:45:23 +01:00
ssm2518.h
st-nci.h
st21nfca.h
st33zp24.h tpm/st33zp24: Extend Copyright headers 2016-06-25 17:21:42 +03:00
st1232_pdata.h
st_sensors_pdata.h iio: st_sensors: support open drain mode 2016-04-19 19:58:13 +01:00
syscon.h
touchscreen-s3c2410.h ARM: s3c64xx: use new adc/touchscreen driver 2015-12-01 21:50:25 +01:00
tsl2563.h
uio_dmem_genirq.h
uio_pruss.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-omap.h
usb-omap1.h
usb-pxa3xx-ulpi.h
usb-s3c2410_udc.h
usb3503.h
ux500_wdt.h
video-clcd-versatile.h
video-ep93xx.h
video-imxfb.h
video-mx3fb.h
video-nuc900fb.h
video-pxafb.h
video_s3c.h
voltage-omap.h
wiznet.h
wkup_m3.h
zforce_ts.h