Lines Matching refs:pkey_assert

218 	pkey_assert(flags & (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE));  in pkey_disable_set()
225 pkey_assert(pkey_rights >= 0); in pkey_disable_set()
236 pkey_assert(ret >= 0); in pkey_disable_set()
254 pkey_assert(flags & (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_disable_clear()
258 pkey_assert(pkey_rights >= 0); in pkey_disable_clear()
264 pkey_assert(ret >= 0); in pkey_disable_clear()
356 pkey_assert(*pkey_reg_ptr); in signal_handler()
375 pkey_assert(siginfo_pkey < NR_PKEYS); in signal_handler()
428 pkey_assert(rs == 0); in setup_sigsegv_handler()
436 pkey_assert(r == 0); in setup_sigsegv_handler()
450 pkey_assert(forkret >= 0); in fork_lazy_child()
568 pkey_assert(nr_alloced > 0); in alloc_random_pkey()
581 pkey_assert(!free_ret); in alloc_random_pkey()
613 pkey_assert(pkey < NR_PKEYS); in mprotect_pkey()
618 pkey_assert(!ret); in mprotect_pkey()
652 pkey_assert(pkey_malloc_records != NULL); in record_pkey_malloc()
688 pkey_assert(!ret); in free_pkey_malloc()
694 pkey_assert(false); in free_pkey_malloc()
706 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect()
708 pkey_assert(ptr != (void *)-1); in malloc_pkey_with_mprotect()
710 pkey_assert(!ret); in malloc_pkey_with_mprotect()
731 pkey_assert(ptr != (void *)-1); in malloc_pkey_anon_huge()
809 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_hugetlb()
811 pkey_assert(ptr != (void *)-1); in malloc_pkey_hugetlb()
827 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_mmap_dax()
829 pkey_assert(fd >= 0); in malloc_pkey_mmap_dax()
832 pkey_assert(ptr != (void *)-1); in malloc_pkey_mmap_dax()
861 pkey_assert(pkey < NR_PKEYS); in malloc_pkey()
864 pkey_assert(malloc_type < nr_malloc_types); in malloc_pkey()
867 pkey_assert(ret != (void *)-1); in malloc_pkey()
892 pkey_assert(last_pkey_faults + 1 == pkey_faults); in expected_pkey_fault()
899 pkey_assert(last_si_pkey == pkey); in expected_pkey_fault()
912 pkey_assert(0); in expected_pkey_fault()
924 pkey_assert(last_pkey_faults == pkey_faults); \
931 pkey_assert(fd >= 0); in __save_test_fd()
932 pkey_assert(nr_test_fds < ARRAY_SIZE(test_fds)); in __save_test_fd()
965 pkey_assert(pkey_last_malloc_record); in test_pkey_alloc_free_attach_pkey0()
980 pkey_assert(new_pkey != 0); in test_pkey_alloc_free_attach_pkey0()
993 pkey_assert(!free_ret); in test_pkey_alloc_free_attach_pkey0()
998 pkey_assert(!err); in test_pkey_alloc_free_attach_pkey0()
1000 pkey_assert(!err); in test_pkey_alloc_free_attach_pkey0()
1002 pkey_assert(!err); 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()
1095 pkey_assert(ret); in test_kernel_write_of_access_disabled_region()
1107 pkey_assert(ret); in test_kernel_write_of_write_disabled_region()
1118 pkey_assert(pipe_ret == 0); in test_kernel_gup_of_access_disabled_region()
1126 pkey_assert(vmsplice_ret == -1); in test_kernel_gup_of_access_disabled_region()
1162 pkey_assert(err); in test_pkey_syscalls_on_non_allocated_pkey()
1165 pkey_assert(err); in test_pkey_syscalls_on_non_allocated_pkey()
1168 pkey_assert(err); in test_pkey_syscalls_on_non_allocated_pkey()
1180 pkey_assert(err); in test_pkey_syscalls_bad_args()
1188 pkey_assert(forkret >= 0); in become_child()
1225 pkey_assert(nr_allocated_pkeys < NR_PKEYS); in test_pkey_alloc_exhaust()
1257 pkey_assert(i >= (NR_PKEYS - get_arch_reserved_keys() - 1)); in test_pkey_alloc_exhaust()
1261 pkey_assert(!err); in test_pkey_alloc_exhaust()
1333 pkey_assert(!err); in test_pkey_init_state()
1393 pkey_assert(ret != -1); in test_ptrace_of_child()
1398 pkey_assert(0); in test_ptrace_of_child()
1417 pkey_assert(ret != -1); in test_ptrace_of_child()
1427 pkey_assert(ret != -1); in test_ptrace_of_child()
1433 pkey_assert(ret != -1); in test_ptrace_of_child()
1436 pkey_assert(ret != -1); in test_ptrace_of_child()
1477 pkey_assert(!ret); in test_executing_on_unreadable_memory()
1493 pkey_assert(!ret); in test_executing_on_unreadable_memory()
1512 pkey_assert(!ret); in test_implicit_mprotect_exec_only_memory()
1536 pkey_assert(!ret); in test_implicit_mprotect_exec_only_memory()
1539 pkey_assert(!ret); in test_implicit_mprotect_exec_only_memory()
1562 pkey_assert(child >= 0); in test_ptrace_modifies_pkru()
1588 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1590 pkey_assert(WIFSTOPPED(status) && WSTOPSIG(status) == SIGSTOP); in test_ptrace_modifies_pkru()
1593 pkey_assert(xsave > 0); in test_ptrace_modifies_pkru()
1599 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1602 pkey_assert(*pkey_register == read_pkey_reg()); in test_ptrace_modifies_pkru()
1607 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1612 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1613 pkey_assert(*pkey_register == new_pkru); in test_ptrace_modifies_pkru()
1617 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1620 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1622 pkey_assert(WIFSTOPPED(status) && WSTOPSIG(status) == SIGSTOP); in test_ptrace_modifies_pkru()
1627 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1628 pkey_assert(*pkey_register == new_pkru); in test_ptrace_modifies_pkru()
1635 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1640 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1641 pkey_assert(*pkey_register == 0); in test_ptrace_modifies_pkru()
1644 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1647 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1649 pkey_assert(WIFSTOPPED(status) && WSTOPSIG(status) == SIGSTOP); in test_ptrace_modifies_pkru()
1654 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1655 pkey_assert(*pkey_register == 0); in test_ptrace_modifies_pkru()
1658 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1659 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1661 pkey_assert(WIFEXITED(status)); in test_ptrace_modifies_pkru()
1662 pkey_assert(WEXITSTATUS(status) == 0); in test_ptrace_modifies_pkru()
1680 pkey_assert(child >= 0); in test_ptrace_modifies_pkru()
1700 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1702 pkey_assert(WIFSTOPPED(status) && WSTOPSIG(status) == SIGSTOP); in test_ptrace_modifies_pkru()
1707 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1708 pkey_assert(trace_pkey == read_pkey_reg()); in test_ptrace_modifies_pkru()
1713 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1718 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1719 pkey_assert(trace_pkey == new_pkey); in test_ptrace_modifies_pkru()
1723 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1726 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1728 pkey_assert(WIFSTOPPED(status) && WSTOPSIG(status) == SIGSTOP); in test_ptrace_modifies_pkru()
1733 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1734 pkey_assert(trace_pkey == new_pkey); in test_ptrace_modifies_pkru()
1737 pkey_assert(ret == 0); in test_ptrace_modifies_pkru()
1738 pkey_assert(child == waitpid(child, &status, 0)); in test_ptrace_modifies_pkru()
1740 pkey_assert(WIFEXITED(status)); in test_ptrace_modifies_pkru()
1741 pkey_assert(WEXITSTATUS(status) == 0); in test_ptrace_modifies_pkru()
1756 pkey_assert(sret < 0); in test_mprotect_pkey_on_unsupported_cpu()