Home
last modified time | relevance | path

Searched refs:vm_flags (Results 1 – 25 of 268) sorted by relevance

1234567891011

/linux-6.3-rc2/include/trace/events/
A Dfs_dax.h18 __field(unsigned long, vm_flags)
31 __entry->vm_flags = vmf->vma->vm_flags;
43 __entry->vm_flags & VM_SHARED ? "shared" : "private",
70 __field(unsigned long, vm_flags)
79 __entry->vm_flags = vmf->vma->vm_flags;
111 __field(unsigned long, vm_flags)
122 __entry->vm_flags = vmf->vma->vm_flags;
158 __field(unsigned long, vm_flags)
168 __entry->vm_flags = vmf->vma->vm_flags;
202 __field(unsigned long, vm_flags)
[all …]
/linux-6.3-rc2/mm/
A Dmmap.c91 unsigned long vm_flags = vma->vm_flags; in vma_set_page_prot() local
96 vm_flags &= ~VM_SHARED; in vma_set_page_prot()
760 if ((vma->vm_flags ^ vm_flags) & ~VM_SOFTDIRTY) in is_mergeable_vma()
1048 !((a->vm_flags ^ b->vm_flags) & ~(VM_ACCESS_FLAGS | VM_SOFTDIRTY)) && in anon_vma_compatible()
1198 vm_flags_t vm_flags; in do_mmap() local
1456 vm_flags_t vm_flags = vma->vm_flags; in vma_wants_writenotify() local
2510 vm_flags |= VM_ACCOUNT; in mmap_region()
2591 if (unlikely(vm_flags != vma->vm_flags && prev)) { in mmap_region()
2608 vm_flags = vma->vm_flags; in mmap_region()
2613 vm_flags = vma->vm_flags; in mmap_region()
[all …]
A Dnommu.c841 unsigned long vm_flags; in determine_vm_flags() local
867 vm_flags |= VM_MAYOVERLAY; in determine_vm_flags()
870 vm_flags |= VM_SHARED | VM_MAYSHARE | in determine_vm_flags()
874 return vm_flags; in determine_vm_flags()
954 region->vm_flags = vma->vm_flags; in do_mmap_private()
1012 vm_flags_t vm_flags; in do_mmap() local
1048 region->vm_flags = vm_flags; in do_mmap()
1051 vm_flags_init(vma, vm_flags); in do_mmap()
1625 if (!(vma->vm_flags & VM_USERMAP)) in remap_vmalloc_range()
1752 if (vma->vm_flags & VM_SHARED) { in nommu_shrink_inode_mappings()
[all …]
A Dmremap.c580 unsigned long vm_flags = vma->vm_flags; in move_vma() local
617 MADV_UNMERGEABLE, &vm_flags); in move_vma()
621 if (vm_flags & VM_ACCOUNT) { in move_vma()
630 if (vm_flags & VM_ACCOUNT) in move_vma()
685 if (unlikely(vma->vm_flags & VM_PFNMAP)) in move_vma()
712 if (vm_flags & VM_LOCKED) { in move_vma()
780 if (!may_expand_vm(mm, vma->vm_flags, in vma_to_resize()
854 if (vma->vm_flags & VM_MAYSHARE) in mremap_to()
1029 if (vma->vm_flags & VM_ACCOUNT) { in SYSCALL_DEFINE5()
1067 if (vma->vm_flags & VM_LOCKED) { in SYSCALL_DEFINE5()
[all …]
A Dmprotect.c47 if (WARN_ON_ONCE(!(vma->vm_flags & VM_WRITE))) in can_change_pte_writable()
62 if (!(vma->vm_flags & VM_SHARED)) { in can_change_pte_writable()
114 if (prot_numa && !(vma->vm_flags & VM_SHARED) && in change_pte_range()
143 if (is_cow_mapping(vma->vm_flags) && in change_pte_range()
593 unsigned long oldflags = vma->vm_flags; in mprotect_fixup()
611 (vma->vm_flags & (VM_PFNMAP|VM_MIXEDMAP)) && in mprotect_fixup()
650 VM_WARN_ON((vma->vm_flags ^ newflags) & ~VM_SOFTDIRTY); in mprotect_fixup()
755 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_mprotect_pkey()
763 if (!(vma->vm_flags & VM_GROWSUP)) in do_mprotect_pkey()
786 if (rier && (vma->vm_flags & VM_MAYEXEC)) in do_mprotect_pkey()
[all …]
/linux-6.3-rc2/arch/powerpc/include/asm/book3s/64/
A Dhash-pkey.h8 static inline u64 hash__vmflag_to_pte_pkey_bits(u64 vm_flags) in hash__vmflag_to_pte_pkey_bits() argument
10 return (((vm_flags & VM_PKEY_BIT0) ? H_PTE_PKEY_BIT0 : 0x0UL) | in hash__vmflag_to_pte_pkey_bits()
11 ((vm_flags & VM_PKEY_BIT1) ? H_PTE_PKEY_BIT1 : 0x0UL) | in hash__vmflag_to_pte_pkey_bits()
12 ((vm_flags & VM_PKEY_BIT2) ? H_PTE_PKEY_BIT2 : 0x0UL) | in hash__vmflag_to_pte_pkey_bits()
13 ((vm_flags & VM_PKEY_BIT3) ? H_PTE_PKEY_BIT3 : 0x0UL) | in hash__vmflag_to_pte_pkey_bits()
14 ((vm_flags & VM_PKEY_BIT4) ? H_PTE_PKEY_BIT4 : 0x0UL)); in hash__vmflag_to_pte_pkey_bits()
A Dpkeys.h8 static inline u64 vmflag_to_pte_pkey_bits(u64 vm_flags) in vmflag_to_pte_pkey_bits() argument
15 return hash__vmflag_to_pte_pkey_bits(vm_flags); in vmflag_to_pte_pkey_bits()
/linux-6.3-rc2/arch/sparc/include/asm/
A Dmman.h57 #define arch_validate_flags(vm_flags) arch_validate_flags(vm_flags) argument
61 static inline bool arch_validate_flags(unsigned long vm_flags) in arch_validate_flags() argument
67 if (vm_flags & VM_SPARC_ADI) { in arch_validate_flags()
72 if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP)) in arch_validate_flags()
83 if (vm_flags & VM_MERGEABLE) in arch_validate_flags()
/linux-6.3-rc2/arch/x86/mm/
A Dpgprot.c35 pgprot_t vm_get_page_prot(unsigned long vm_flags) in vm_get_page_prot() argument
37 unsigned long val = pgprot_val(protection_map[vm_flags & in vm_get_page_prot()
48 if (vm_flags & VM_PKEY_BIT0) in vm_get_page_prot()
50 if (vm_flags & VM_PKEY_BIT1) in vm_get_page_prot()
52 if (vm_flags & VM_PKEY_BIT2) in vm_get_page_prot()
54 if (vm_flags & VM_PKEY_BIT3) in vm_get_page_prot()
/linux-6.3-rc2/include/linux/
A Duserfaultfd_k.h99 return vma->vm_flags & (VM_UFFD_WP | VM_UFFD_MINOR); in uffd_disable_huge_pmd_share()
111 return vma->vm_flags & (VM_UFFD_WP | VM_UFFD_MINOR); in uffd_disable_fault_around()
116 return vma->vm_flags & VM_UFFD_MISSING; in userfaultfd_missing()
121 return vma->vm_flags & VM_UFFD_WP; in userfaultfd_wp()
126 return vma->vm_flags & VM_UFFD_MINOR; in userfaultfd_minor()
143 return vma->vm_flags & __VM_UFFD_FLAGS; in userfaultfd_armed()
147 unsigned long vm_flags) in vma_can_userfault() argument
149 if ((vm_flags & VM_UFFD_MINOR) && in vma_can_userfault()
158 if ((vm_flags & VM_UFFD_WP) && !vma_is_anonymous(vma)) in vma_can_userfault()
A Dmman.h179 static inline bool map_deny_write_exec(struct vm_area_struct *vma, unsigned long vm_flags) in map_deny_write_exec() argument
184 if ((vm_flags & VM_EXEC) && (vm_flags & VM_WRITE)) in map_deny_write_exec()
187 if (!(vma->vm_flags & VM_EXEC) && (vm_flags & VM_EXEC)) in map_deny_write_exec()
/linux-6.3-rc2/arch/arm64/include/asm/
A Dmman.h53 static inline bool arch_validate_flags(unsigned long vm_flags) in arch_validate_flags() argument
59 return !(vm_flags & VM_MTE) || (vm_flags & VM_MTE_ALLOWED); in arch_validate_flags()
61 #define arch_validate_flags(vm_flags) arch_validate_flags(vm_flags) argument
/linux-6.3-rc2/arch/arm64/mm/
A Dmmap.c80 pgprot_t vm_get_page_prot(unsigned long vm_flags) in vm_get_page_prot() argument
82 pteval_t prot = pgprot_val(protection_map[vm_flags & in vm_get_page_prot()
85 if (vm_flags & VM_ARM64_BTI) in vm_get_page_prot()
98 if (vm_flags & VM_MTE) in vm_get_page_prot()
A Dfault.c487 unsigned int mm_flags, unsigned long vm_flags, in __do_page_fault() argument
500 if (!(vma->vm_flags & VM_GROWSDOWN)) in __do_page_fault()
510 if (!(vma->vm_flags & vm_flags)) in __do_page_fault()
535 unsigned long vm_flags; in do_page_fault() local
560 vm_flags = VM_EXEC; in do_page_fault()
564 vm_flags = VM_WRITE; in do_page_fault()
568 vm_flags = VM_READ; in do_page_fault()
570 vm_flags |= VM_WRITE; in do_page_fault()
573 vm_flags |= VM_EXEC; in do_page_fault()
612 fault = __do_page_fault(mm, addr, mm_flags, vm_flags, regs); in do_page_fault()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dbpf_iter_task_vma.c43 perm_str[0] = (vma->vm_flags & VM_READ) ? 'r' : '-'; in proc_maps()
44 perm_str[1] = (vma->vm_flags & VM_WRITE) ? 'w' : '-'; in proc_maps()
45 perm_str[2] = (vma->vm_flags & VM_EXEC) ? 'x' : '-'; in proc_maps()
46 perm_str[3] = (vma->vm_flags & VM_MAYSHARE) ? 's' : 'p'; in proc_maps()
/linux-6.3-rc2/arch/hexagon/mm/
A Dvm_fault.c68 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
80 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault()
84 if (!(vma->vm_flags & VM_READ)) in do_page_fault()
88 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
/linux-6.3-rc2/arch/nios2/mm/
A Dcacheflush.c88 if (!(mpnt->vm_flags & VM_MAYSHARE)) in flush_aliases()
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()
A Dfault.c101 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
118 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault()
122 if (!(vma->vm_flags & VM_READ)) in do_page_fault()
126 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
/linux-6.3-rc2/fs/
A Duserfaultfd.c647 vma->vm_flags & ~__VM_UFFD_FLAGS); in userfaultfd_event_wait_completion()
1300 unsigned long vm_flags, new_flags; in userfaultfd_register() local
1318 vm_flags = 0; in userfaultfd_register()
1320 vm_flags |= VM_UFFD_MISSING; in userfaultfd_register()
1325 vm_flags |= VM_UFFD_WP; in userfaultfd_register()
1331 vm_flags |= VM_UFFD_MINOR; in userfaultfd_register()
1378 if (!vma_can_userfault(cur, vm_flags)) in userfaultfd_register()
1406 if ((vm_flags & VM_UFFD_WP) && !(cur->vm_flags & VM_MAYWRITE)) in userfaultfd_register()
1440 WARN_ON(!(vma->vm_flags & VM_MAYWRITE)); in userfaultfd_register()
1447 (vma->vm_flags & vm_flags) == vm_flags) in userfaultfd_register()
[all …]
/linux-6.3-rc2/arch/sparc/mm/
A Dfault_32.c159 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_sparc_fault()
170 if (!(vma->vm_flags & VM_WRITE)) in do_sparc_fault()
174 if (!(vma->vm_flags & (VM_READ | VM_EXEC))) in do_sparc_fault()
330 if (!(vma->vm_flags & VM_GROWSDOWN)) in force_user_fault()
337 if (!(vma->vm_flags & VM_WRITE)) in force_user_fault()
341 if (!(vma->vm_flags & (VM_READ | VM_EXEC))) in force_user_fault()
/linux-6.3-rc2/arch/alpha/mm/
A Dfault.c128 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
138 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault()
142 if (!(vma->vm_flags & (VM_READ | VM_WRITE))) in do_page_fault()
145 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
/linux-6.3-rc2/arch/ia64/mm/
A Dfault.c126 if (((isr >> IA64_ISR_R_BIT) & 1UL) && (!(vma->vm_flags & (VM_READ | VM_WRITE)))) in ia64_do_page_fault()
129 if ((vma->vm_flags & mask) != mask) in ia64_do_page_fault()
181 if (!(prev_vma && (prev_vma->vm_flags & VM_GROWSUP) && (address == prev_vma->vm_end))) { in ia64_do_page_fault()
184 if (!(vma->vm_flags & VM_GROWSDOWN)) in ia64_do_page_fault()
/linux-6.3-rc2/arch/loongarch/mm/
A Dfault.c178 if (!(vma->vm_flags & VM_GROWSDOWN)) in __do_page_fault()
200 if (!(vma->vm_flags & VM_WRITE)) in __do_page_fault()
203 if (!(vma->vm_flags & VM_READ) && address != exception_era(regs)) in __do_page_fault()
205 if (!(vma->vm_flags & VM_EXEC) && address == exception_era(regs)) in __do_page_fault()
/linux-6.3-rc2/drivers/sbus/char/
A Dflash.c44 if ((vma->vm_flags & VM_READ) && in flash_mmap()
45 (vma->vm_flags & VM_WRITE)) { in flash_mmap()
49 if (vma->vm_flags & VM_READ) { in flash_mmap()
52 } else if (vma->vm_flags & VM_WRITE) { in flash_mmap()
/linux-6.3-rc2/arch/xtensa/mm/
A Dfault.c140 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
153 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
157 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault()
160 if (!(vma->vm_flags & (VM_READ | VM_WRITE))) in do_page_fault()

Completed in 63 milliseconds

1234567891011