linux-loongson/drivers/vfio/platform
Alex Williamson ce9ff21ea8 vfio/platform: check the bounds of read/write syscalls
count and offset are passed from user space and not checked, only
offset is capped to 40 bits, which can be used to read/write out of
bounds of the device.

Fixes: 6e3f264560 (“vfio/platform: read and write support for the device fd”)
Cc: stable@vger.kernel.org
Reported-by: Mostafa Saleh <smostafa@google.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Tested-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2025-01-23 13:13:27 -07:00
..
reset vfio/platform: Cleanup Kconfig 2023-06-16 12:23:50 -06:00
Kconfig vfio/platform: Cleanup Kconfig 2023-06-16 12:23:50 -06:00
Makefile vfio/platform: Cleanup Kconfig 2023-06-16 12:23:50 -06:00
vfio_amba.c ARM: 9370/1: vfio: amba: drop owner assignment 2024-04-18 12:09:21 +01:00
vfio_platform_common.c vfio/platform: check the bounds of read/write syscalls 2025-01-23 13:13:27 -07:00
vfio_platform_irq.c vfio/platform: Create persistent IRQ handlers 2024-03-11 13:08:52 -06:00
vfio_platform_private.h vfio/amba: Use the new device life cycle helpers 2022-09-21 14:15:11 -06:00
vfio_platform.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00