Re: [PATCH 0/2] KVM: arm64: vgic-v3: Fix redistributor region indices above 255

From: Marc Zyngier

Date: Fri Dec 04 2026 - 10:36:39 EST


On Tue, 01 Dec 2026 08:30:09 +0000, Raffaele Tranfaglia wrote:
> The index field of KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION is 12 bits wide,
> but kvm_vgic_addr() keeps it in a u8, so indices from 256 upwards alias
> indices 0 to 255. Reading region 256 returns region 0, the first region
> can be registered with index 256, and region 256 can never be
> registered.
>
> Patch 1 keeps the index in a u32, the type the redistributor region
> helpers already take.
> Patch 2 extends the vgic_init selftest to cover index 256, which fails
> without patch 1.
>
> [...]

Applied to fixes, thanks!

[1/2] KVM: arm64: vgic-v3: Don't truncate the redistributor region index
commit: 7aefef11bab0197242ad95f981df1a2250c74b10
[2/2] KVM: arm64: selftests: Test redistributor region indices above 255
commit: 62e5609d453f15d4caec25d46204b957d7dc5b3a

Cheers,

M.
--
Without deviation from the norm, progress is not possible.