/Linux-v6.1/arch/arm64/mm/ |
D | mmap.c | 22 [VM_EXEC] = PAGE_READONLY_EXEC, 23 [VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 24 [VM_EXEC | VM_WRITE] = PAGE_READONLY_EXEC, 25 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_READONLY_EXEC, 31 [VM_SHARED | VM_EXEC] = PAGE_READONLY_EXEC, 32 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 33 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_EXEC, 34 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_EXEC 72 protection_map[VM_EXEC] = PAGE_EXECONLY; in adjust_protection_map() 73 protection_map[VM_EXEC | VM_SHARED] = PAGE_EXECONLY; in adjust_protection_map() [all …]
|
/Linux-v6.1/arch/x86/mm/ |
D | pgprot.c | 13 [VM_EXEC] = PAGE_READONLY_EXEC, 14 [VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 15 [VM_EXEC | VM_WRITE] = PAGE_COPY_EXEC, 16 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_EXEC, 21 [VM_SHARED | VM_EXEC] = PAGE_READONLY_EXEC, 22 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 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-v6.1/arch/nios2/mm/ |
D | init.c | 114 VM_READ | VM_EXEC | VM_MAYREAD | in arch_setup_additional_pages() 132 [VM_EXEC] = MKP(1, 0, 0), 133 [VM_EXEC | VM_READ] = MKP(1, 0, 1), 134 [VM_EXEC | VM_WRITE] = MKP(1, 0, 0), 135 [VM_EXEC | VM_WRITE | VM_READ] = MKP(1, 0, 1), 140 [VM_SHARED | VM_EXEC] = MKP(1, 0, 0), 141 [VM_SHARED | VM_EXEC | VM_READ] = MKP(1, 0, 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)
|
D | cacheflush.c | 137 if (vma == NULL || (vma->vm_flags & VM_EXEC)) in flush_cache_range() 157 if (vma->vm_flags & VM_EXEC) in flush_cache_page() 229 if (vma->vm_flags & VM_EXEC) in update_mmu_cache() 260 if (vma->vm_flags & VM_EXEC) in copy_from_user_page() 271 if (vma->vm_flags & VM_EXEC) in copy_to_user_page()
|
/Linux-v6.1/arch/arc/mm/ |
D | mmap.c | 83 [VM_EXEC] = PAGE_U_X_R, 84 [VM_EXEC | VM_READ] = PAGE_U_X_R, 85 [VM_EXEC | VM_WRITE] = PAGE_U_X_R, 86 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_U_X_R, 91 [VM_SHARED | VM_EXEC] = PAGE_U_X_R, 92 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_U_X_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-v6.1/arch/m68k/mm/ |
D | sun3mmu.c | 104 [VM_EXEC] = PAGE_READONLY, 105 [VM_EXEC | VM_READ] = PAGE_READONLY, 106 [VM_EXEC | VM_WRITE] = PAGE_COPY, 107 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 112 [VM_SHARED | VM_EXEC] = PAGE_READONLY, 113 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY, 114 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 115 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
|
D | mcfmmu.c | 249 [VM_EXEC] = __pgprot(CF_PAGE_VALID | 252 [VM_EXEC | 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 | 274 [VM_SHARED | VM_EXEC] = __pgprot(CF_PAGE_VALID | 277 [VM_SHARED | VM_EXEC | 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 | 399 [VM_EXEC] = PAGE_READONLY_C, 400 [VM_EXEC | VM_READ] = PAGE_READONLY_C, 401 [VM_EXEC | VM_WRITE] = PAGE_COPY_C, 402 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_C, 407 [VM_SHARED | VM_EXEC] = PAGE_READONLY_C, 408 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_C, 409 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_C, 410 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_C
|
/Linux-v6.1/arch/openrisc/mm/ |
D | init.c | 217 [VM_EXEC] = PAGE_READONLY, 218 [VM_EXEC | VM_READ] = PAGE_READONLY_X, 219 [VM_EXEC | VM_WRITE] = PAGE_COPY, 220 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_X, 225 [VM_SHARED | VM_EXEC] = PAGE_READONLY, 226 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_X, 227 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 228 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
|
/Linux-v6.1/arch/xtensa/mm/ |
D | init.c | 226 [VM_EXEC] = PAGE_READONLY_EXEC, 227 [VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 228 [VM_EXEC | VM_WRITE] = PAGE_COPY_EXEC, 229 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_EXEC, 234 [VM_SHARED | VM_EXEC] = PAGE_READONLY_EXEC, 235 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_EXEC, 236 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_EXEC, 237 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_EXEC
|
/Linux-v6.1/arch/sh/mm/ |
D | mmap.c | 27 [VM_EXEC] = PAGE_EXECREAD, 28 [VM_EXEC | VM_READ] = PAGE_EXECREAD, 29 [VM_EXEC | VM_WRITE] = PAGE_COPY, 30 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 35 [VM_SHARED | VM_EXEC] = PAGE_EXECREAD, 36 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_EXECREAD, 37 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_RWX, 38 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
|
/Linux-v6.1/arch/microblaze/mm/ |
D | init.c | 294 [VM_EXEC] = PAGE_READONLY, 295 [VM_EXEC | VM_READ] = PAGE_READONLY_X, 296 [VM_EXEC | VM_WRITE] = PAGE_COPY, 297 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_X, 302 [VM_SHARED | VM_EXEC] = PAGE_READONLY, 303 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_X, 304 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 305 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
|
/Linux-v6.1/arch/csky/mm/ |
D | init.c | 206 [VM_EXEC] = PAGE_READ, 207 [VM_EXEC | VM_READ] = PAGE_READ, 208 [VM_EXEC | VM_WRITE] = PAGE_READ, 209 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_READ, 214 [VM_SHARED | VM_EXEC] = PAGE_READ, 215 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READ, 216 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_WRITE, 217 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_WRITE
|
/Linux-v6.1/arch/hexagon/mm/ |
D | init.c | 247 [VM_EXEC] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 249 [VM_EXEC | 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 | 266 [VM_SHARED | VM_EXEC] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 268 [VM_SHARED | VM_EXEC | 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-v6.1/arch/s390/mm/ |
D | mmap.c | 197 [VM_EXEC] = PAGE_RX, 198 [VM_EXEC | VM_READ] = PAGE_RX, 199 [VM_EXEC | VM_WRITE] = PAGE_RX, 200 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_RX, 205 [VM_SHARED | VM_EXEC] = PAGE_RX, 206 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_RX, 207 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_RWX, 208 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
|
/Linux-v6.1/arch/um/kernel/ |
D | mem.c | 225 [VM_EXEC] = PAGE_READONLY, 226 [VM_EXEC | VM_READ] = PAGE_READONLY, 227 [VM_EXEC | VM_WRITE] = PAGE_COPY, 228 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 233 [VM_SHARED | VM_EXEC] = PAGE_READONLY, 234 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY, 235 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 236 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
|
/Linux-v6.1/arch/loongarch/mm/ |
D | cache.c | 175 [VM_EXEC] = __pgprot(_CACHE_CC | _PAGE_VALID | 177 [VM_EXEC | 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 | 195 [VM_SHARED | VM_EXEC] = __pgprot(_CACHE_CC | _PAGE_VALID | 197 [VM_SHARED | VM_EXEC | 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-v6.1/arch/alpha/mm/ |
D | init.c | 290 [VM_EXEC] = _PAGE_P(_PAGE_FOW | _PAGE_FOR), 291 [VM_EXEC | VM_READ] = _PAGE_P(_PAGE_FOW), 292 [VM_EXEC | VM_WRITE] = _PAGE_P(0), 293 [VM_EXEC | VM_WRITE | VM_READ] = _PAGE_P(0), 299 [VM_SHARED | VM_EXEC] = _PAGE_S(_PAGE_FOW | _PAGE_FOR), 300 [VM_SHARED | VM_EXEC | VM_READ] = _PAGE_S(_PAGE_FOW), 301 [VM_SHARED | VM_EXEC | VM_WRITE] = _PAGE_S(0), 302 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = _PAGE_S(0)
|
/Linux-v6.1/arch/sparc/mm/ |
D | init_32.c | 311 [VM_EXEC] = PAGE_READONLY, 312 [VM_EXEC | VM_READ] = PAGE_READONLY, 313 [VM_EXEC | VM_WRITE] = PAGE_COPY, 314 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY, 319 [VM_SHARED | VM_EXEC] = PAGE_READONLY, 320 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY, 321 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED, 322 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
|
/Linux-v6.1/arch/ia64/mm/ |
D | init.c | 275 gate_vma.vm_flags = VM_READ | VM_MAYREAD | VM_EXEC | VM_MAYEXEC; in gate_vma_init() 499 [VM_EXEC] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 | 501 [VM_EXEC | VM_READ] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 | 503 [VM_EXEC | VM_WRITE] = PAGE_COPY_EXEC, 504 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_EXEC, 509 [VM_SHARED | VM_EXEC] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 | 511 [VM_SHARED | VM_EXEC | VM_READ] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 | 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 |
|
/Linux-v6.1/arch/powerpc/mm/ |
D | pgtable.c | 166 if (WARN_ON(!(vma->vm_flags & VM_EXEC))) in set_access_flags_filter() 482 [VM_EXEC] = PAGE_READONLY_X, 483 [VM_EXEC | VM_READ] = PAGE_READONLY_X, 484 [VM_EXEC | VM_WRITE] = PAGE_COPY_X, 485 [VM_EXEC | VM_WRITE | VM_READ] = PAGE_COPY_X, 490 [VM_SHARED | VM_EXEC] = PAGE_READONLY_X, 491 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_X, 492 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_X, 493 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
|
/Linux-v6.1/arch/arm/mm/ |
D | cache-v4wt.S | 66 mov r2, #VM_EXEC 69 tst r2, #VM_EXEC 90 tst r2, #VM_EXEC
|
D | cache-fa.S | 64 mov r2, #VM_EXEC 67 tst r2, #VM_EXEC 90 1: tst r2, #VM_EXEC 96 tst r2, #VM_EXEC
|
/Linux-v6.1/arch/csky/abiv1/ |
D | cacheflush.c | 54 if (vma->vm_flags & VM_EXEC) in update_mmu_cache() 64 if (vma->vm_flags & VM_EXEC) in flush_cache_range()
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | find_vma.c | 13 #define VM_EXEC 0x00000004 macro 31 if (vma->vm_flags & VM_EXEC) in check_vma()
|