]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Revert "mm/execmem: Unify early execmem_cache behaviour"
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Tue, 3 Jun 2025 11:14:45 +0000 (14:14 +0300)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 11 Jun 2025 09:20:52 +0000 (11:20 +0200)
commit7cd9a11dd0c3d1dd225795ed1b5b53132888e7b5
tree50f0c07dc45da5f5b73f4475ec55a810bcc9e44b
parenta82b26451de126a5ae130361081986bc459afe9b
Revert "mm/execmem: Unify early execmem_cache behaviour"

The commit d6d1e3e6580c ("mm/execmem: Unify early execmem_cache
behaviour") changed early behaviour of execemem ROX cache to allow its
usage in early x86 code that allocates text pages when
CONFIG_MITGATION_ITS is enabled.

The permission management of the pages allocated from execmem for ITS
mitigation is now completely contained in arch/x86/kernel/alternatives.c
and therefore there is no need to special case early allocations in
execmem.

This reverts commit d6d1e3e6580ca35071ad474381f053cbf1fb6414.

Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20250603111446.2609381-6-rppt@kernel.org
arch/x86/mm/init_32.c
arch/x86/mm/init_64.c
include/linux/execmem.h
mm/execmem.c