aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/ptrace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 1f5e55dda955..ec8118ab2a47 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -457,6 +457,9 @@ void exit_ptrace(struct task_struct *tracer)
457 return; 457 return;
458 458
459 list_for_each_entry_safe(p, n, &tracer->ptraced, ptrace_entry) { 459 list_for_each_entry_safe(p, n, &tracer->ptraced, ptrace_entry) {
460 if (unlikely(p->ptrace & PT_EXITKILL))
461 send_sig_info(SIGKILL, SEND_SIG_FORCED, p);
462
460 if (__ptrace_detach(tracer, p)) 463 if (__ptrace_detach(tracer, p))
461 list_add(&p->ptrace_entry, &ptrace_dead); 464 list_add(&p->ptrace_entry, &ptrace_dead);
462 } 465 }