[PATCH 2/3] KVM: arm64: vgic: Check for unallocated PPI/SPI arrays

Alexander Potapenko glider at google.com
Thu Feb 6 07:50:26 PST 2025


On Thu, Feb 6, 2025 at 4:21 PM Marc Zyngier <maz at kernel.org> wrote:
>
> Alexander's fuzzing has exhibited a large variety of races that
> all end-up with taking the address of a PPI or SPI structure while
> the vgic was torn down (because nuking it is only an ioctl() away,
> and syzkaller is amazing at finding holes).
>
> In order to preserve some sanity, always evaluate whether the array
> containing the PPI/SPI is allocated.
>
> Suggested-by: Alexander Potapenko <glider at google.com>
> Signed-off-by: Marc Zyngier <maz at kernel.org>
Tested-by: Alexander Potapenko <glider at google.com>



More information about the linux-arm-kernel mailing list