[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241209102440.GI21636@noisy.programming.kicks-ass.net>
Date: Mon, 9 Dec 2024 11:24:40 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Kevin Brodsky <kevin.brodsky@....com>
Cc: linux-hardening@...r.kernel.org, linux-kernel@...r.kernel.org,
aruna.ramakrishna@...cle.com, broonie@...nel.org,
catalin.marinas@....com, dave.hansen@...ux.intel.com,
jannh@...gle.com, jeffxu@...omium.org, joey.gouly@....com,
kees@...nel.org, maz@...nel.org, pierre.langlois@....com,
qperret@...gle.com, ryan.roberts@....com, will@...nel.org,
linux-arm-kernel@...ts.infradead.org, x86@...nel.org
Subject: Re: [RFC PATCH 12/16] arm64: mm: Map p4d/pgd with privileged pkey
On Fri, Dec 06, 2024 at 10:11:06AM +0000, Kevin Brodsky wrote:
> If CONFIG_KPKEYS_HARDENED_PGTABLES is enabled, map p4d/pgd pages
> using a privileged pkey (KPKEYS_PKEY_PGTABLES), so that they can
> only be written under guard(kpkeys_hardened_pgtables).
>
> The case where pgd is not page-sized is not currently handled -
> this is pending support for pkeys in kmem_cache.
>
> This patch is a no-op if CONFIG_KPKEYS_HARDENED_PGTABLES is disabled
> (default).
Should not this live in pagetable_*_[cd]tor() in generic code?
Powered by blists - more mailing lists