Skip to content

Commit

Permalink
Revert "arm64: compat: map SPSR_ELx<->PSR for signals"
Browse files Browse the repository at this point in the history
This reverts commit 2bf6066.
  • Loading branch information
kartikbhalla12 committed Apr 4, 2020
1 parent ac1f396 commit 568c7ef
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions arch/arm64/kernel/signal32.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ static int compat_restore_sigframe(struct pt_regs *regs,
int err;
sigset_t set;
struct compat_aux_sigframe __user *aux;
unsigned long psr;

err = get_sigset_t(&set, &sf->uc.uc_sigmask);
if (err == 0) {
Expand All @@ -345,9 +344,7 @@ static int compat_restore_sigframe(struct pt_regs *regs,
__get_user_error(regs->compat_sp, &sf->uc.uc_mcontext.arm_sp, err);
__get_user_error(regs->compat_lr, &sf->uc.uc_mcontext.arm_lr, err);
__get_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err);
__get_user_error(psr, &sf->uc.uc_mcontext.arm_cpsr, err);

regs->pstate = compat_psr_to_pstate(psr);
__get_user_error(regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err);

/*
* Avoid compat_sys_sigreturn() restarting.
Expand Down Expand Up @@ -503,7 +500,6 @@ static int compat_setup_sigframe(struct compat_sigframe __user *sf,
struct pt_regs *regs, sigset_t *set)
{
struct compat_aux_sigframe __user *aux;
unsigned long psr = pstate_to_compat_psr(regs->pstate);
int err = 0;

__put_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err);
Expand All @@ -522,7 +518,7 @@ static int compat_setup_sigframe(struct compat_sigframe __user *sf,
__put_user_error(regs->compat_sp, &sf->uc.uc_mcontext.arm_sp, err);
__put_user_error(regs->compat_lr, &sf->uc.uc_mcontext.arm_lr, err);
__put_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err);
__put_user_error(psr, &sf->uc.uc_mcontext.arm_cpsr, err);
__put_user_error(regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err);

__put_user_error((compat_ulong_t)0, &sf->uc.uc_mcontext.trap_no, err);
/* set the compat FSR WnR */
Expand Down

0 comments on commit 568c7ef

Please sign in to comment.