/openbmc/linux/arch/x86/mm/ |
H A D | pgprot.c | 10 [VM_READ] = PAGE_READONLY, 12 [VM_WRITE | VM_READ] = PAGE_COPY, 14 [VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 16 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_EXEC, 18 [VM_SHARED | VM_READ] = PAGE_READONLY, 20 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 22 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_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()
|
/openbmc/linux/arch/arm64/mm/ |
H A D | mmap.c | 18 [VM_READ] = PAGE_READONLY, 20 [VM_WRITE | VM_READ] = PAGE_READONLY, 23 [VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 25 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_READONLY_EXEC, 27 [VM_SHARED | VM_READ] = PAGE_READONLY, 29 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 32 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_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()
|
/openbmc/linux/arch/nios2/mm/ |
H A D | init.c | 114 VM_READ | VM_EXEC | VM_MAYREAD | in arch_setup_additional_pages() 129 [VM_READ] = MKP(0, 0, 1), 131 [VM_WRITE | VM_READ] = MKP(0, 0, 1), 133 [VM_EXEC | VM_READ] = MKP(1, 0, 1), 135 [VM_EXEC | VM_WRITE | VM_READ] = MKP(1, 0, 1), 137 [VM_SHARED | VM_READ] = MKP(0, 0, 1), 139 [VM_SHARED | VM_WRITE | VM_READ] = MKP(0, 1, 1), 141 [VM_SHARED | VM_EXEC | VM_READ] = MKP(1, 0, 1), 143 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = MKP(1, 1, 1)
|
/openbmc/linux/arch/arc/mm/ |
H A D | mmap.c | 80 [VM_READ] = PAGE_U_R, 82 [VM_WRITE | VM_READ] = PAGE_U_R, 84 [VM_EXEC | VM_READ] = PAGE_U_X_R, 86 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_U_X_R, 88 [VM_SHARED | VM_READ] = PAGE_U_R, 90 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_U_W_R, 92 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_U_X_R, 94 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_U_X_W_R
|
/openbmc/linux/arch/m68k/mm/ |
H A D | sun3mmu.c | 101 [VM_READ] = PAGE_READONLY, 103 [VM_WRITE | VM_READ] = PAGE_COPY, 105 [VM_EXEC | VM_READ] = PAGE_READONLY, 107 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 109 [VM_SHARED | VM_READ] = PAGE_READONLY, 111 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 113 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY, 115 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
|
H A D | mcfmmu.c | 230 [VM_READ] = __pgprot(CF_PAGE_VALID | 236 [VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID | 243 [VM_EXEC | VM_READ] = __pgprot(CF_PAGE_VALID | 251 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID | 257 [VM_SHARED | VM_READ] = __pgprot(CF_PAGE_VALID | 261 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID | 268 [VM_SHARED | VM_EXEC | VM_READ] = __pgprot(CF_PAGE_VALID | 276 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID |
|
H A D | motorola.c | 396 [VM_READ] = PAGE_READONLY_C, 398 [VM_WRITE | VM_READ] = PAGE_COPY_C, 400 [VM_EXEC | VM_READ] = PAGE_READONLY_C, 402 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_C, 404 [VM_SHARED | VM_READ] = PAGE_READONLY_C, 406 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED_C, 408 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_C, 410 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_C
|
/openbmc/linux/arch/openrisc/mm/ |
H A D | init.c | 212 [VM_READ] = PAGE_READONLY_X, 214 [VM_WRITE | VM_READ] = PAGE_COPY_X, 216 [VM_EXEC | VM_READ] = PAGE_READONLY_X, 218 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_X, 220 [VM_SHARED | VM_READ] = PAGE_READONLY_X, 222 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED_X, 224 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_X, 226 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
|
/openbmc/linux/arch/xtensa/mm/ |
H A D | init.c | 223 [VM_READ] = PAGE_READONLY, 225 [VM_WRITE | VM_READ] = PAGE_COPY, 227 [VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 229 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_EXEC, 231 [VM_SHARED | VM_READ] = PAGE_READONLY, 233 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 235 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 237 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_EXEC
|
/openbmc/linux/arch/sh/mm/ |
H A D | mmap.c | 24 [VM_READ] = PAGE_READONLY, 26 [VM_WRITE | VM_READ] = PAGE_COPY, 28 [VM_EXEC | VM_READ] = PAGE_EXECREAD, 30 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 32 [VM_SHARED | VM_READ] = PAGE_READONLY, 34 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 36 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_EXECREAD, 38 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
|
/openbmc/linux/arch/microblaze/mm/ |
H A D | init.c | 270 [VM_READ] = PAGE_READONLY_X, 272 [VM_WRITE | VM_READ] = PAGE_COPY_X, 274 [VM_EXEC | VM_READ] = PAGE_READONLY_X, 276 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_X, 278 [VM_SHARED | VM_READ] = PAGE_READONLY_X, 280 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED_X, 282 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_X, 284 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
|
/openbmc/linux/arch/hexagon/mm/ |
H A D | init.c | 241 [VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 245 [VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 249 [VM_EXEC | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 254 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 259 [VM_SHARED | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 263 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 268 [VM_SHARED | VM_EXEC | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 274 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
|
/openbmc/linux/arch/s390/mm/ |
H A D | mmap.c | 194 [VM_READ] = PAGE_RO, 196 [VM_WRITE | VM_READ] = PAGE_RO, 198 [VM_EXEC | VM_READ] = PAGE_RX, 200 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_RX, 202 [VM_SHARED | VM_READ] = PAGE_RO, 204 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_RW, 206 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_RX, 208 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
|
/openbmc/linux/arch/csky/mm/ |
H A D | init.c | 203 [VM_READ] = PAGE_READ, 205 [VM_WRITE | VM_READ] = PAGE_READ, 207 [VM_EXEC | VM_READ] = PAGE_READ, 209 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_READ, 211 [VM_SHARED | VM_READ] = PAGE_READ, 213 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_WRITE, 215 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READ, 217 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_WRITE
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | cache.c | 165 [VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 171 [VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 176 [VM_EXEC | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 180 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 185 [VM_SHARED | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 191 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 196 [VM_SHARED | VM_EXEC | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 201 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
|
/openbmc/linux/arch/um/kernel/ |
H A D | mem.c | 222 [VM_READ] = PAGE_READONLY, 224 [VM_WRITE | VM_READ] = PAGE_COPY, 226 [VM_EXEC | VM_READ] = PAGE_READONLY, 228 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 230 [VM_SHARED | VM_READ] = PAGE_READONLY, 232 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 234 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY, 236 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
|
/openbmc/linux/arch/alpha/mm/ |
H A D | init.c | 287 [VM_READ] = _PAGE_P(_PAGE_FOE | _PAGE_FOW), 289 [VM_WRITE | VM_READ] = _PAGE_P(_PAGE_FOE), 291 [VM_EXEC | VM_READ] = _PAGE_P(_PAGE_FOW), 293 [VM_EXEC | VM_WRITE | VM_READ] = _PAGE_P(0), 296 [VM_SHARED | VM_READ] = _PAGE_S(_PAGE_FOE | _PAGE_FOW), 298 [VM_SHARED | VM_WRITE | VM_READ] = _PAGE_S(_PAGE_FOE), 300 [VM_SHARED | VM_EXEC | VM_READ] = _PAGE_S(_PAGE_FOW), 302 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = _PAGE_S(0)
|
/openbmc/linux/arch/sparc/mm/ |
H A D | init_32.c | 316 [VM_READ] = PAGE_READONLY, 318 [VM_WRITE | VM_READ] = PAGE_COPY, 320 [VM_EXEC | VM_READ] = PAGE_READONLY, 322 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 324 [VM_SHARED | VM_READ] = PAGE_READONLY, 326 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 328 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY, 330 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
|
/openbmc/linux/arch/ia64/mm/ |
H A D | init.c | 144 vm_flags_init(vma, VM_READ | VM_MAYREAD | VM_IO | in ia64_init_addr_space() 289 vm_flags_init(&gate_vma, VM_READ | VM_MAYREAD | VM_EXEC | VM_MAYEXEC); in gate_vma_init() 510 [VM_READ] = PAGE_READONLY, 512 [VM_WRITE | VM_READ] = PAGE_READONLY, 515 [VM_EXEC | VM_READ] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 | 518 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_EXEC, 520 [VM_SHARED | VM_READ] = PAGE_READONLY, 522 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 525 [VM_SHARED | VM_EXEC | VM_READ] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 | 529 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 |
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | pgtable.c | 505 [VM_READ] = PAGE_READONLY, 507 [VM_WRITE | VM_READ] = PAGE_COPY, 509 [VM_EXEC | VM_READ] = PAGE_READONLY_X, 511 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_X, 513 [VM_SHARED | VM_READ] = PAGE_READONLY, 515 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 517 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_X, 519 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
|
/openbmc/linux/arch/parisc/mm/ |
H A D | fault.c | 62 return VM_READ; in parisc_acctyp() 94 return VM_READ; in parisc_acctyp() 112 return VM_READ; /* Default */ in parisc_acctyp() 114 return VM_READ; /* Default */ in parisc_acctyp() 165 if (parisc_acctyp(0, regs->iir) == VM_READ) { in fixup_exception() 500 acc_type = (insn & 0x40) ? VM_WRITE : VM_READ; in handle_nadtlb_fault()
|
H A D | init.c | 977 [VM_READ] = PAGE_READONLY, 979 [VM_WRITE | VM_READ] = PAGE_READONLY, 981 [VM_EXEC | VM_READ] = PAGE_EXECREAD, 983 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_EXECREAD, 985 [VM_SHARED | VM_READ] = PAGE_READONLY, 987 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED, 989 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_EXECREAD, 991 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
|
/openbmc/linux/arch/mips/kernel/ |
H A D | vdso.c | 103 VM_READ | VM_EXEC | in arch_setup_additional_pages() 152 VM_READ | VM_MAYREAD, in arch_setup_additional_pages() 179 VM_READ | VM_EXEC | in arch_setup_additional_pages()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_task_vma.c | 9 #define VM_READ 0x00000001 macro 43 perm_str[0] = (vma->vm_flags & VM_READ) ? 'r' : '-'; in proc_maps()
|
/openbmc/linux/arch/csky/kernel/ |
H A D | vdso.c | 80 (VM_READ | VM_EXEC | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC), in arch_setup_additional_pages() 90 (VM_READ | VM_MAYREAD), &vdso_pagelist[vdso_pages]); in arch_setup_additional_pages()
|