From: Oleg Nesterov Date: Wed, 17 Jun 2009 23:27:29 +0000 (-0700) Subject: ptrace: tracehook_unsafe_exec(): remove the stale comment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1c216279539bd65c5a3d497e25d441dbddbcf1ec;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ptrace: tracehook_unsafe_exec(): remove the stale comment tracehook_unsafe_exec() doesn't need task_lock(), remove the old comment. Signed-off-by: Oleg Nesterov Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index eb96603d92db..17ba82efa483 100644 --- a/include/linux/tracehook.h +++ b/include/linux/tracehook.h @@ -143,7 +143,7 @@ static inline void tracehook_report_syscall_exit(struct pt_regs *regs, int step) * * Return %LSM_UNSAFE_* bits applied to an exec because of tracing. * - * Called with task_lock() held on @task. + * @task->cred_guard_mutex is held by the caller through the do_execve(). */ static inline int tracehook_unsafe_exec(struct task_struct *task) {