From: Namhyung Kim Date: Wed, 27 Oct 2010 22:33:44 +0000 (-0700) Subject: ptrace: annotate lock context change on exit_ptrace() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c4b5ed250eebf854d40f27b43362c80f115cb57a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ptrace: annotate lock context change on exit_ptrace() exit_ptrace() releases and regrabs tasklist_lock but was missing proper annotation. Add it. Signed-off-by: Namhyung Kim Acked-by: Roland McGrath Cc: Ingo Molnar Cc: Oleg Nesterov Signed-off-by: Linus Torvalds --- diff --git a/kernel/ptrace.c b/kernel/ptrace.c index f34d798ef4a2..4afd9b86cc0b 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -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);