arm64: compat: print compat_sp instead of sp
authorVladimir Murzin <vladimir.murzin@arm.com>
Mon, 15 Jun 2015 16:30:17 +0000 (17:30 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 17 Jun 2015 13:30:53 +0000 (14:30 +0100)
We check against compat_sp, but print out arm64's sp - fix it.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/signal32.c

index d26fcd4cd6e6219cae5213b4b329d53d90a86a9b..1670f15ef69e34972986081deb9b1f87b0bb2bb3 100644 (file)
@@ -370,7 +370,7 @@ badframe:
        if (show_unhandled_signals)
                pr_info_ratelimited("%s[%d]: bad frame in %s: pc=%08llx sp=%08llx\n",
                                    current->comm, task_pid_nr(current), __func__,
-                                   regs->pc, regs->sp);
+                                   regs->pc, regs->compat_sp);
        force_sig(SIGSEGV, current);
        return 0;
 }
@@ -407,7 +407,7 @@ badframe:
        if (show_unhandled_signals)
                pr_info_ratelimited("%s[%d]: bad frame in %s: pc=%08llx sp=%08llx\n",
                                    current->comm, task_pid_nr(current), __func__,
-                                   regs->pc, regs->sp);
+                                   regs->pc, regs->compat_sp);
        force_sig(SIGSEGV, current);
        return 0;
 }