qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] vfio: container: Fix missing allocation of VFIOSpaprContaine


From: Shivaprasad G Bhat
Subject: Re: [PATCH] vfio: container: Fix missing allocation of VFIOSpaprContainer
Date: Fri, 21 Jun 2024 13:47:45 +0530
User-agent: Mozilla Thunderbird

Hi Cédric,

On 6/20/24 6:37 PM, Cédric Le Goater wrote:
Shivaprasad,

On 5/9/24 9:14 PM, Shivaprasad G Bhat wrote:
The commit 6ad359ec29 "(vfio/spapr: Move prereg_listener into
spapr container)" began to use the newly introduced VFIOSpaprContainer
structure.

After several refactors, today the container_of(container,
VFIOSpaprContainer, ABC) is used when VFIOSpaprContainer is actually
not allocated. On PPC64 systems, this dereference is leading to corruption
showing up as glibc malloc assertion during guest start when using vfio.

Patch adds the missing allocation while also making the structure movement
to vfio common header file.

Fixes: 6ad359ec29 "(vfio/spapr: Move prereg_listener into spapr container)"
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>

Could you please give vfio-9.1 a try ? Thanks,

Yes. This is working fine for ppc64.


Thank you!


Regards,

Shivaprasad


C.

https://github.com/legoater/qemu/commits/vfio-9.1

<snip>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]