aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r--arch/x86/kernel/signal_32.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index 690cc616ac07..0f98d69fbdb0 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -441,7 +441,10 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
441 goto give_sigsegv; 441 goto give_sigsegv;
442 442
443 /* Create the ucontext. */ 443 /* Create the ucontext. */
444 err |= __put_user(0, &frame->uc.uc_flags); 444 if (cpu_has_xsave)
445 err |= __put_user(UC_FP_XSTATE, &frame->uc.uc_flags);
446 else
447 err |= __put_user(0, &frame->uc.uc_flags);
445 err |= __put_user(0, &frame->uc.uc_link); 448 err |= __put_user(0, &frame->uc.uc_link);
446 err |= __put_user(current->sas_ss_sp, &frame->uc.uc_stack.ss_sp); 449 err |= __put_user(current->sas_ss_sp, &frame->uc.uc_stack.ss_sp);
447 err |= __put_user(sas_ss_flags(regs->sp), 450 err |= __put_user(sas_ss_flags(regs->sp),