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

Configure Feed

Select the types of activity you want to include in your feed.

mm: Introduce ARCH_HAS_USER_SHADOW_STACK

Since multiple architectures have support for shadow stacks and we need to
select support for this feature in several places in the generic code
provide a generic config option that the architectures can select.

Suggested-by: David Hildenbrand <david@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Deepak Gupta <debug@rivosinc.com>
Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Tested-by: Kees Cook <kees@kernel.org>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241001-arm64-gcs-v13-1-222b78d87eee@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Mark Brown and committed by
Catalin Marinas
bcc9d04e 9852d85e

+8 -1
+1
arch/x86/Kconfig
··· 1954 1954 depends on AS_WRUSS 1955 1955 depends on X86_64 1956 1956 select ARCH_USES_HIGH_VMA_FLAGS 1957 + select ARCH_HAS_USER_SHADOW_STACK 1957 1958 select X86_CET 1958 1959 help 1959 1960 Shadow stack protection is a hardware feature that detects function
+1 -1
fs/proc/task_mmu.c
··· 971 971 #ifdef CONFIG_HAVE_ARCH_USERFAULTFD_MINOR 972 972 [ilog2(VM_UFFD_MINOR)] = "ui", 973 973 #endif /* CONFIG_HAVE_ARCH_USERFAULTFD_MINOR */ 974 - #ifdef CONFIG_X86_USER_SHADOW_STACK 974 + #ifdef CONFIG_ARCH_HAS_USER_SHADOW_STACK 975 975 [ilog2(VM_SHADOW_STACK)] = "ss", 976 976 #endif 977 977 #if defined(CONFIG_64BIT) || defined(CONFIG_PPC32)
+6
mm/Kconfig
··· 1296 1296 into virtual nodes when booted with "numa=fake=N", where N is the 1297 1297 number of nodes. This is only useful for debugging. 1298 1298 1299 + config ARCH_HAS_USER_SHADOW_STACK 1300 + bool 1301 + help 1302 + The architecture has hardware support for userspace shadow call 1303 + stacks (eg, x86 CET, arm64 GCS or RISC-V Zicfiss). 1304 + 1299 1305 source "mm/damon/Kconfig" 1300 1306 1301 1307 endmenu