From: Namhyung Kim Date: Wed, 27 Oct 2010 22:34:07 +0000 (-0700) Subject: signals: annotate lock context change on ptrace_stop() X-Git-Tag: upstream/snapshot3+hdmi~12627^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b84011508360d6885a9d95a235ec77d56f133377;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git signals: annotate lock context change on ptrace_stop() ptrace_stop() releases and regrabs current->sighand->siglock 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: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/signal.c b/kernel/signal.c index e921409..4e3cff1 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1618,6 +1618,8 @@ static int sigkill_pending(struct task_struct *tsk) * is gone, we keep current->exit_code unless clear_code. */ static void ptrace_stop(int exit_code, int clear_code, siginfo_t *info) + __releases(¤t->sighand->siglock) + __acquires(¤t->sighand->siglock) { if (arch_ptrace_stop_needed(exit_code, info)) { /*