Skip to content

Commit 02d7504

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull signal fix from Eric Biederman: "Just a single patch that restores PTRACE_EVENT_EXIT functionality that was accidentally broken by last weeks fixes" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: signal: Restore the stop PTRACE_EVENT_EXIT
2 parents cb5b020 + cf43a75 commit 02d7504

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

kernel/signal.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,9 +2436,12 @@ bool get_signal(struct ksignal *ksig)
24362436
}
24372437

24382438
/* Has this task already been marked for death? */
2439-
ksig->info.si_signo = signr = SIGKILL;
2440-
if (signal_group_exit(signal))
2439+
if (signal_group_exit(signal)) {
2440+
ksig->info.si_signo = signr = SIGKILL;
2441+
sigdelset(&current->pending.signal, SIGKILL);
2442+
recalc_sigpending();
24412443
goto fatal;
2444+
}
24422445

24432446
for (;;) {
24442447
struct k_sigaction *ka;

0 commit comments

Comments
 (0)