Commit 4e2ee96a authored by Vladimir Murzin's avatar Vladimir Murzin Committed by Catalin Marinas

arm64: compat: print compat_sp instead of sp

We check against compat_sp, but print out arm64's sp - fix it.
Signed-off-by: default avatarVladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent b9bcc919
...@@ -370,7 +370,7 @@ asmlinkage int compat_sys_sigreturn(struct pt_regs *regs) ...@@ -370,7 +370,7 @@ asmlinkage int compat_sys_sigreturn(struct pt_regs *regs)
if (show_unhandled_signals) if (show_unhandled_signals)
pr_info_ratelimited("%s[%d]: bad frame in %s: pc=%08llx sp=%08llx\n", pr_info_ratelimited("%s[%d]: bad frame in %s: pc=%08llx sp=%08llx\n",
current->comm, task_pid_nr(current), __func__, current->comm, task_pid_nr(current), __func__,
regs->pc, regs->sp); regs->pc, regs->compat_sp);
force_sig(SIGSEGV, current); force_sig(SIGSEGV, current);
return 0; return 0;
} }
...@@ -407,7 +407,7 @@ asmlinkage int compat_sys_rt_sigreturn(struct pt_regs *regs) ...@@ -407,7 +407,7 @@ asmlinkage int compat_sys_rt_sigreturn(struct pt_regs *regs)
if (show_unhandled_signals) if (show_unhandled_signals)
pr_info_ratelimited("%s[%d]: bad frame in %s: pc=%08llx sp=%08llx\n", pr_info_ratelimited("%s[%d]: bad frame in %s: pc=%08llx sp=%08llx\n",
current->comm, task_pid_nr(current), __func__, current->comm, task_pid_nr(current), __func__,
regs->pc, regs->sp); regs->pc, regs->compat_sp);
force_sig(SIGSEGV, current); force_sig(SIGSEGV, current);
return 0; return 0;
} }
......
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