From: Marc Zyngier <maz@kernel.org>
To: Fuad Tabba <fuad.tabba@linux.dev>
Cc: Thomas Gleixner <tglx@kernel.org>, Radu Rendec <radu@rendec.net>,
James Morse <james.morse@arm.com>, Will Deacon <will@kernel.org>,
Fuad Tabba <tabba@google.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/3] irqchip/gic-v3: Memory-safety fixes on the probe paths
Date: Sun, 27 Sep 2026 10:23:53 +0100 [thread overview]
Message-ID: <87wls72gk6.wl-maz@kernel.org> (raw)
In-Reply-To: <20260925085000.753400-1-fuad.tabba@linux.dev>
On Fri, 25 Sep 2026 09:49:57 +0100,
Fuad Tabba <fuad.tabba@linux.dev> wrote:
>
> Hi folks,
>
> Changes since v1 [1]:
> - Patch 3 marks the skipped CPU in broken_rdists, so it's kept
> offline. (Marc, sashiko)
>
> Three probe-time bugs in the GICv3 drivers. The kernel keeps running
> after each of them, so the memory involved is live rather than on the
> way to a reset.
>
> The first two free memory an enabled ITS still points at. Boot carries
> on because its_init() discards a failed probe and gic_init_bases()
> discards what its_init() returns. The third is a write past the end of
> redist_regs[] for an enabled GICC with a zero GICR base, on a MADT with
> no GICR entries. fa2dabe57220e's commit message says such tables exist,
> and I haven't seen one.
>
> Based on Linux 7.3-rc4 (93f51579e7df2).
>
> Cheers,
> /fuad
>
> [1] https://lore.kernel.org/all/20260924161514.1112730-1-fuad.tabba@linux.dev/
>
> Fuad Tabba (3):
> irqchip/gic-v3-its: Don't free a vPE table shared with another ITS
> irqchip/gic-v3-its: Don't free the tables of an enabled ITS
> irqchip/gic-v3: Don't register a redistributor that was never counted
>
> drivers/irqchip/irq-gic-v3-its.c | 16 +++++++++++-----
> drivers/irqchip/irq-gic-v3.c | 11 +++++++++++
> 2 files changed, 22 insertions(+), 5 deletions(-)
>
>
> base-commit: 93f51579e7df248780214094418f205253383cc5
Reviewed-by: Marc Zyngier <maz@kernel.org>
M.
--
Jazz isn't dead. It just smells funny.
prev parent reply other threads:[~2026-09-27 9:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 8:49 Fuad Tabba
2026-09-25 8:49 ` [PATCH v2 1/3] irqchip/gic-v3-its: Don't free a vPE table shared with another ITS Fuad Tabba
2026-09-25 8:49 ` [PATCH v2 2/3] irqchip/gic-v3-its: Don't free the tables of an enabled ITS Fuad Tabba
2026-09-25 8:50 ` [PATCH v2 3/3] irqchip/gic-v3: Don't register a redistributor that was never counted Fuad Tabba
2026-09-27 9:23 ` Marc Zyngier [this message]
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=87wls72gk6.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=fuad.tabba@linux.dev \
--cc=james.morse@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=radu@rendec.net \
--cc=tabba@google.com \
--cc=tglx@kernel.org \
--cc=will@kernel.org \
/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
all inboxes | Powered by JetHome®