| /tools/testing/selftests/mm/ |
| D | protection_keys.c | 178 static u32 hw_pkey_get(int pkey, unsigned long flags) in hw_pkey_get() 189 static int hw_pkey_set(int pkey, unsigned long rights, unsigned long flags) in hw_pkey_set() 210 void pkey_disable_set(int pkey, int flags) in pkey_disable_set() 248 void pkey_disable_clear(int pkey, int flags) in pkey_disable_clear() 274 void pkey_write_allow(int pkey) in pkey_write_allow() 278 void pkey_write_deny(int pkey) in pkey_write_deny() 282 void pkey_access_allow(int pkey) in pkey_access_allow() 286 void pkey_access_deny(int pkey) in pkey_access_deny() 464 unsigned long pkey) in sys_mprotect_pkey() 537 int sys_pkey_free(unsigned long pkey) in sys_pkey_free() [all …]
|
| D | pkey-arm64.h | 73 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position() 83 void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key() 87 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage() 93 static inline u64 set_pkey_bits(u64 reg, int pkey, u64 flags) in set_pkey_bits() 113 static inline u64 get_pkey_bits(u64 reg, int pkey) in get_pkey_bits() 129 static void aarch64_write_signal_pkey(ucontext_t *uctxt, u64 pkey) in aarch64_write_signal_pkey()
|
| D | pkey-helpers.h | 116 static inline u64 set_pkey_bits(u64 reg, int pkey, u64 flags) in set_pkey_bits() 128 static inline u64 get_pkey_bits(u64 reg, int pkey) in get_pkey_bits() 171 static inline void __pkey_access_allow(int pkey, int do_allow) in __pkey_access_allow() 185 static inline void __pkey_write_allow(int pkey, int do_allow_write) in __pkey_write_allow()
|
| D | pkey-powerpc.h | 37 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position() 94 void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key() 118 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
| D | pkey-x86.h | 105 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position() 149 void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key() 158 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
| D | pkey_sighandler_tests.c | 34 void expected_pkey_fault(int pkey) {} in expected_pkey_fault() 240 int pkey; in test_sigsegv_handler_with_different_pkey_for_stack() local 384 int pkey; in test_pkru_sigreturn() local
|
| D | mseal_test.c | 75 unsigned long pkey) in sys_mprotect_pkey() 146 static unsigned long pkey_bit_position(int pkey) in pkey_bit_position() 151 static u64 set_pkey_bits(u64 reg, int pkey, u64 flags) in set_pkey_bits() 162 static void set_pkey(int pkey, unsigned long pkey_value) in set_pkey() 221 int pkey = sys_pkey_alloc(0, 0); in pkey_supported() local 1667 int pkey; in test_seal_discard_ro_anon_on_pkey() local
|
| /tools/testing/selftests/powerpc/include/ |
| D | pkeys.h | 52 void pkey_set_rights(int pkey, unsigned long rights) in pkey_set_rights() 63 int sys_pkey_mprotect(void *addr, size_t len, int prot, int pkey) in sys_pkey_mprotect() 73 int sys_pkey_free(int pkey) in sys_pkey_free() 81 int pkey; in pkeys_unsupported() local
|
| /tools/testing/selftests/powerpc/ptrace/ |
| D | core-pkey.c | 38 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) argument 69 static int sys_pkey_free(int pkey) in sys_pkey_free()
|
| D | ptrace-pkey.c | 29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) argument
|
| /tools/testing/selftests/powerpc/mm/ |
| D | pkey_exec_prot.c | 106 int pkey, ret, i; in test() local
|
| D | pkey_siginfo.c | 39 int pkey; in segv_handler() local
|
| /tools/lib/bpf/ |
| D | hashmap.h | 63 const void *pkey; member
|
| /tools/perf/util/ |
| D | hashmap.h | 63 const void *pkey; member
|
| /tools/testing/selftests/filesystems/incfs/ |
| D | incfs_test.c | 3733 EVP_PKEY *pkey = NULL; in create_key() local
|