linux/drivers/mmc/core
Pan Bian 8e1943af29 mmc: core: fix possible use after free of host
In the function mmc_alloc_host, the function put_device is called to
release allocated resources when mmc_gpio_alloc fails. Finally, the
function pointed by host->class_dev.class->dev_release (i.e.,
mmc_host_classdev_release) is used to release resources including the
host structure. However, after put_device, host is used and released
again. Resulting in a use-after-free bug.

Fixes: 1ed2171944 ("mmc: core: fix error path in mmc_host_alloc")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2019-05-06 11:55:39 +02:00
..
block.c Merge branch 'fixes' into next 2019-02-28 09:16:18 +01:00
block.h
bus.c
bus.h
card.h mmc: core: Cleanup BKOPS support 2018-12-17 09:01:15 +01:00
core.c mmc:fix a bug when max_discard is 0 2019-03-01 09:50:10 +01:00
core.h mmc: core: Move regulator helpers to separate file 2019-02-25 15:20:58 +01:00
debugfs.c
host.c mmc: core: fix possible use after free of host 2019-05-06 11:55:39 +02:00
host.h
Kconfig
Makefile mmc: core: Move regulator helpers to separate file 2019-02-25 15:20:58 +01:00
mmc_ops.c mmc: core: retry CMD1 in mmc_send_op_cond() even if the ocr = 0 2019-04-29 12:37:11 +02:00
mmc_ops.h mmc: core: Cleanup BKOPS support 2018-12-17 09:01:15 +01:00
mmc_test.c mmc: convert to DEFINE_SHOW_ATTRIBUTE 2018-12-17 08:26:24 +01:00
mmc.c mmc: core: Add a debug print when the card may have been replaced 2019-02-28 09:28:27 +01:00
pwrseq_emmc.c mmc: core: make pwrseq_emmc (partially) support sleepy GPIO controllers 2019-04-15 11:55:54 +02:00
pwrseq_sd8787.c
pwrseq_simple.c
pwrseq.c
pwrseq.h
queue.c for-5.1/block-20190302 2019-03-08 14:12:17 -08:00
queue.h
quirks.h
regulator.c mmc: core: Convert mmc_regulator_get_ocrmask() to static 2019-02-25 15:20:58 +01:00
sd_ops.c mmc: core: Drop retries as in-parameter to mmc_wait_for_app_cmd() 2019-02-25 15:20:58 +01:00
sd_ops.h mmc: core: Convert mmc_wait_for_app_cmd() to static 2019-02-25 15:20:58 +01:00
sd.c mmc: core: Add a debug print when the card may have been replaced 2019-02-28 09:28:27 +01:00
sd.h
sdio_bus.c mmc:sdio: Remove unneeded variable ret 2019-02-25 08:40:58 +01:00
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c mmc: core: Convert mmc_align_data_size() into an SDIO specific function 2019-02-25 17:20:21 +01:00
sdio_irq.c
sdio_ops.c
sdio_ops.h mmc: core: Convert mmc_align_data_size() into an SDIO specific function 2019-02-25 17:20:21 +01:00
sdio_uart.c
sdio.c mmc: core: Add a debug print when the card may have been replaced 2019-02-28 09:28:27 +01:00
slot-gpio.c mmc: slot-gpio: Remove override_active_level on WP 2019-02-25 08:40:58 +01:00
slot-gpio.h