Lines Matching refs:pkey_assert
219 pkey_assert(flags & (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_disable_set()
226 pkey_assert(pkey_rights >= 0); in pkey_disable_set()
237 pkey_assert(ret >= 0); in pkey_disable_set()
246 pkey_assert(read_pkey_reg() >= orig_pkey_reg); in pkey_disable_set()
258 pkey_assert(flags & (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_disable_clear()
262 pkey_assert(pkey_rights >= 0); in pkey_disable_clear()
268 pkey_assert(ret >= 0); in pkey_disable_clear()
358 pkey_assert(*pkey_reg_ptr); in signal_handler()
375 pkey_assert(siginfo_pkey < NR_PKEYS); in signal_handler()
426 pkey_assert(rs == 0); in setup_sigsegv_handler()
434 pkey_assert(r == 0); in setup_sigsegv_handler()
448 pkey_assert(forkret >= 0); in fork_lazy_child()
566 pkey_assert(nr_alloced > 0); in alloc_random_pkey()
579 pkey_assert(!free_ret); in alloc_random_pkey()
611 pkey_assert(pkey < NR_PKEYS); in mprotect_pkey()
616 pkey_assert(!ret); in mprotect_pkey()
650 pkey_assert(pkey_malloc_records != NULL); in record_pkey_malloc()
686 pkey_assert(!ret); in free_pkey_malloc()
692 pkey_assert(false); in free_pkey_malloc()
704 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect()
706 pkey_assert(ptr != (void *)-1); in malloc_pkey_with_mprotect()
708 pkey_assert(!ret); in malloc_pkey_with_mprotect()
729 pkey_assert(ptr != (void *)-1); in malloc_pkey_anon_huge()
807 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_hugetlb()
809 pkey_assert(ptr != (void *)-1); in malloc_pkey_hugetlb()
825 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_mmap_dax()
827 pkey_assert(fd >= 0); in malloc_pkey_mmap_dax()
830 pkey_assert(ptr != (void *)-1); in malloc_pkey_mmap_dax()
859 pkey_assert(pkey < NR_PKEYS); in malloc_pkey()
862 pkey_assert(malloc_type < nr_malloc_types); in malloc_pkey()
865 pkey_assert(ret != (void *)-1); in malloc_pkey()
890 pkey_assert(last_pkey_faults + 1 == pkey_faults); in expected_pkey_fault()
897 pkey_assert(last_si_pkey == pkey); in expected_pkey_fault()
908 pkey_assert(0); in expected_pkey_fault()
920 pkey_assert(last_pkey_faults == pkey_faults); \
927 pkey_assert(fd >= 0); in __save_test_fd()
928 pkey_assert(nr_test_fds < ARRAY_SIZE(test_fds)); in __save_test_fd()
971 pkey_assert(pkey_last_malloc_record); in test_pkey_alloc_free_attach_pkey0()
986 pkey_assert(new_pkey != 0); in test_pkey_alloc_free_attach_pkey0()
999 pkey_assert(!free_ret); in test_pkey_alloc_free_attach_pkey0()
1004 pkey_assert(!err); in test_pkey_alloc_free_attach_pkey0()
1006 pkey_assert(!err); in test_pkey_alloc_free_attach_pkey0()
1008 pkey_assert(!err); in test_pkey_alloc_free_attach_pkey0()
1010 pkey_assert(!err); in test_pkey_alloc_free_attach_pkey0()
1012 pkey_assert(!err); in test_pkey_alloc_free_attach_pkey0()
1101 pkey_assert(ret); in test_kernel_write_of_access_disabled_region()
1113 pkey_assert(ret); in test_kernel_write_of_write_disabled_region()
1124 pkey_assert(pipe_ret == 0); in test_kernel_gup_of_access_disabled_region()
1132 pkey_assert(vmsplice_ret == -1); in test_kernel_gup_of_access_disabled_region()
1168 pkey_assert(err); in test_pkey_syscalls_on_non_allocated_pkey()
1171 pkey_assert(err); in test_pkey_syscalls_on_non_allocated_pkey()
1174 pkey_assert(err); in test_pkey_syscalls_on_non_allocated_pkey()
1186 pkey_assert(err); in test_pkey_syscalls_bad_args()
1194 pkey_assert(forkret >= 0); in become_child()
1231 pkey_assert(nr_allocated_pkeys < NR_PKEYS); in test_pkey_alloc_exhaust()
1263 pkey_assert(i >= (NR_PKEYS - get_arch_reserved_keys() - 1)); in test_pkey_alloc_exhaust()
1267 pkey_assert(!err); in test_pkey_alloc_exhaust()
1339 pkey_assert(!err); in test_pkey_init_state()
1399 pkey_assert(ret != -1); in test_ptrace_of_child()
1404 pkey_assert(0); in test_ptrace_of_child()
1423 pkey_assert(ret != -1); in test_ptrace_of_child()
1433 pkey_assert(ret != -1); in test_ptrace_of_child()
1439 pkey_assert(ret != -1); in test_ptrace_of_child()
1442 pkey_assert(ret != -1); in test_ptrace_of_child()
1483 pkey_assert(!ret); in test_executing_on_unreadable_memory()
1513 pkey_assert(!ret); in test_implicit_mprotect_exec_only_memory()
1537 pkey_assert(!ret); in test_implicit_mprotect_exec_only_memory()
1540 pkey_assert(!ret); in test_implicit_mprotect_exec_only_memory()
1563 pkey_assert(child >= 0); in test_ptrace_modifies_pkru()
1589 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1591 pkey_assert(WIFSTOPPED(status) && WSTOPSIG(status) == SIGSTOP); in test_ptrace_modifies_pkru()
1594 pkey_assert(xsave > 0); in test_ptrace_modifies_pkru()
1600 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1603 pkey_assert(*pkey_register == read_pkey_reg()); in test_ptrace_modifies_pkru()
1608 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1613 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1614 pkey_assert(*pkey_register == new_pkru); in test_ptrace_modifies_pkru()
1618 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1621 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1623 pkey_assert(WIFSTOPPED(status) && WSTOPSIG(status) == SIGSTOP); in test_ptrace_modifies_pkru()
1628 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1629 pkey_assert(*pkey_register == new_pkru); in test_ptrace_modifies_pkru()
1636 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1641 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1642 pkey_assert(*pkey_register == 0); in test_ptrace_modifies_pkru()
1645 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1648 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1650 pkey_assert(WIFSTOPPED(status) && WSTOPSIG(status) == SIGSTOP); in test_ptrace_modifies_pkru()
1655 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1656 pkey_assert(*pkey_register == 0); in test_ptrace_modifies_pkru()
1659 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1660 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1662 pkey_assert(WIFEXITED(status)); in test_ptrace_modifies_pkru()
1663 pkey_assert(WEXITSTATUS(status) == 0); in test_ptrace_modifies_pkru()
1679 pkey_assert(sret < 0); in test_mprotect_pkey_on_unsupported_cpu()