From: Jiale Yao <yaojiale02@163.com>
To: Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Sunil V L <sunilvl@ventanamicro.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Len Brown <lenb@kernel.org>,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-acpi@vger.kernel.org
Cc: Jiale Yao <yaojiale02@163.com>
Subject: [PATCH 0/2] RISC-V: validate ACPI MADT entries before use
Date: Fri, 16 Oct 2026 22:12:46 +0800 [thread overview]
Message-ID: <20261016141249.2791819-1-yaojiale02@163.com> (raw)
RISC-V ACPI initialization passes generic MADT subtable headers to
RINTC, PLIC, and APLIC parsers. These parsers currently access fields
from the fixed-size records before establishing that firmware supplied
the complete structure. A truncated MADT entry can therefore cause an
out-of-bounds read during early interrupt and CPU setup.
Validate each typed record before its first field access. The first
patch fixes the CPU RINTC parser and the second covers the PLIC and APLIC
interrupt-controller parsers.
Jiale Yao (2):
riscv: validate RINTC entries before use
ACPI: riscv: validate interrupt controller MADT entries
arch/riscv/kernel/smpboot.c | 6 +++---
drivers/acpi/riscv/irq.c | 6 ++++++
2 files changed, 9 insertions(+), 3 deletions(-)
--
2.34.1
next reply other threads:[~2026-10-16 14:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-16 14:12 Jiale Yao [this message]
2026-10-16 14:12 ` [PATCH 1/2] riscv: validate RINTC " Jiale Yao
2026-10-17 7:25 ` jiale yao
2026-10-16 14:12 ` [PATCH 2/2] ACPI: riscv: validate interrupt controller MADT entries Jiale Yao
2026-10-17 7:27 ` jiale yao
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=20261016141249.2791819-1-yaojiale02@163.com \
--to=yaojiale02@163.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=rafael@kernel.org \
--cc=sunilvl@ventanamicro.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
all inboxes | Powered by JetHome®