Lines Matching refs:tsk
42 int ptrace_access_vm(struct task_struct *tsk, unsigned long addr, in ptrace_access_vm() argument
48 mm = get_task_mm(tsk); in ptrace_access_vm()
52 if (!tsk->ptrace || in ptrace_access_vm()
53 (current != tsk->parent) || in ptrace_access_vm()
55 !ptracer_capable(tsk, mm->user_ns))) { in ptrace_access_vm()
60 ret = __access_remote_vm(tsk, mm, addr, buf, len, gup_flags); in ptrace_access_vm()
593 int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len) in ptrace_readdata() argument
602 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata()
619 int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len) in ptrace_writedata() argument
630 retval = ptrace_access_vm(tsk, dst, buf, this_len, in ptrace_writedata()
1287 int generic_ptrace_peekdata(struct task_struct *tsk, unsigned long addr, in generic_ptrace_peekdata() argument
1293 copied = ptrace_access_vm(tsk, addr, &tmp, sizeof(tmp), FOLL_FORCE); in generic_ptrace_peekdata()
1299 int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr, in generic_ptrace_pokedata() argument
1304 copied = ptrace_access_vm(tsk, addr, &data, sizeof(data), in generic_ptrace_pokedata()