mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Shadow stack provides protection for applications against function return address corruption. It is active when the processor supports it, the kernel has CONFIG_X86_SHADOW_STACK enabled, and the application is built for the feature. This is only implemented for the 64-bit kernel. When it is enabled, legacy non-shadow stack applications continue to work, but without protection. Since there is another feature that utilizes CET (Kernel IBT) that will share implementation with shadow stacks, create CONFIG_CET to signify that at least one CET feature is configured. Co-developed-by: Yu-cheng Yu <[email protected]> Signed-off-by: Yu-cheng Yu <[email protected]> Signed-off-by: Rick Edgecombe <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Kees Cook <[email protected]> Acked-by: Mike Rapoport (IBM) <[email protected]> Tested-by: Pengfei Xu <[email protected]> Tested-by: John Allen <[email protected]> Tested-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/all/20230613001108.3040476-7-rick.p.edgecombe%40intel.com
32 lines
942 B
Plaintext
32 lines
942 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2020 Jason A. Donenfeld <[email protected]>. All Rights Reserved.
|
|
|
|
config AS_AVX512
|
|
def_bool $(as-instr,vpmovm2b %k1$(comma)%zmm5)
|
|
help
|
|
Supported by binutils >= 2.25 and LLVM integrated assembler
|
|
|
|
config AS_SHA1_NI
|
|
def_bool $(as-instr,sha1msg1 %xmm0$(comma)%xmm1)
|
|
help
|
|
Supported by binutils >= 2.24 and LLVM integrated assembler
|
|
|
|
config AS_SHA256_NI
|
|
def_bool $(as-instr,sha256msg1 %xmm0$(comma)%xmm1)
|
|
help
|
|
Supported by binutils >= 2.24 and LLVM integrated assembler
|
|
config AS_TPAUSE
|
|
def_bool $(as-instr,tpause %ecx)
|
|
help
|
|
Supported by binutils >= 2.31.1 and LLVM integrated assembler >= V7
|
|
|
|
config AS_GFNI
|
|
def_bool $(as-instr,vgf2p8mulb %xmm0$(comma)%xmm1$(comma)%xmm2)
|
|
help
|
|
Supported by binutils >= 2.30 and LLVM integrated assembler
|
|
|
|
config AS_WRUSS
|
|
def_bool $(as-instr,wrussq %rax$(comma)(%rbx))
|
|
help
|
|
Supported by binutils >= 2.31 and LLVM integrated assembler
|