/linux-6.12.1/tools/testing/selftests/powerpc/include/ |
D | pkeys.h | 21 #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.12.1/Documentation/translations/zh_CN/core-api/ |
D | protection-keys.rst | 55 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.12.1/tools/testing/selftests/mm/ |
D | mseal_helpers.h | 27 #ifndef PKEY_DISABLE_WRITE 28 #define PKEY_DISABLE_WRITE 0x2 macro 36 #define PKEY_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)
|
D | pkey-powerpc.h | 22 #undef PKEY_DISABLE_WRITE 23 #define PKEY_DISABLE_WRITE 0x2 macro
|
D | pkey-arm64.h | 103 else if (flags & PKEY_DISABLE_WRITE) in set_pkey_bits() 125 return PKEY_DISABLE_WRITE; in get_pkey_bits()
|
D | pkey-x86.h | 26 #ifndef PKEY_DISABLE_WRITE 27 # define PKEY_DISABLE_WRITE 0x2 macro
|
D | protection_keys.c | 191 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() 254 pkey_assert(flags & (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_disable_clear() 276 pkey_disable_clear(pkey, PKEY_DISABLE_WRITE); in pkey_write_allow() 280 pkey_disable_set(pkey, PKEY_DISABLE_WRITE); in pkey_write_deny()
|
D | pkey-helpers.h | 112 #define PKEY_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)
|
D | mseal_test.c | 1691 set_pkey(pkey, PKEY_DISABLE_WRITE); in test_seal_discard_ro_anon_on_pkey()
|
/linux-6.12.1/tools/include/uapi/asm-generic/ |
D | mman-common.h | 86 #define PKEY_DISABLE_WRITE 0x2 macro 88 PKEY_DISABLE_WRITE)
|
/linux-6.12.1/include/uapi/asm-generic/ |
D | mman-common.h | 86 #define PKEY_DISABLE_WRITE 0x2 macro 88 PKEY_DISABLE_WRITE)
|
/linux-6.12.1/arch/mips/include/uapi/asm/ |
D | mman.h | 112 #define PKEY_DISABLE_WRITE 0x2 macro 114 PKEY_DISABLE_WRITE)
|
/linux-6.12.1/arch/xtensa/include/uapi/asm/ |
D | mman.h | 120 #define PKEY_DISABLE_WRITE 0x2 macro 122 PKEY_DISABLE_WRITE)
|
/linux-6.12.1/arch/parisc/include/uapi/asm/ |
D | mman.h | 82 #define PKEY_DISABLE_WRITE 0x2 macro 84 PKEY_DISABLE_WRITE)
|
/linux-6.12.1/arch/alpha/include/uapi/asm/ |
D | mman.h | 85 #define PKEY_DISABLE_WRITE 0x2 macro 87 PKEY_DISABLE_WRITE)
|
/linux-6.12.1/Documentation/core-api/ |
D | protection-keys.rst | 67 pkey = pkey_alloc(0, PKEY_DISABLE_WRITE); 75 pkey_set(pkey, 0); // clear PKEY_DISABLE_WRITE 77 pkey_set(pkey, PKEY_DISABLE_WRITE); // set PKEY_DISABLE_WRITE again 100 pkey = pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ);
|
/linux-6.12.1/tools/testing/selftests/powerpc/mm/ |
D | pkey_siginfo.c | 160 (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.12.1/arch/arm64/include/uapi/asm/ |
D | mman.h | 15 PKEY_DISABLE_WRITE |\
|
/linux-6.12.1/arch/powerpc/include/uapi/asm/ |
D | mman.h | 33 PKEY_DISABLE_WRITE |\
|
/linux-6.12.1/arch/powerpc/mm/book3s64/ |
D | pkeys.c | 120 (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)); in pkey_early_init_devtree() 367 else if (init_val & PKEY_DISABLE_WRITE) in __arch_set_user_pkey_access()
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | pkeys.h | 23 PKEY_DISABLE_WRITE | \
|
/linux-6.12.1/arch/x86/kernel/fpu/ |
D | xstate.c | 1045 if (init_val & PKEY_DISABLE_WRITE) in arch_set_user_pkey_access()
|
/linux-6.12.1/arch/arm64/mm/ |
D | mmu.c | 1574 if (init_val & PKEY_DISABLE_WRITE) in arch_set_user_pkey_access()
|