Home
last modified time | relevance | path

Searched defs:pkey (Results 1 – 15 of 15) sorted by relevance

/tools/testing/selftests/mm/
Dprotection_keys.c178 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 …]
Dpkey-arm64.h73 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()
Dpkey-helpers.h116 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()
Dpkey-powerpc.h37 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()
Dpkey-x86.h105 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()
Dpkey_sighandler_tests.c34 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
Dmseal_test.c75 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/
Dpkeys.h52 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/
Dcore-pkey.c38 #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()
Dptrace-pkey.c29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) argument
/tools/testing/selftests/powerpc/mm/
Dpkey_exec_prot.c106 int pkey, ret, i; in test() local
Dpkey_siginfo.c39 int pkey; in segv_handler() local
/tools/lib/bpf/
Dhashmap.h63 const void *pkey; member
/tools/perf/util/
Dhashmap.h63 const void *pkey; member
/tools/testing/selftests/filesystems/incfs/
Dincfs_test.c3733 EVP_PKEY *pkey = NULL; in create_key() local