Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/Documentation/translations/zh_CN/core-api/
Dprotection-keys.rst55 pkey = pkey_alloc(0, PKEY_DISABLE_WRITE);
63 pkey_set(pkey, 0); // clear PKEY_DISABLE_WRITE
65 pkey_set(pkey, PKEY_DISABLE_WRITE); // set PKEY_DISABLE_WRITE again
85 pkey = pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ);
/linux-6.6.21/Documentation/core-api/
Dprotection-keys.rst49 pkey = pkey_alloc(0, PKEY_DISABLE_WRITE);
57 pkey_set(pkey, 0); // clear PKEY_DISABLE_WRITE
59 pkey_set(pkey, PKEY_DISABLE_WRITE); // set PKEY_DISABLE_WRITE again
82 pkey = pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ);
/linux-6.6.21/include/uapi/asm-generic/
Dmman-common.h86 #define PKEY_DISABLE_WRITE 0x2 macro
88 PKEY_DISABLE_WRITE)
/linux-6.6.21/tools/include/uapi/asm-generic/
Dmman-common.h86 #define PKEY_DISABLE_WRITE 0x2 macro
88 PKEY_DISABLE_WRITE)
/linux-6.6.21/arch/xtensa/include/uapi/asm/
Dmman.h120 #define PKEY_DISABLE_WRITE 0x2 macro
122 PKEY_DISABLE_WRITE)
/linux-6.6.21/arch/parisc/include/uapi/asm/
Dmman.h82 #define PKEY_DISABLE_WRITE 0x2 macro
84 PKEY_DISABLE_WRITE)
/linux-6.6.21/arch/alpha/include/uapi/asm/
Dmman.h85 #define PKEY_DISABLE_WRITE 0x2 macro
87 PKEY_DISABLE_WRITE)
/linux-6.6.21/arch/mips/include/uapi/asm/
Dmman.h112 #define PKEY_DISABLE_WRITE 0x2 macro
114 PKEY_DISABLE_WRITE)
/linux-6.6.21/tools/testing/selftests/mm/
Dpkey-powerpc.h19 #undef PKEY_DISABLE_WRITE
20 #define PKEY_DISABLE_WRITE 0x2 macro
Dpkey-x86.h22 #ifndef PKEY_DISABLE_WRITE
23 # define PKEY_DISABLE_WRITE 0x2 macro
Dpkey-helpers.h98 #define PKEY_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)
Dprotection_keys.c191 u32 mask = (PKEY_DISABLE_ACCESS|PKEY_DISABLE_WRITE); in hw_pkey_set()
219 pkey_assert(flags & (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_disable_set()
258 pkey_assert(flags & (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_disable_clear()
282 pkey_disable_clear(pkey, PKEY_DISABLE_WRITE); in pkey_write_allow()
286 pkey_disable_set(pkey, PKEY_DISABLE_WRITE); in pkey_write_deny()
/linux-6.6.21/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-6.6.21/arch/powerpc/include/uapi/asm/
Dmman.h33 PKEY_DISABLE_WRITE |\
/linux-6.6.21/arch/powerpc/mm/book3s64/
Dpkeys.c119 (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_early_init_devtree()
366 else if (init_val & PKEY_DISABLE_WRITE) in __arch_set_user_pkey_access()
/linux-6.6.21/arch/powerpc/include/asm/
Dpkeys.h23 PKEY_DISABLE_WRITE | \
/linux-6.6.21/arch/x86/kernel/fpu/
Dxstate.c1024 if (init_val & PKEY_DISABLE_WRITE) in arch_set_user_pkey_access()