linux/arch/um/drivers
Miaoqian Lin 7ebf70cf18 um: virtio_uml: Fix use-after-free after put_device in probe
When register_virtio_device() fails in virtio_uml_probe(),
the code sets vu_dev->registered = 1 even though
the device was not successfully registered.
This can lead to use-after-free or other issues.

Fixes: 04e5b1fb01 ("um: virtio: Remove device on disconnect")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-09-10 14:24:16 +02:00
..
Kconfig um: virt-pci: Switch to msi_create_parent_irq_domain() 2025-07-11 08:49:01 +02:00
Makefile um: Remove legacy network transport infrastructure 2025-05-05 10:26:59 +02:00
chan.h
chan_kern.c um: chan_kern: use raw spinlock for irqs_to_free_lock 2025-06-02 11:23:22 +02:00
chan_user.c um: Use os_set_pdeathsig helper in winch thread/process 2024-10-25 11:34:55 +02:00
chan_user.h
cow.h
cow_sys.h
cow_user.c
fd.c
harddog.h
harddog_kern.c
harddog_user.c
harddog_user_exp.c
hostaudio_kern.c um: hostaudio: Do not propagate mixer parameter to kernel 2024-10-23 09:52:49 +02:00
line.c
line.h
mconsole.h
mconsole_kern.c
mconsole_kern.h
mconsole_user.c
mmapper_kern.c
null.c
port.h
port_kern.c
port_user.c
pty.c
random.c um: Rewrite the sigio workaround based on epoll and tgkill 2025-03-20 09:28:44 +01:00
rtc.h
rtc_kern.c um: rtc: use RTC time when calculating the alarm 2025-01-10 13:50:00 +01:00
rtc_user.c um: rtc: Avoid shadowing err in uml_rtc_start() 2025-07-11 08:49:18 +02:00
ssl.c
stderr_console.c
stdio_console.c
stdio_console.h
tty.c
ubd.h um: ubd: Switch to the pthread-based helper 2025-03-20 09:26:38 +01:00
ubd_kern.c um: ubd: Switch to the pthread-based helper 2025-03-20 09:26:38 +01:00
ubd_user.c um: ubd: Add missing error check in start_io_thread() 2025-06-25 09:25:49 +02:00
vector_kern.c um: vector: Reduce stack usage in vector_eth_configure() 2025-06-25 09:28:17 +02:00
vector_kern.h
vector_transports.c
vector_user.c
vector_user.h
vfio_kern.c um: vfio: Support adding devices via mconsole 2025-07-11 08:49:44 +02:00
vfio_user.c um: Add VFIO-based virtual PCI driver 2025-05-05 10:25:24 +02:00
vfio_user.h um: Add VFIO-based virtual PCI driver 2025-05-05 10:25:24 +02:00
vhost_user.h um: virtio_uml: query the number of vqs if supported 2024-11-07 18:05:07 +01:00
virt-pci.c um: virt-pci: Switch to msi_create_parent_irq_domain() 2025-07-11 08:49:01 +02:00
virt-pci.h um: virt-pci: Refactor virtio_pcidev into its own module 2025-03-18 11:06:54 +01:00
virtio_pcidev.c um: virtio_pcidev: Rename UM_PCI_STAT_WAITING 2025-07-04 13:02:34 +02:00
virtio_uml.c um: virtio_uml: Fix use-after-free after put_device in probe 2025-09-10 14:24:16 +02:00
xterm.c um: xterm: Update options for gnome-terminal 2025-05-05 10:21:15 +02:00
xterm.h
xterm_kern.c