Lines Matching refs:task1
100 static int kcmp_epoll_target(struct task_struct *task1, in kcmp_epoll_target() argument
111 filp = get_file_raw_ptr(task1, idx1); in kcmp_epoll_target()
128 static int kcmp_epoll_target(struct task_struct *task1, in kcmp_epoll_target() argument
140 struct task_struct *task1, *task2; in SYSCALL_DEFINE5() local
148 task1 = find_task_by_vpid(pid1); in SYSCALL_DEFINE5()
150 if (!task1 || !task2) in SYSCALL_DEFINE5()
153 get_task_struct(task1); in SYSCALL_DEFINE5()
161 ret = kcmp_lock(&task1->signal->exec_update_lock, in SYSCALL_DEFINE5()
165 if (!ptrace_may_access(task1, PTRACE_MODE_READ_REALCREDS) || in SYSCALL_DEFINE5()
175 filp1 = get_file_raw_ptr(task1, idx1); in SYSCALL_DEFINE5()
185 ret = kcmp_ptr(task1->mm, task2->mm, KCMP_VM); in SYSCALL_DEFINE5()
188 ret = kcmp_ptr(task1->files, task2->files, KCMP_FILES); in SYSCALL_DEFINE5()
191 ret = kcmp_ptr(task1->fs, task2->fs, KCMP_FS); in SYSCALL_DEFINE5()
194 ret = kcmp_ptr(task1->sighand, task2->sighand, KCMP_SIGHAND); in SYSCALL_DEFINE5()
197 ret = kcmp_ptr(task1->io_context, task2->io_context, KCMP_IO); in SYSCALL_DEFINE5()
201 ret = kcmp_ptr(task1->sysvsem.undo_list, in SYSCALL_DEFINE5()
209 ret = kcmp_epoll_target(task1, task2, idx1, (void *)idx2); in SYSCALL_DEFINE5()
217 kcmp_unlock(&task1->signal->exec_update_lock, in SYSCALL_DEFINE5()
220 put_task_struct(task1); in SYSCALL_DEFINE5()