From: "Arnd Bergmann" <arnd@arndb.de>
To: "Brad Hawthorne" <brad@sim.vu>,
"Russell King" <linux@armlinux.org.uk>,
linux-arm-kernel@lists.infradead.org
Cc: "Vladimir Murzin" <vladimir.murzin@arm.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/5] ARM: NOMMU: fix PMSAv7/v8 MPU setup on M-class
Date: Wed, 25 Nov 2026 08:46:20 +0100 [thread overview]
Message-ID: <9abcbb45-7408-4eab-9bc7-ca353f53b9dc@app.fastmail.com> (raw)
In-Reply-To: <20261125025757.1159931-1-brad@sim.vu>
On Wed, Nov 25, 2026, at 03:57, Brad Hawthorne wrote:
> With CONFIG_ARM_MPU=y, a Cortex-M3 kernel under QEMU (mps2-an385)
> panics before its console comes up. Patch 1 fixes that: the M-class
> region base register has VALID and REGION in its low bits, so the
> R-class probe selects a region that does not exist. After that,
> allocate_region() can return one region too many (2),
> mpu_setup_region() accepts a number one past the end (3), and
> try_split_region() can return a base not aligned to its size (4).
> Patch 5 fixes the same off-by-one as patch 3 in pmsa-v8.c.
I had a look at these and they all make sense to me, thanks for
addressing these issues!
Arnd
next prev parent reply other threads:[~2026-11-25 7:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 2:57 [PATCH 0/5] ARM: NOMMU: fix PMSAv7/v8 MPU setup on M-class Brad Hawthorne
2026-11-25 2:57 ` [PATCH 1/5] ARM: NOMMU: pmsa-v7: Do not probe the region order " Brad Hawthorne
2026-11-25 13:12 ` Vladimir Murzin
2026-11-25 2:57 ` [PATCH 2/5] ARM: NOMMU: pmsa-v7: Do not allocate more RAM regions than the limit Brad Hawthorne
2026-11-25 13:16 ` Vladimir Murzin
2026-11-25 2:57 ` [PATCH 3/5] ARM: NOMMU: pmsa-v7: Fix off-by-one in mpu_setup_region() Brad Hawthorne
2026-11-25 13:18 ` Vladimir Murzin
2026-11-25 2:57 ` [PATCH 4/5] ARM: NOMMU: pmsa-v7: Align a split region's base to its size Brad Hawthorne
2026-11-25 14:16 ` Vladimir Murzin
2026-11-25 2:57 ` [PATCH 5/5] ARM: NOMMU: pmsa-v8: Fix off-by-one in __pmsav8_setup_region() Brad Hawthorne
2026-11-25 13:20 ` Vladimir Murzin
2026-11-25 7:46 ` Arnd Bergmann [this message]
2026-11-25 14:36 ` [PATCH 0/5] ARM: NOMMU: fix PMSAv7/v8 MPU setup on M-class Vladimir Murzin
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=9abcbb45-7408-4eab-9bc7-ca353f53b9dc@app.fastmail.com \
--to=arnd@arndb.de \
--cc=brad@sim.vu \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=vladimir.murzin@arm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.