Home
last modified time | relevance | path

Searched refs:VM_WRITE (Results 1 – 25 of 131) sorted by relevance

123456

/linux-6.1.9/arch/x86/mm/
Dpgprot.c11 [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/
Dmmap.c19 [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/
Dmmap.c81 [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/
Dinit.c130 [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/
Dsun3mmu.c102 [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
Dmcfmmu.c242 [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 |
Dmotorola.c397 [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/
Dinit.c215 [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/
Dinit.c224 [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/
Dmmap.c25 [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/
Dinit.c292 [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/
Dmmap.c195 [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/
Dinit.c243 [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/
Dinit.c204 [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/
Dcache.c169 [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/
Dmem.c223 [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/
Dinit.c288 [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/
Dinit_32.c309 [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/
Dpgtable.c480 [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/
Dinit.c497 [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 |
Dfault.c95 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/
Dfault.c66 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()
Dinit.c878 [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/
Dbpf_iter_task_vma.c10 #define VM_WRITE 0x00000002 macro
44 perm_str[1] = (vma->vm_flags & VM_WRITE) ? 'w' : '-'; in proc_maps()
/linux-6.1.9/mm/
Dmprotect.c47 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()

123456