Searched refs:SS_SIZE (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/selftests/x86/ |
H A D | test_shadow_stack.c | 59 #define SS_SIZE 0x200000 macro 113 return (void *)syscall(__NR_map_shadow_stack, addr, SS_SIZE, SHADOW_STACK_SET_TOKEN); in create_shstk() 118 return mmap(addr, SS_SIZE, PROT_READ | PROT_WRITE, in create_normal_mem() 124 munmap(shstk, SS_SIZE); in free_shstk() 129 return madvise(shstk, SS_SIZE, MADV_DONTNEED); in reset_shstk() 160 try_shstk((unsigned long)shstk + SS_SIZE - 8); in test_shstk_pivot() 411 if (mprotect(shstk_ptr, SS_SIZE, PROT_READ) < 0) { in test_mprotect() 426 if (mprotect(shstk_ptr, SS_SIZE, PROT_READ) < 0) { in test_mprotect() 432 if (mprotect(shstk_ptr, SS_SIZE, PROT_WRITE | PROT_READ) < 0) { in test_mprotect() 564 free_area = mmap(0, SS_SIZE * 3, PROT_READ | PROT_WRITE, in test_guard_gap() [all …]
|