Home
last modified time | relevance | path

Searched refs:PKEY_DISABLE_WRITE (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.10/tools/testing/selftests/powerpc/include/
Dpkeys.h21 #undef PKEY_DISABLE_WRITE
22 #define PKEY_DISABLE_WRITE 0x2 macro
114 if (amr_bits & PKEY_DISABLE_WRITE) \
116 if (amr_bits & PKEY_DISABLE_ACCESS & ~PKEY_DISABLE_WRITE) \
129 rights |= PKEY_DISABLE_WRITE; in next_pkey_rights()
130 else if ((rights & PKEY_BITS_MASK) == PKEY_DISABLE_WRITE) in next_pkey_rights()
/Linux-v5.10/include/uapi/asm-generic/
Dmman-common.h79 #define PKEY_DISABLE_WRITE 0x2 macro
81 PKEY_DISABLE_WRITE)
/Linux-v5.10/tools/include/uapi/asm-generic/
Dmman-common.h79 #define PKEY_DISABLE_WRITE 0x2 macro
81 PKEY_DISABLE_WRITE)
/Linux-v5.10/arch/xtensa/include/uapi/asm/
Dmman.h113 #define PKEY_DISABLE_WRITE 0x2 macro
115 PKEY_DISABLE_WRITE)
/Linux-v5.10/arch/parisc/include/uapi/asm/
Dmman.h76 #define PKEY_DISABLE_WRITE 0x2 macro
78 PKEY_DISABLE_WRITE)
/Linux-v5.10/arch/alpha/include/uapi/asm/
Dmman.h78 #define PKEY_DISABLE_WRITE 0x2 macro
80 PKEY_DISABLE_WRITE)
/Linux-v5.10/arch/mips/include/uapi/asm/
Dmman.h105 #define PKEY_DISABLE_WRITE 0x2 macro
107 PKEY_DISABLE_WRITE)
/Linux-v5.10/Documentation/core-api/
Dprotection-keys.rst51 pkey = pkey_alloc(0, PKEY_DISABLE_WRITE);
59 pkey_set(pkey, 0); // clear PKEY_DISABLE_WRITE
61 pkey_set(pkey, PKEY_DISABLE_WRITE); // set PKEY_DISABLE_WRITE again
84 pkey = pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ);
/Linux-v5.10/tools/testing/selftests/vm/
Dpkey-powerpc.h22 #undef PKEY_DISABLE_WRITE
23 #define PKEY_DISABLE_WRITE 0x2 macro
Dpkey-x86.h40 #ifndef PKEY_DISABLE_WRITE
41 # define PKEY_DISABLE_WRITE 0x2 macro
Dprotection_keys.c190 u32 mask = (PKEY_DISABLE_ACCESS|PKEY_DISABLE_WRITE); in hw_pkey_set()
218 pkey_assert(flags & (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_disable_set()
257 pkey_assert(flags & (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_disable_clear()
281 pkey_disable_clear(pkey, PKEY_DISABLE_WRITE); in pkey_write_allow()
285 pkey_disable_set(pkey, PKEY_DISABLE_WRITE); in pkey_write_deny()
Dpkey-helpers.h96 #define PKEY_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)
/Linux-v5.10/tools/testing/selftests/powerpc/mm/
Dpkey_siginfo.c160 (rights == PKEY_DISABLE_WRITE) ? "write" : "read", in protect_access()
195 case PKEY_DISABLE_WRITE: in protect_access()
308 r.rights = PKEY_DISABLE_WRITE; in test()
/Linux-v5.10/arch/powerpc/include/uapi/asm/
Dmman.h33 PKEY_DISABLE_WRITE |\
/Linux-v5.10/arch/powerpc/mm/book3s64/
Dpkeys.c111 (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_early_init_devtree()
309 else if (init_val & PKEY_DISABLE_WRITE) in __arch_set_user_pkey_access()
/Linux-v5.10/arch/powerpc/include/asm/
Dpkeys.h23 PKEY_DISABLE_WRITE | \
/Linux-v5.10/arch/x86/kernel/fpu/
Dxstate.c1018 if (init_val & PKEY_DISABLE_WRITE) in arch_set_user_pkey_access()