| /linux/tools/testing/selftests/arm64/gcs/ |
| H A D | basic-gcs.c | 30 bool enabling = mode & PR_SHADOW_STACK_ENABLE; in gcs_set_status() 76 return state & PR_SHADOW_STACK_ENABLE; in read_status() 84 ret = gcs_set_status(PR_SHADOW_STACK_ENABLE); in base_enable() 110 ret = gcs_set_status(PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_WRITE); in enable_writeable() 116 ret = gcs_set_status(PR_SHADOW_STACK_ENABLE); in enable_writeable() 130 ret = gcs_set_status(PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_PUSH); in enable_push_pop() 137 ret = gcs_set_status(PR_SHADOW_STACK_ENABLE); in enable_push_pop() 151 ret = gcs_set_status(PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_PUSH | in enable_all() 159 ret = gcs_set_status(PR_SHADOW_STACK_ENABLE); in enable_all() 257 if (ret == 0 && !(child_mode & PR_SHADOW_STACK_ENABLE)) { in test_fork() [all …]
|
| H A D | gcs-locking.c | 61 .mode = PR_SHADOW_STACK_ENABLE, in FIXTURE_VARIANT_ADD() 66 .mode = PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_WRITE, in FIXTURE_VARIANT_ADD() 71 .mode = PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_PUSH, in FIXTURE_VARIANT_ADD() 76 .mode = PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_WRITE | in FIXTURE_VARIANT_ADD() 193 if (mode & PR_SHADOW_STACK_ENABLE) { in main()
|
| H A D | gcs-util.h | 34 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro 39 PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_WRITE | PR_SHADOW_STACK_PUSH
|
| H A D | gcsstr.S | 14 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro 80 mov x1, PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_WRITE
|
| H A D | gcspushm.S | 14 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro 78 mov x1, PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_PUSH
|
| H A D | libc-gcs.c | 76 if (!(mode & PR_SHADOW_STACK_ENABLE)) { in gcs_test_thread() 240 if (!(child_gcs.features_enabled & PR_SHADOW_STACK_ENABLE)) { in TEST() 242 PR_SHADOW_STACK_ENABLE); in TEST() 716 if (!(gcs_mode & PR_SHADOW_STACK_ENABLE)) { in main() 717 gcs_mode = PR_SHADOW_STACK_ENABLE; in main()
|
| H A D | gcs-stress-thread.S | 28 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro 267 mov x1, PR_SHADOW_STACK_ENABLE
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | assembler.h | 69 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro 74 mov x1, PR_SHADOW_STACK_ENABLE
|
| /linux/arch/arm64/include/asm/ |
| H A D | gcs.h | 55 (PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_WRITE | PR_SHADOW_STACK_PUSH) 61 return task->thread.gcs_el0_mode & PR_SHADOW_STACK_ENABLE; in task_gcs_el0_enabled()
|
| /linux/tools/testing/selftests/riscv/cfi/ |
| H A D | shadowstack.c | 94 if (!(ss_status & PR_SHADOW_STACK_ENABLE)) in shadow_stack_fork_test() 321 if (!(ss_status & PR_SHADOW_STACK_ENABLE)) in shadow_stack_signal_test()
|
| H A D | cfitests.c | 160 if (!(ss_status & PR_SHADOW_STACK_ENABLE)) in main()
|
| /linux/arch/arm64/mm/ |
| H A D | gcs.c | 143 if (task->thread.gcs_el0_mode & PR_SHADOW_STACK_ENABLE) in gcs_set_el0_mode() 191 if (arg & PR_SHADOW_STACK_ENABLE && in arch_set_shadow_stack_status()
|
| /linux/tools/testing/selftests/arm64/signal/ |
| H A D | test_signals.c | 31 gcs_set_state(PR_SHADOW_STACK_ENABLE); in main()
|
| /linux/arch/riscv/kernel/ |
| H A D | usercfi.c | 388 bcfi_status |= (is_shstk_enabled(t) ? PR_SHADOW_STACK_ENABLE : 0); in arch_get_shadow_stack_status() 409 enable_shstk = status & PR_SHADOW_STACK_ENABLE; in arch_set_shadow_stack_status()
|
| /linux/arch/riscv/include/asm/ |
| H A D | usercfi.h | 52 #define PR_SHADOW_STACK_SUPPORTED_STATUS_MASK (PR_SHADOW_STACK_ENABLE)
|
| /linux/Documentation/arch/riscv/ |
| H A D | zicfiss.rst | 107 If arg = :c:macro:`PR_SHADOW_STACK_ENABLE` and if CPU supports 114 :c:macro:`PR_SHADOW_STACK_ENABLE` being clear) 119 it'll return :c:macro:`PR_SHADOW_STACK_ENABLE`.
|
| /linux/tools/include/uapi/linux/ |
| H A D | prctl.h | 350 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
|
| /linux/include/uapi/linux/ |
| H A D | prctl.h | 362 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | prctl.h | 362 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
|
| /linux/arch/arm64/kernel/ |
| H A D | signal.c | 727 (enabled & PR_SHADOW_STACK_ENABLE)) in restore_gcs_context() 731 if (!(enabled & PR_SHADOW_STACK_ENABLE)) in restore_gcs_context() 1051 if (!(current->thread.gcs_el0_mode & PR_SHADOW_STACK_ENABLE)) in gcs_restore_signal()
|
| /linux/Documentation/arch/arm64/ |
| H A D | gcs.rst | 68 * When set PR_SHADOW_STACK_ENABLE flag allocates a Guarded Control Stack
|