Commit 322740ef authored by Richard Weinberger's avatar Richard Weinberger

Revert "um: Fix get_signal() usage"

Commit db2f24dc
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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent fc77dbd3
...@@ -69,7 +69,7 @@ void do_signal(struct pt_regs *regs) ...@@ -69,7 +69,7 @@ void do_signal(struct pt_regs *regs)
struct ksignal ksig; struct ksignal ksig;
int handled_sig = 0; int handled_sig = 0;
if (get_signal(&ksig)) { while (get_signal(&ksig)) {
handled_sig = 1; handled_sig = 1;
/* Whee! Actually deliver the signal. */ /* Whee! Actually deliver the signal. */
handle_signal(&ksig, regs); handle_signal(&ksig, regs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment