forked from Minki/linux
um: switch {rt_,}sigreturn() to set_current_blocked()
same story as on x86 native... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
d118c13548
commit
78722a445b
@ -458,11 +458,7 @@ long sys_sigreturn(struct pt_regs regs)
|
||||
goto segfault;
|
||||
|
||||
sigdelsetmask(&set, ~_BLOCKABLE);
|
||||
|
||||
spin_lock_irq(¤t->sighand->siglock);
|
||||
current->blocked = set;
|
||||
recalc_sigpending();
|
||||
spin_unlock_irq(¤t->sighand->siglock);
|
||||
set_current_blocked(&set);
|
||||
|
||||
if (copy_sc_from_user(¤t->thread.regs, sc))
|
||||
goto segfault;
|
||||
@ -489,11 +485,7 @@ long sys_rt_sigreturn(struct pt_regs regs)
|
||||
goto segfault;
|
||||
|
||||
sigdelsetmask(&set, ~_BLOCKABLE);
|
||||
|
||||
spin_lock_irq(¤t->sighand->siglock);
|
||||
current->blocked = set;
|
||||
recalc_sigpending();
|
||||
spin_unlock_irq(¤t->sighand->siglock);
|
||||
set_current_blocked(&set);
|
||||
|
||||
if (copy_sc_from_user(¤t->thread.regs, &uc->uc_mcontext))
|
||||
goto segfault;
|
||||
|
@ -270,11 +270,7 @@ long sys_rt_sigreturn(struct pt_regs *regs)
|
||||
goto segfault;
|
||||
|
||||
sigdelsetmask(&set, ~_BLOCKABLE);
|
||||
|
||||
spin_lock_irq(¤t->sighand->siglock);
|
||||
current->blocked = set;
|
||||
recalc_sigpending();
|
||||
spin_unlock_irq(¤t->sighand->siglock);
|
||||
set_current_blocked(&set);
|
||||
|
||||
if (copy_sc_from_user(¤t->thread.regs, &uc->uc_mcontext,
|
||||
&frame->fpstate))
|
||||
|
Loading…
Reference in New Issue
Block a user