Thread (38 messages) 38 messages, 3 authors, 2026-01-27

Re: [PATCH v2 03/10] arm64: mm: Permit contiguous descriptors to be rewritten

From: Ard Biesheuvel <ardb@kernel.org>
Date: 2026-01-27 15:03:22
Also in: linux-hardening, lkml

On Tue, 27 Jan 2026 at 10:45, Ryan Roberts [off-list ref] wrote:
On 26/01/2026 09:26, Ard Biesheuvel wrote:
quoted
From: Ard Biesheuvel <ardb@kernel.org>

Currently, pgattr_change_is_safe() is overly pedantic when it comes to
descriptors with the contiguous hint attribute set, as it rejects
assignments even if the old and the new value are the same.

So relax the check to allow that.
But why do we require the relaxation? Why are we re-writing a PTE in the first
place? Either the caller already knows it's the same in which case it can be
avoided, or it doesn't know in which case it is accidentally the same and couple
probably just as easily been accidentally different? So it's better to warn
regardless I would think?
Based on rule RJQQTC in your reply to another patch in this series, my
conclusion here is that we can drop this check entirely.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help