Home
last modified time | relevance | path

Searched refs:shstk (Results 1 – 5 of 5) sorted by relevance

/linux/arch/x86/kernel/
H A Dshstk.c151 struct thread_shstk *shstk = &current->thread.shstk; in shstk_setup() local
172 shstk->base = addr; in shstk_setup()
173 shstk->size = size; in shstk_setup()
181 memset(&current->thread.shstk, 0, sizeof(struct thread_shstk)); in reset_thread_features()
189 struct thread_shstk *shstk = &tsk->thread.shstk; in shstk_alloc_thread_stack() local
205 shstk->base = 0; in shstk_alloc_thread_stack()
206 shstk->size = 0; in shstk_alloc_thread_stack()
222 shstk->base = addr; in shstk_alloc_thread_stack()
223 shstk->size = size; in shstk_alloc_thread_stack()
444 struct thread_shstk *shstk = &tsk->thread.shstk; in shstk_free() local
[all …]
H A DMakefile171 obj-$(CONFIG_X86_USER_SHADOW_STACK) += shstk.o
/linux/tools/testing/selftests/x86/
H A Dtest_shadow_stack.c123 void free_shstk(void *shstk) in free_shstk() argument
125 munmap(shstk, SS_SIZE); in free_shstk()
128 int reset_shstk(void *shstk) in reset_shstk() argument
130 return madvise(shstk, SS_SIZE, MADV_DONTNEED); in reset_shstk()
155 void *shstk = create_shstk(0); in test_shstk_pivot() local
157 if (shstk == MAP_FAILED) { in test_shstk_pivot()
161 try_shstk((unsigned long)shstk + SS_SIZE - 8); in test_shstk_pivot()
162 free_shstk(shstk); in test_shstk_pivot()
170 unsigned long *shstk = create_shstk(0); in test_shstk_faults() local
173 if (*shstk != 0) in test_shstk_faults()
[all …]
/linux/Documentation/arch/x86/
H A Dindex.rst25 shstk
/linux/arch/x86/
H A DKconfig1900 See Documentation/arch/x86/shstk.rst for more information.