aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/kernel/signal.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c
index 7a4213ef0f46..9f1e1768e4a6 100644
--- a/arch/arm/kernel/signal.c
+++ b/arch/arm/kernel/signal.c
@@ -193,8 +193,7 @@ struct aux_sigframe {
193 * Do a signal return; undo the signal stack. These are aligned to 64-bit. 193 * Do a signal return; undo the signal stack. These are aligned to 64-bit.
194 */ 194 */
195struct sigframe { 195struct sigframe {
196 struct sigcontext sc; 196 struct ucontext uc;
197 sigset_t sigmask;
198 unsigned long retcode[2]; 197 unsigned long retcode[2];
199 struct aux_sigframe aux __attribute__((aligned(8))); 198 struct aux_sigframe aux __attribute__((aligned(8)));
200}; 199};
@@ -264,7 +263,7 @@ asmlinkage int sys_sigreturn(struct pt_regs *regs)
264 263
265 if (!access_ok(VERIFY_READ, frame, sizeof (*frame))) 264 if (!access_ok(VERIFY_READ, frame, sizeof (*frame)))
266 goto badframe; 265 goto badframe;
267 if (__copy_from_user(&set, &frame->sigmask, sizeof(set))) 266 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set)))
268 goto badframe; 267 goto badframe;
269 268
270 sigdelsetmask(&set, ~_BLOCKABLE); 269 sigdelsetmask(&set, ~_BLOCKABLE);
@@ -273,7 +272,7 @@ asmlinkage int sys_sigreturn(struct pt_regs *regs)
273 recalc_sigpending(); 272 recalc_sigpending();
274 spin_unlock_irq(&current->sighand->siglock); 273 spin_unlock_irq(&current->sighand->siglock);
275 274
276 if (restore_sigcontext(regs, &frame->sc, &frame->aux)) 275 if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &frame->aux))
277 goto badframe; 276 goto badframe;
278 277
279 /* Send SIGTRAP if we're single-stepping */ 278 /* Send SIGTRAP if we're single-stepping */
@@ -482,8 +481,8 @@ setup_frame(int usig, struct k_sigaction *ka, sigset_t *set, struct pt_regs *reg
482 if (!frame) 481 if (!frame)
483 return 1; 482 return 1;
484 483
485 err |= setup_sigcontext(&frame->sc, &frame->aux, regs, set->sig[0]); 484 err |= setup_sigcontext(&frame->uc.uc_mcontext, &frame->aux, regs, set->sig[0]);
486 err |= __copy_to_user(&frame->sigmask, set, sizeof(*set)); 485 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set));
487 486
488 if (err == 0) 487 if (err == 0)
489 err = setup_return(regs, ka, frame->retcode, frame, usig); 488 err = setup_return(regs, ka, frame->retcode, frame, usig);