From: Richard Weinberger Date: Mon, 25 Jan 2016 22:33:30 +0000 (+0100) Subject: Revert "um: Fix get_signal() usage" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=322740efbb7ca26df845161e61cc41484b7e328e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Revert "um: Fix get_signal() usage" Commit db2f24dc240856fb1d78005307f1523b7b3c121b was plain wrong. I did not realize the we are allowed to loop here. In fact we have to loop and must not return to userspace before all SIGSEGVs have been delivered. Other archs do this directly in their entry code, UML does it here. Reported-by: Al Viro Signed-off-by: Richard Weinberger --- diff --git a/arch/um/kernel/signal.c b/arch/um/kernel/signal.c index fc8be0e3a4ff..57acbd67d85d 100644 --- a/arch/um/kernel/signal.c +++ b/arch/um/kernel/signal.c @@ -69,7 +69,7 @@ void do_signal(struct pt_regs *regs) struct ksignal ksig; int handled_sig = 0; - if (get_signal(&ksig)) { + while (get_signal(&ksig)) { handled_sig = 1; /* Whee! Actually deliver the signal. */ handle_signal(&ksig, regs);