linux/drivers/vdpa
Linfeng Sun 48a4ee65e6 vduse: return compat ioctl results directly
The compat handler handles VDUSE_IOTLB_GET_FD and VDUSE_VQ_GET_INFO, but
then calls the native handler. Their different command sizes make native
dispatch return -ENOIOCTLCMD.

For GET_FD, this overwrites receive_fd()'s return value after the
descriptor is installed, leaking one fd per call. Return handled compat
results directly and use native dispatch only for other commands.

Fixes: 455a2a1af9 ("vduse: fix compat handling for VDUSE_IOTLB_GET_FD/VDUSE_VQ_GET_INFO")
Signed-off-by: Linfeng Sun <linfeng.sun.dev@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260908-fix-vduse_dev_compat_ioctl-v1-1-62264d9bfb8d@gmail.com>
2026-09-08 03:58:27 -04:00
..
alibaba vdpa: alibaba: Keep DRIVER_OK clear if IRQ setup fails 2026-09-07 18:54:02 -04:00
ifcvf vdpa: ifcvf: Put device on unsupported feature error 2026-09-07 18:54:02 -04:00
mlx5 vdpa/mlx5: roll back MR update after VQ setup failure 2026-08-19 06:38:47 -04:00
octeon_ep vdpa: octeon_ep: Check dev_set_name() in dev add 2026-09-07 18:54:03 -04:00
pds vdpa/pds: check virtqueue notify mapping 2026-09-07 18:54:02 -04:00
solidrun vdpa: solidrun: Free IRQs after request failure 2026-09-07 18:54:02 -04:00
vdpa_sim vdpa_sim_net: check TX pull result before RX copy 2026-09-07 18:54:03 -04:00
vdpa_user vduse: return compat ioctl results directly 2026-09-08 03:58:27 -04:00
virtio_pci vdpa: Remove redundant dev_err() 2026-08-19 06:38:47 -04:00
Kconfig vduse: switch to use virtio map API instead of DMA API 2025-10-01 07:24:55 -04:00
Makefile virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices 2024-07-09 08:42:39 -04:00
vdpa.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00