Lines Matching defs:pkey

184 static u32 hw_pkey_get(int pkey, unsigned long flags)  in hw_pkey_get()
195 static int hw_pkey_set(int pkey, unsigned long rights, unsigned long flags) in hw_pkey_set()
216 static void pkey_disable_set(int pkey, int flags) in pkey_disable_set()
254 static void pkey_disable_clear(int pkey, int flags) in pkey_disable_clear()
280 __maybe_unused static void pkey_write_allow(int pkey) in pkey_write_allow()
284 __maybe_unused static void pkey_write_deny(int pkey) in pkey_write_deny()
288 __maybe_unused static void pkey_access_allow(int pkey) in pkey_access_allow()
292 __maybe_unused static void pkey_access_deny(int pkey) in pkey_access_deny()
555 unsigned long pkey) in mprotect_pkey()
662 static void *malloc_pkey_with_mprotect(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect()
682 static void *malloc_pkey_anon_huge(long size, int prot, u16 pkey) in malloc_pkey_anon_huge()
763 static void *malloc_pkey_hugetlb(long size, int prot, u16 pkey) in malloc_pkey_hugetlb()
792 static void *malloc_pkey(long size, int prot, u16 pkey) in malloc_pkey()
824 void expected_pkey_fault(int pkey) in expected_pkey_fault()
894 static void test_pkey_alloc_free_attach_pkey0(int *ptr, u16 pkey) in test_pkey_alloc_free_attach_pkey0()
946 static void test_read_of_write_disabled_region(int *ptr, u16 pkey) in test_read_of_write_disabled_region()
956 static void test_read_of_access_disabled_region(int *ptr, u16 pkey) in test_read_of_access_disabled_region()
969 u16 pkey) in test_read_of_access_disabled_region_with_page_already_mapped()
986 u16 pkey) in test_write_of_write_disabled_region_with_page_already_mapped()
996 static void test_write_of_write_disabled_region(int *ptr, u16 pkey) in test_write_of_write_disabled_region()
1003 static void test_write_of_access_disabled_region(int *ptr, u16 pkey) in test_write_of_access_disabled_region()
1012 u16 pkey) in test_write_of_access_disabled_region_with_page_already_mapped()
1022 static void test_kernel_write_of_access_disabled_region(int *ptr, u16 pkey) in test_kernel_write_of_access_disabled_region()
1035 static void test_kernel_write_of_write_disabled_region(int *ptr, u16 pkey) in test_kernel_write_of_write_disabled_region()
1048 static void test_kernel_gup_of_access_disabled_region(int *ptr, u16 pkey) in test_kernel_gup_of_access_disabled_region()
1070 static void test_kernel_gup_write_to_write_disabled_region(int *ptr, u16 pkey) in test_kernel_gup_write_to_write_disabled_region()
1088 static void test_pkey_syscalls_on_non_allocated_pkey(int *ptr, u16 pkey) in test_pkey_syscalls_on_non_allocated_pkey()
1111 static void test_pkey_syscalls_bad_args(int *ptr, u16 pkey) in test_pkey_syscalls_bad_args()
1137 static void test_pkey_alloc_exhaust(int *ptr, u16 pkey) in test_pkey_alloc_exhaust()
1243 static void test_pkey_init_state(int *ptr, u16 pkey) in test_pkey_init_state()
1281 static void test_mprotect_with_pkey_0(int *ptr, u16 pkey) in test_mprotect_with_pkey_0()
1305 static void test_ptrace_of_child(int *ptr, u16 pkey) in test_ptrace_of_child()
1402 static void test_executing_on_unreadable_memory(int *ptr, u16 pkey) in test_executing_on_unreadable_memory()
1434 static void test_implicit_mprotect_exec_only_memory(int *ptr, u16 pkey) in test_implicit_mprotect_exec_only_memory()
1483 static void test_ptrace_modifies_pkru(int *ptr, u16 pkey) in test_ptrace_modifies_pkru()
1606 static void test_ptrace_modifies_pkru(int *ptr, u16 pkey) in test_ptrace_modifies_pkru()
1683 static void test_mprotect_pkey_on_unsupported_cpu(int *ptr, u16 pkey) in test_mprotect_pkey_on_unsupported_cpu()
1729 int pkey; in run_tests_once() local