ptrace: annotate lock context change on exit_ptrace()
PATCH 1/3 ptrace: annotate lock context change on exit_ptrace()
exit_ptrace() is called within tasklist_lock context and releases it and reacquires but was missing proper annotations. Add it.
Signed-off-by Namhyung Kim <[email protected]>
--- kernel/ptrace.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/ptrace.c +2 -0
@@ -329,6 +329,8 @@ int ptrace_detach(struct task_struct *child, unsigned int data)* and reacquire the lock. */ void exit_ptrace (struct task_struct *tracer) + __releases(&tasklist_lock) + __acquires(&tasklist_lock) {struct task_struct *p, *n;LIST_HEAD (ptrace_dead);
Signature · 1 line
1.7.0.4
Acked-by Roland McGrath <[email protected]>