Re: [PATCH] vfio/pci: Fix a use-after-free issue

2023-05-16 Thread Alex Williamson
..@redhat.com; Peng, Chao P > > > >Subject: Re: [PATCH] vfio/pci: Fix a use-after-free issue > > > >On 5/16/23 05:43, Zhenzhong Duan wrote: > >> We should free the duplicated variant of vbasedev->name plus uuid > >> rather than vbasedev->name itsel

RE: [PATCH] vfio/pci: Fix a use-after-free issue

2023-05-16 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, May 16, 2023 4:58 PM >To: Duan, Zhenzhong ; qemu- >de...@nongnu.org >Cc: minwoo...@samsung.com; alex.william...@redhat.com; Peng, Chao P > >Subject: Re: [PATCH] vfio/pci: Fix a use-after-free i

Re: [PATCH] vfio/pci: Fix a use-after-free issue

2023-05-16 Thread Cédric Le Goater
On 5/16/23 05:43, Zhenzhong Duan wrote: We should free the duplicated variant of vbasedev->name plus uuid rather than vbasedev->name itself. Fixes: 2dca1b37a7 ("vfio/pci: add support for VF toke") "toke" -> "token" Signed-off-by: Zhenzhong Duan --- hw/vfio/pci.c | 4 +++- 1 file changed,

[PATCH] vfio/pci: Fix a use-after-free issue

2023-05-15 Thread Zhenzhong Duan
We should free the duplicated variant of vbasedev->name plus uuid rather than vbasedev->name itself. Fixes: 2dca1b37a7 ("vfio/pci: add support for VF toke") Signed-off-by: Zhenzhong Duan --- hw/vfio/pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/vfio/pci.c b/hw/v