Home
last modified time | relevance | path

Searched refs:PR_SHADOW_STACK_ENABLE (Results 1 – 21 of 21) sorted by relevance

/linux/tools/testing/selftests/arm64/gcs/
H A Dbasic-gcs.c30 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 Dgcs-locking.c61 .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 Dgcs-util.h34 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
39 PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_WRITE | PR_SHADOW_STACK_PUSH
H A Dgcsstr.S14 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
80 mov x1, PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_WRITE
H A Dgcspushm.S14 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
78 mov x1, PR_SHADOW_STACK_ENABLE | PR_SHADOW_STACK_PUSH
H A Dlibc-gcs.c76 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 Dgcs-stress-thread.S28 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
267 mov x1, PR_SHADOW_STACK_ENABLE
/linux/tools/testing/selftests/arm64/fp/
H A Dassembler.h69 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
74 mov x1, PR_SHADOW_STACK_ENABLE
/linux/arch/arm64/include/asm/
H A Dgcs.h55 (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 Dshadowstack.c94 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 Dcfitests.c160 if (!(ss_status & PR_SHADOW_STACK_ENABLE)) in main()
/linux/arch/arm64/mm/
H A Dgcs.c143 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 Dtest_signals.c31 gcs_set_state(PR_SHADOW_STACK_ENABLE); in main()
/linux/arch/riscv/kernel/
H A Dusercfi.c388 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 Dusercfi.h52 #define PR_SHADOW_STACK_SUPPORTED_STATUS_MASK (PR_SHADOW_STACK_ENABLE)
/linux/Documentation/arch/riscv/
H A Dzicfiss.rst107 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 Dprctl.h350 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
/linux/include/uapi/linux/
H A Dprctl.h362 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dprctl.h362 # define PR_SHADOW_STACK_ENABLE (1UL << 0) macro
/linux/arch/arm64/kernel/
H A Dsignal.c727 (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 Dgcs.rst68 * When set PR_SHADOW_STACK_ENABLE flag allocates a Guarded Control Stack