Home
last modified time | relevance | path

Searched refs:pkey_assert (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/mm/
H A Dprotection_keys.c218 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()
[all …]
H A Dpkey-powerpc.h115 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect_subpage()
117 pkey_assert(ptr != (void *)-1); in malloc_pkey_with_mprotect_subpage()
126 pkey_assert(!ret); in malloc_pkey_with_mprotect_subpage()
H A Dpkey-helpers.h71 #define pkey_assert(condition) do { \ macro