/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | mmu_context.h | 60 int ldt_dup_context(struct mm_struct *oldmm, struct mm_struct *mm); 65 static inline int ldt_dup_context(struct mm_struct *oldmm, in ldt_dup_context() argument 94 static inline void dup_lam(struct mm_struct *oldmm, struct mm_struct *mm) in dup_lam() argument 96 mm->context.lam_cr3_mask = oldmm->context.lam_cr3_mask; in dup_lam() 97 mm->context.untag_mask = oldmm->context.untag_mask; in dup_lam() 124 static inline void dup_lam(struct mm_struct *oldmm, struct mm_struct *mm) in dup_lam() argument 195 static inline void arch_dup_pkeys(struct mm_struct *oldmm, in arch_dup_pkeys() argument 202 /* Duplicate the oldmm pkey state in mm: */ in arch_dup_pkeys() 203 mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map; in arch_dup_pkeys() 204 mm->context.execute_only_pkey = oldmm in arch_dup_pkeys() 208 arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) arch_dup_mmap() argument [all...] |
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | mmu_context.h | 66 int ldt_dup_context(struct mm_struct *oldmm, struct mm_struct *mm); 71 static inline int ldt_dup_context(struct mm_struct *oldmm, in ldt_dup_context() argument 150 static inline void arch_dup_pkeys(struct mm_struct *oldmm, in arch_dup_pkeys() argument 157 /* Duplicate the oldmm pkey state in mm: */ in arch_dup_pkeys() 158 mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map; in arch_dup_pkeys() 159 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys() 163 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument 165 arch_dup_pkeys(oldmm, mm); in arch_dup_mmap() 166 paravirt_arch_dup_mmap(oldmm, mm); in arch_dup_mmap() 167 return ldt_dup_context(oldmm, m in arch_dup_mmap() [all...] |
H A D | paravirt.h | 318 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, in paravirt_arch_dup_mmap() argument 321 PVOP_VCALL2(mmu.dup_mmap, oldmm, mm); in paravirt_arch_dup_mmap() 813 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, in paravirt_arch_dup_mmap() argument
|
H A D | paravirt_types.h | 221 void (*dup_mmap)(struct mm_struct *oldmm,
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | khugepaged.h | 30 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument 32 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork() 42 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
|
H A D | ksm.h | 46 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument 50 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) { in ksm_fork() 56 if (test_bit(MMF_VM_MERGE_ANY, &oldmm->flags)) in ksm_fork() 105 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
|
H A D | uprobes.h | 121 extern void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm); 184 uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | ksm.h | 27 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument 29 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) in ksm_fork() 59 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
|
H A D | khugepaged.h | 43 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument 45 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork() 70 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
|
H A D | uprobes.h | 121 extern void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm); 184 uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | mmu_context.h | 272 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm); 285 #define arch_dup_pkeys(oldmm, mm) 294 static inline int arch_dup_mmap(struct mm_struct *oldmm, 297 arch_dup_pkeys(oldmm, mm);
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | mmu_context.h | 275 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm); 285 #define arch_dup_pkeys(oldmm, mm) 294 static inline int arch_dup_mmap(struct mm_struct *oldmm, 297 arch_dup_pkeys(oldmm, mm);
|
/kernel/linux/linux-6.6/kernel/ |
H A D | fork.c | 634 static void dup_mm_exe_file(struct mm_struct *mm, struct mm_struct *oldmm) in dup_mm_exe_file() argument 638 exe_file = get_mm_exe_file(oldmm); in dup_mm_exe_file() 641 * We depend on the oldmm having properly denied write access to the in dup_mm_exe_file() 650 struct mm_struct *oldmm) in dup_mmap() 656 VMA_ITERATOR(old_vmi, oldmm, 0); in dup_mmap() 660 if (mmap_write_lock_killable(oldmm)) { in dup_mmap() 664 flush_cache_dup_mm(oldmm); in dup_mmap() 665 uprobe_dup_mmap(oldmm, mm); in dup_mmap() 672 dup_mm_exe_file(mm, oldmm); in dup_mmap() 674 mm->total_vm = oldmm in dup_mmap() 649 dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) dup_mmap() argument 815 dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) dup_mmap() argument 1685 dup_mm(struct task_struct *tsk, struct mm_struct *oldmm) dup_mm() argument 1724 struct mm_struct *mm, *oldmm; copy_mm() local [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | fork.c | 481 struct mm_struct *oldmm) in dup_mmap() 490 if (mmap_write_lock_killable(oldmm)) { in dup_mmap() 494 flush_cache_dup_mm(oldmm); in dup_mmap() 495 uprobe_dup_mmap(oldmm, mm); in dup_mmap() 502 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); in dup_mmap() 504 mm->total_vm = oldmm->total_vm; in dup_mmap() 505 mm->data_vm = oldmm->data_vm; in dup_mmap() 506 mm->exec_vm = oldmm->exec_vm; in dup_mmap() 507 mm->stack_vm = oldmm->stack_vm; in dup_mmap() 512 retval = ksm_fork(mm, oldmm); in dup_mmap() 480 dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) dup_mmap() argument 647 dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) dup_mmap() argument 1382 dup_mm(struct task_struct *tsk, struct mm_struct *oldmm) dup_mm() argument 1421 struct mm_struct *mm, *oldmm; copy_mm() local [all...] |
/kernel/linux/linux-5.10/drivers/oprofile/ |
H A D | buffer_sync.c | 496 struct mm_struct *oldmm; in sync_buffer() local 537 oldmm = mm; in sync_buffer() 538 release_mm(oldmm); in sync_buffer() 540 if (mm != oldmm) in sync_buffer()
|
/kernel/linux/linux-5.10/include/asm-generic/ |
H A D | mm_hooks.h | 10 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
|
/kernel/linux/linux-6.6/include/asm-generic/ |
H A D | mm_hooks.h | 10 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
|
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
H A D | pkeys.c | 439 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_pkeys() argument 444 /* Duplicate the oldmm pkey state in mm: */ in arch_dup_pkeys() 445 mm_pkey_allocation_map(mm) = mm_pkey_allocation_map(oldmm); in arch_dup_pkeys() 446 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
|
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/ |
H A D | pkeys.c | 460 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_pkeys() argument 465 /* Duplicate the oldmm pkey state in mm: */ in arch_dup_pkeys() 466 mm_pkey_allocation_map(mm) = mm_pkey_allocation_map(oldmm); in arch_dup_pkeys() 467 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
|
/kernel/linux/linux-5.10/arch/um/include/asm/ |
H A D | mmu_context.h | 19 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
|
/kernel/linux/linux-5.10/kernel/events/ |
H A D | uprobes.c | 1572 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument 1574 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { in uprobe_dup_mmap()
|
/kernel/linux/linux-6.6/kernel/events/ |
H A D | uprobes.c | 1567 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument 1569 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { in uprobe_dup_mmap()
|
/kernel/linux/linux-5.10/arch/x86/xen/ |
H A D | mmu_pv.c | 889 static void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in xen_dup_mmap() argument
|