[PATCH v3 4/5] irqchip/gic-v3-its: Zero ITTs reused from the ITT pool
Marc Zyngier
maz at kernel.org
Sun Nov 29 02:07:42 PST 2026
On Fri, 27 Nov 2026 12:06:22 +0000,
Fuad Tabba <fuad.tabba at linux.dev> wrote:
>
> Commit b08e2f42e86b5 ("irqchip/gic-v3-its: Share ITS tables with a
> non-trusted hypervisor") moved sub-page ITTs from kzalloc_node() to a
> genpool. An ITT freed back to the pool goes to the next device as the
> previous one left it. MAPD is then UNPREDICTABLE: "When V == 1, the
> specified ITT does not contain all zeros" (IHI 0069H.b, 5.3.10).
>
> Zero every ITT that comes from the pool. The ITS then no longer needs
> the pages added to the pool zeroed, so drop __GFP_ZERO from their
> allocation. A pKVM guest shares each new pool page with the host,
> though, and pkvm_set_memory_decrypted() doesn't zero what it shares, so
> the host now sees that page's old contents.
I really don't see what this pKVM comment adds to the reasoning, and
it reads like an AI leftover. By definition, if we don't zero the
pages, we see the old content. If pKVM needs to prevent this, it can
do it itself, but that has nothing to do with the driver.
Thanks,
M.
--
Jazz isn't dead. It just smells funny.
More information about the linux-arm-kernel
mailing list