linux/arch/um/drivers
Kees Cook 96a7b71c44 ubd: Use pointer-to-pointers for io_thread_req arrays
Having an unbounded array for irq_req_buffer and io_req_buffer doesn't
provide any bounds safety, and confuses the needed allocation type,
which is returning a pointer to pointers. Instead of the implicit cast,
switch the variable types.

Reported-by: Nathan Chancellor <nathan@kernel.org>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Closes: https://lore.kernel.org/all/b04b6c13-7d0e-4a89-9e68-b572b6c686ac@roeck-us.net
Fixes: 69050f8d6d ("treewide: Replace kmalloc with kmalloc_obj for non-scalar types")
Acked-by: Richard Weinberger <richard@nod.at>
Link: https://patch.msgid.link/20260223214341.work.846-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
2026-02-23 14:35:16 -08:00
..
Kconfig um: virt-pci: Switch to msi_create_parent_irq_domain() 2025-07-11 08:49:01 +02:00
Makefile um: Remove file-based iomem emulation support 2025-10-27 16:37:12 +01:00
chan.h
chan_kern.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
chan_user.c
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 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
line.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
line.h
mconsole.h
mconsole_kern.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
mconsole_kern.h
mconsole_user.c
null.c
port.h
port_kern.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
port_user.c
pty.c
random.c
rtc.h
rtc_kern.c
rtc_user.c um: rtc: Avoid shadowing err in uml_rtc_start() 2025-07-11 08:49:18 +02:00
ssl.c um: Fix help message for ssl-non-raw 2025-09-10 14:23:43 +02:00
stderr_console.c
stdio_console.c
stdio_console.h
tty.c
ubd.h
ubd_kern.c ubd: Use pointer-to-pointers for io_thread_req arrays 2026-02-23 14:35:16 -08: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 Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
vector_kern.h
vector_transports.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vector_user.c
vector_user.h
vfio_kern.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08: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
virt-pci.c um: virt-pci: Switch to msi_create_parent_irq_domain() 2025-07-11 08:49:01 +02:00
virt-pci.h
virtio_pcidev.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
virtio_uml.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
xterm.c
xterm.h
xterm_kern.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00