Skip to contentSkip to conversation

signals: annotate lock context on ptrace_stop()

PATCH Superseded Namhyung Kim 2 participants 2 messages Aug 21, 2010 – Aug 25, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 signals: annotate lock context on ptrace_stop()

ptrace_stop() is called within siglock context and releases it first and reacquires but was missing proper annotations. Add it.

---
 kernel/signal.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/signal.c +2 -0
index c423fc5..fc505a7 100644
@@ -1621,6 +1621,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(&current->sighand->siglock)
+	__acquires(&current->sighand->siglock)
 {
 	if (arch_ptrace_stop_needed(exit_code, info)) {
 		/*
Signature · 1 line
1.7.0.4