Lines Matching refs:mm
46 struct mm_struct *mm; in ptrace_access_vm() local
49 mm = get_task_mm(tsk); in ptrace_access_vm()
50 if (!mm) in ptrace_access_vm()
55 ((get_dumpable(mm) != SUID_DUMP_USER) && in ptrace_access_vm()
56 !ptracer_capable(tsk, mm->user_ns))) { in ptrace_access_vm()
57 mmput(mm); in ptrace_access_vm()
61 ret = __access_remote_vm(mm, addr, buf, len, gup_flags); in ptrace_access_vm()
62 mmput(mm); in ptrace_access_vm()
289 struct mm_struct *mm; in __ptrace_may_access() local
350 mm = task->mm; in __ptrace_may_access()
351 if (mm && in __ptrace_may_access()
352 ((get_dumpable(mm) != SUID_DUMP_USER) && in __ptrace_may_access()
353 !ptrace_has_cap(mm->user_ns, mode))) in __ptrace_may_access()
1184 struct mm_struct *mm = get_task_mm(child); in ptrace_request() local
1188 if (!mm) in ptrace_request()
1193 tmp = mm->context.exec_fdpic_loadmap; in ptrace_request()
1196 tmp = mm->context.interp_fdpic_loadmap; in ptrace_request()
1201 mmput(mm); in ptrace_request()