From: Marc Zyngier <maz@kernel.org>
To: Fuad Tabba <fuad.tabba@linux.dev>
Cc: Thomas Gleixner <tglx@kernel.org>, Radu Rendec <radu@rendec.net>,
Zenghui Yu <yuzenghui@huawei.com>,
Lorenzo Pieralisi <lpieralisi@kernel.org>,
Steven Price <steven.price@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
"Aneesh Kumar K . V" <aneesh.kumar@kernel.org>,
Will Deacon <will@kernel.org>, Fuad Tabba <tabba@google.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/5] irqchip/gic-v3-its: Zero ITTs reused from the ITT pool
Date: Sun, 29 Nov 2026 10:07:42 +0000 [thread overview]
Message-ID: <87jylwne6p.wl-maz@kernel.org> (raw)
In-Reply-To: <20261127120623.891129-5-fuad.tabba@linux.dev>
On Fri, 27 Nov 2026 12:06:22 +0000,
Fuad Tabba <fuad.tabba@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.
next prev parent reply other threads:[~2026-11-29 10:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 12:06 [PATCH v3 0/5] irqchip/gic-v3-its: Fixes to table allocation and the ITT pool Fuad Tabba
2026-11-27 12:06 ` [PATCH v3 1/5] irqchip/gic-v3-its: Order table zeroing before the GIC can see it Fuad Tabba
2026-11-27 12:06 ` [PATCH v3 2/5] irqchip/gic-v4.1: Clean the vPE table to PoC Fuad Tabba
2026-11-27 12:06 ` [PATCH v3 3/5] irqchip/gic-v3-its: Align sub-page ITTs to 256 bytes Fuad Tabba
2026-11-27 12:06 ` [PATCH v3 4/5] irqchip/gic-v3-its: Zero ITTs reused from the ITT pool Fuad Tabba
2026-11-29 10:07 ` Marc Zyngier [this message]
2026-11-27 12:06 ` [PATCH v3 5/5] irqchip/gic-v3-its: Free the page when gen_pool_add() fails Fuad Tabba
2026-11-29 10:09 ` [PATCH v3 0/5] irqchip/gic-v3-its: Fixes to table allocation and the ITT pool Marc Zyngier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jylwne6p.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=aneesh.kumar@kernel.org \
--cc=fuad.tabba@linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=radu@rendec.net \
--cc=steven.price@arm.com \
--cc=suzuki.poulose@arm.com \
--cc=tabba@google.com \
--cc=tglx@kernel.org \
--cc=will@kernel.org \
--cc=yuzenghui@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox