/linux-6.1.9/arch/x86/mm/ |
D | pgprot.c | 11 [VM_WRITE] = PAGE_COPY, 12 [VM_WRITE | VM_READ] = PAGE_COPY, 15 [VM_EXEC | VM_WRITE] = PAGE_COPY_EXEC, 16 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_EXEC, 19 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 20 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 23 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_EXEC, 24 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_EXEC 38 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]); in vm_get_page_prot()
|
/linux-6.1.9/arch/arm64/mm/ |
D | mmap.c | 19 [VM_WRITE] = PAGE_READONLY, 20 [VM_WRITE | VM_READ] = PAGE_READONLY, 24 [VM_EXEC | VM_WRITE] = PAGE_READONLY_EXEC, 25 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_READONLY_EXEC, 28 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 29 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 33 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_EXEC, 34 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_EXEC 83 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]); in vm_get_page_prot()
|
/linux-6.1.9/arch/arc/mm/ |
D | mmap.c | 81 [VM_WRITE] = PAGE_U_R, 82 [VM_WRITE | VM_READ] = PAGE_U_R, 85 [VM_EXEC | VM_WRITE] = PAGE_U_X_R, 86 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_U_X_R, 89 [VM_SHARED | VM_WRITE] = PAGE_U_W_R, 90 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_U_W_R, 93 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_U_X_W_R, 94 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_U_X_W_R
|
/linux-6.1.9/arch/nios2/mm/ |
D | init.c | 130 [VM_WRITE] = MKP(0, 0, 0), 131 [VM_WRITE | VM_READ] = MKP(0, 0, 1), 134 [VM_EXEC | VM_WRITE] = MKP(1, 0, 0), 135 [VM_EXEC | VM_WRITE | VM_READ] = MKP(1, 0, 1), 138 [VM_SHARED | VM_WRITE] = MKP(0, 1, 0), 139 [VM_SHARED | VM_WRITE | VM_READ] = MKP(0, 1, 1), 142 [VM_SHARED | VM_EXEC | VM_WRITE] = MKP(1, 1, 0), 143 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = MKP(1, 1, 1)
|
/linux-6.1.9/arch/m68k/mm/ |
D | sun3mmu.c | 102 [VM_WRITE] = PAGE_COPY, 103 [VM_WRITE | VM_READ] = PAGE_COPY, 106 [VM_EXEC | VM_WRITE] = PAGE_COPY, 107 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 110 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 111 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 114 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 115 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
|
D | mcfmmu.c | 242 [VM_WRITE] = __pgprot(CF_PAGE_VALID | 245 [VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID | 256 [VM_EXEC | VM_WRITE] = __pgprot(CF_PAGE_VALID | 260 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID | 269 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 270 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID | 281 [VM_SHARED | VM_EXEC | VM_WRITE] = __pgprot(CF_PAGE_VALID | 285 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID |
|
D | motorola.c | 397 [VM_WRITE] = PAGE_COPY_C, 398 [VM_WRITE | VM_READ] = PAGE_COPY_C, 401 [VM_EXEC | VM_WRITE] = PAGE_COPY_C, 402 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_C, 405 [VM_SHARED | VM_WRITE] = PAGE_SHARED_C, 406 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED_C, 409 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_C, 410 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_C
|
/linux-6.1.9/arch/openrisc/mm/ |
D | init.c | 215 [VM_WRITE] = PAGE_COPY, 216 [VM_WRITE | VM_READ] = PAGE_COPY_X, 219 [VM_EXEC | VM_WRITE] = PAGE_COPY, 220 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_X, 223 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 224 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED_X, 227 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 228 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
|
/linux-6.1.9/arch/xtensa/mm/ |
D | init.c | 224 [VM_WRITE] = PAGE_COPY, 225 [VM_WRITE | VM_READ] = PAGE_COPY, 228 [VM_EXEC | VM_WRITE] = PAGE_COPY_EXEC, 229 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_EXEC, 232 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 233 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 236 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_EXEC, 237 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_EXEC
|
/linux-6.1.9/arch/sh/mm/ |
D | mmap.c | 25 [VM_WRITE] = PAGE_COPY, 26 [VM_WRITE | VM_READ] = PAGE_COPY, 29 [VM_EXEC | VM_WRITE] = PAGE_COPY, 30 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 33 [VM_SHARED | VM_WRITE] = PAGE_WRITEONLY, 34 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 37 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_RWX, 38 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
|
/linux-6.1.9/arch/microblaze/mm/ |
D | init.c | 292 [VM_WRITE] = PAGE_COPY, 293 [VM_WRITE | VM_READ] = PAGE_COPY_X, 296 [VM_EXEC | VM_WRITE] = PAGE_COPY, 297 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_X, 300 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 301 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED_X, 304 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 305 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
|
/linux-6.1.9/arch/s390/mm/ |
D | mmap.c | 195 [VM_WRITE] = PAGE_RO, 196 [VM_WRITE | VM_READ] = PAGE_RO, 199 [VM_EXEC | VM_WRITE] = PAGE_RX, 200 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_RX, 203 [VM_SHARED | VM_WRITE] = PAGE_RW, 204 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_RW, 207 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_RWX, 208 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
|
/linux-6.1.9/arch/hexagon/mm/ |
D | init.c | 243 [VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 245 [VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 252 [VM_EXEC | VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 254 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 261 [VM_SHARED | VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 263 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 271 [VM_SHARED | VM_EXEC | VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 274 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
|
/linux-6.1.9/arch/csky/mm/ |
D | init.c | 204 [VM_WRITE] = PAGE_READ, 205 [VM_WRITE | VM_READ] = PAGE_READ, 208 [VM_EXEC | VM_WRITE] = PAGE_READ, 209 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_READ, 212 [VM_SHARED | VM_WRITE] = PAGE_WRITE, 213 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_WRITE, 216 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_WRITE, 217 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_WRITE
|
/linux-6.1.9/arch/loongarch/mm/ |
D | cache.c | 169 [VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID | 172 [VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 179 [VM_EXEC | VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID | 181 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 189 [VM_SHARED | VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID | 192 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 199 [VM_SHARED | VM_EXEC | VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID | 202 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
|
/linux-6.1.9/arch/um/kernel/ |
D | mem.c | 223 [VM_WRITE] = PAGE_COPY, 224 [VM_WRITE | VM_READ] = PAGE_COPY, 227 [VM_EXEC | VM_WRITE] = PAGE_COPY, 228 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 231 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 232 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 235 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 236 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
|
/linux-6.1.9/arch/alpha/mm/ |
D | init.c | 288 [VM_WRITE] = _PAGE_P(_PAGE_FOE), 289 [VM_WRITE | VM_READ] = _PAGE_P(_PAGE_FOE), 292 [VM_EXEC | VM_WRITE] = _PAGE_P(0), 293 [VM_EXEC | VM_WRITE | VM_READ] = _PAGE_P(0), 297 [VM_SHARED | VM_WRITE] = _PAGE_S(_PAGE_FOE), 298 [VM_SHARED | VM_WRITE | VM_READ] = _PAGE_S(_PAGE_FOE), 301 [VM_SHARED | VM_EXEC | VM_WRITE] = _PAGE_S(0), 302 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = _PAGE_S(0)
|
/linux-6.1.9/arch/sparc/mm/ |
D | init_32.c | 309 [VM_WRITE] = PAGE_COPY, 310 [VM_WRITE | VM_READ] = PAGE_COPY, 313 [VM_EXEC | VM_WRITE] = PAGE_COPY, 314 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 317 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 318 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 321 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 322 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
|
/linux-6.1.9/arch/powerpc/mm/ |
D | pgtable.c | 480 [VM_WRITE] = PAGE_COPY, 481 [VM_WRITE | VM_READ] = PAGE_COPY, 484 [VM_EXEC | VM_WRITE] = PAGE_COPY_X, 485 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_X, 488 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 489 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 492 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_X, 493 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
|
/linux-6.1.9/arch/ia64/mm/ |
D | init.c | 497 [VM_WRITE] = PAGE_READONLY, 498 [VM_WRITE | VM_READ] = PAGE_READONLY, 503 [VM_EXEC | VM_WRITE] = PAGE_COPY_EXEC, 504 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_EXEC, 507 [VM_SHARED | VM_WRITE] = PAGE_SHARED, 508 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 513 [VM_SHARED | VM_EXEC | VM_WRITE] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 | 515 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 |
|
D | fault.c | 95 if (mask & VM_WRITE) in ia64_do_page_fault() 121 # if (((1 << VM_READ_BIT) != VM_READ || (1 << VM_WRITE_BIT) != VM_WRITE) \ in ia64_do_page_fault() 126 if (((isr >> IA64_ISR_R_BIT) & 1UL) && (!(vma->vm_flags & (VM_READ | VM_WRITE)))) in ia64_do_page_fault()
|
/linux-6.1.9/arch/parisc/mm/ |
D | fault.c | 66 return VM_WRITE; in parisc_acctyp() 71 return VM_WRITE; in parisc_acctyp() 95 return VM_WRITE; in parisc_acctyp() 110 return VM_WRITE; in parisc_acctyp() 285 if (acc_type & VM_WRITE) in do_page_fault() 490 acc_type = (insn & 0x40) ? VM_WRITE : VM_READ; in handle_nadtlb_fault()
|
D | init.c | 878 [VM_WRITE] = PAGE_NONE, 879 [VM_WRITE | VM_READ] = PAGE_READONLY, 882 [VM_EXEC | VM_WRITE] = PAGE_EXECREAD, 883 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_EXECREAD, 886 [VM_SHARED | VM_WRITE] = PAGE_WRITEONLY, 887 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 890 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_RWX, 891 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_task_vma.c | 10 #define VM_WRITE 0x00000002 macro 44 perm_str[1] = (vma->vm_flags & VM_WRITE) ? 'w' : '-'; in proc_maps()
|
/linux-6.1.9/mm/ |
D | mprotect.c | 47 VM_BUG_ON(!(vma->vm_flags & VM_WRITE) || pte_write(pte)); in can_change_pte_writable() 587 if (newflags & VM_WRITE) { in mprotect_fixup() 592 if (!(oldflags & (VM_ACCOUNT|VM_WRITE|VM_HUGETLB| in mprotect_fixup() 643 try_change_writable = !!(vma->vm_flags & VM_WRITE); in mprotect_fixup() 653 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup() 654 (newflags & VM_WRITE)) { in mprotect_fixup() 759 mask_off_old_flags = VM_READ | VM_WRITE | VM_EXEC | in do_mprotect_pkey()
|