Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/x86/
H A Dtest_shadow_stack.c60 #define SS_SIZE 0x200000 macro
114 return (void *)syscall(__NR_map_shadow_stack, addr, SS_SIZE, SHADOW_STACK_SET_TOKEN); in create_shstk()
119 return mmap(addr, SS_SIZE, PROT_READ | PROT_WRITE, in create_normal_mem()
125 munmap(shstk, SS_SIZE); in free_shstk()
130 return madvise(shstk, SS_SIZE, MADV_DONTNEED); in reset_shstk()
161 try_shstk((unsigned long)shstk + SS_SIZE - 8); in test_shstk_pivot()
412 if (mprotect(shstk_ptr, SS_SIZE, PROT_READ) < 0) { in test_mprotect()
427 if (mprotect(shstk_ptr, SS_SIZE, PROT_READ) < 0) { in test_mprotect()
433 if (mprotect(shstk_ptr, SS_SIZE, PROT_WRITE | PROT_READ) < 0) { in test_mprotect()
565 free_area = mmap(0, SS_SIZE * 3, PROT_READ | PROT_WRITE, in test_guard_gap_other_gaps()
[all …]