linux-stable/drivers/uio
Liu Jian 3b3f78a629 driver: uio: fix possible use-after-free in __uio_register_device
[ Upstream commit 221a1f4ac1 ]

In uio_dev_add_attributes() error handing case, idev is used after
device_unregister(), in which 'idev' has been released, touch idev cause
use-after-free.

Fixes: a93e7b3315 ("uio: Prevent device destruction while fds are open")
Signed-off-by: Liu Jian <liujian56@huawei.com>
Reviewed-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:17 +01:00
..
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
uio.c driver: uio: fix possible use-after-free in __uio_register_device 2020-01-27 14:50:17 +01:00
uio_aec.c
uio_cif.c uio: add SPDX license tags 2018-07-21 15:41:20 +02:00
uio_dmem_genirq.c
uio_fsl_elbc_gpcm.c uio: add SPDX license tags 2018-07-21 15:41:20 +02:00
uio_hv_generic.c vmbus: keep pointer to ring buffer page 2019-11-20 18:47:31 +01:00
uio_mf624.c uio_mf624: Align memory regions to page size and set correct offsets 2017-04-08 18:13:28 +02:00
uio_netx.c uio: add SPDX license tags 2018-07-21 15:41:20 +02:00
uio_pci_generic.c uio: add SPDX license tags 2018-07-21 15:41:20 +02:00
uio_pdrv_genirq.c
uio_pruss.c uio: pruss: fix error handling in probe 2018-08-02 10:14:26 +02:00
uio_sercos3.c uio: add SPDX license tags 2018-07-21 15:41:20 +02:00