Commit 1c216279539bd65c5a3d497e25d441dbddbcf1ec

Authored by Oleg Nesterov
Committed by Linus Torvalds
1 parent dea33cfd99

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 <oleg@redhat.com>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

include/linux/tracehook.h
... ... @@ -143,7 +143,7 @@
143 143 *
144 144 * Return %LSM_UNSAFE_* bits applied to an exec because of tracing.
145 145 *
146   - * Called with task_lock() held on @task.
  146 + * @task->cred_guard_mutex is held by the caller through the do_execve().
147 147 */
148 148 static inline int tracehook_unsafe_exec(struct task_struct *task)
149 149 {