Files
qemu/hw
Zhenzhong Duan b83b40b614 vfio/pci: Fix a use-after-free issue
vbasedev->name is freed wrongly which leads to garbage VFIO trace log.
Fix it by allocating a dup of vbasedev->name and then free the dup.

Fixes: 2dca1b37a7 ("vfio/pci: add support for VF token")
Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2023-05-24 09:21:22 +02:00
..
2023-05-16 16:21:54 +02:00
2023-02-08 07:28:05 +01:00
2023-05-19 08:01:15 -07:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-04-21 04:25:52 -04:00
2023-02-08 07:28:05 +01:00
2023-03-20 12:43:50 +01:00
2022-10-27 11:34:31 +01:00
2023-04-20 10:21:14 +01:00
2023-05-24 09:21:22 +02:00
2023-05-23 16:47:03 +02:00