Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/mm: Remove duplicated __PAGE_KERNEL(_EXEC) definitions

__PAGE_KERNEL(_EXEC) is defined twice, just remove the superfluous set.

No functional changes.

Signed-off-by: Nikolay Borisov <nik.borisov@suse.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250714170258.390175-1-nik.borisov@suse.com

authored by

Nikolay Borisov and committed by
Borislav Petkov (AMD)
0877ad1c 347e9f50

-3
-3
arch/x86/include/asm/pgtable_types.h
··· 214 214 #define PAGE_READONLY __pg(__PP| 0|_USR|___A|__NX| 0| 0| 0) 215 215 #define PAGE_READONLY_EXEC __pg(__PP| 0|_USR|___A| 0| 0| 0| 0) 216 216 217 - #define __PAGE_KERNEL (__PP|__RW| 0|___A|__NX|___D| 0|___G) 218 - #define __PAGE_KERNEL_EXEC (__PP|__RW| 0|___A| 0|___D| 0|___G) 219 - 220 217 /* 221 218 * Page tables needs to have Write=1 in order for any lower PTEs to be 222 219 * writable. This includes shadow stack memory (Write=0, Dirty=1)