qemu-e2k/hw/vfio
Cédric Le Goater f8d6f3b16c vfio/pci: Fix buffer overrun when writing the VF token
qemu_uuid_unparse() includes a trailing NUL when writing the uuid
string and the buffer size should be UUID_FMT_LEN + 1 bytes. Use the
recently added UUID_STR_LEN which defines the correct size.

Fixes: CID 1522913
Fixes: 2dca1b37a7 ("vfio/pci: add support for VF token")
Cc: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: "Denis V. Lunev" <den@openvz.org>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2023-11-03 09:20:31 +01:00
..
amd-xgbe.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ap.c vfio/ap: Remove pointless apdev variable 2023-10-18 10:10:49 +02:00
calxeda-xgmac.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ccw.c vfio/ccw: Use vfio_[attach/detach]_device 2023-10-18 10:10:49 +02:00
common.c vfio: Collect container iova range info 2023-11-03 09:20:31 +01:00
container.c vfio: Collect container iova range info 2023-11-03 09:20:31 +01:00
display.c hw/vfio: add ramfb migration support 2023-10-18 10:10:49 +02:00
helpers.c vfio/common: Move IOMMU agnostic helpers to a separate file 2023-10-18 10:10:49 +02:00
igd.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
Kconfig hw/vfio: Move the IGD quirk code to a separate file 2020-02-06 11:55:42 -07:00
meson.build vfio/common: Move legacy VFIO backend code into separate container.c 2023-10-18 10:10:49 +02:00
migration.c migration: simplify notifiers 2023-10-20 08:51:41 +02:00
pci-quirks.c spapr: Remove support for NVIDIA V100 GPU with NVLink2 2023-09-18 07:25:28 -03:00
pci.c vfio/pci: Fix buffer overrun when writing the VF token 2023-11-03 09:20:31 +01:00
pci.h hw/vfio: add ramfb migration support 2023-10-18 10:10:49 +02:00
platform.c vfio/platform: Use vfio_[attach/detach]_device 2023-10-18 10:10:49 +02:00
spapr.c Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
trace-events vfio/platform: Use vfio_[attach/detach]_device 2023-10-18 10:10:49 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00