Commit b84011508360d6885a9d95a235ec77d56f133377
Committed by
Linus Torvalds
1 parent
b8ed374e20
Exists in
master
and in
7 other branches
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 <namhyung@gmail.com> Acked-by: Roland McGrath <roland@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Oleg Nesterov <oleg@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 2 additions and 0 deletions Side-by-side Diff
kernel/signal.c
| ... | ... | @@ -1618,6 +1618,8 @@ |
| 1618 | 1618 | * is gone, we keep current->exit_code unless clear_code. |
| 1619 | 1619 | */ |
| 1620 | 1620 | static void ptrace_stop(int exit_code, int clear_code, siginfo_t *info) |
| 1621 | + __releases(¤t->sighand->siglock) | |
| 1622 | + __acquires(¤t->sighand->siglock) | |
| 1621 | 1623 | { |
| 1622 | 1624 | if (arch_ptrace_stop_needed(exit_code, info)) { |
| 1623 | 1625 | /* |