[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211202061916.204718-1-heying24@huawei.com>
Date: Thu, 2 Dec 2021 01:19:16 -0500
From: He Ying <heying24@...wei.com>
To: <rmk+kernel@...linux.org.uk>, <arnd@...db.de>, <ardb@...nel.org>,
<akpm@...ux-foundation.org>, <maninder1.s@...sung.com>,
<wangkefeng.wang@...wei.com>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] arm: Show real address of stack limit in __die()
Printing real address of stack limit makes debug easier.
And system is dying, there is no security risk to show real
address.
Signed-off-by: He Ying <heying24@...wei.com>
---
arch/arm/kernel/traps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index 195dff58bafc..7d7c86d00482 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
@@ -273,7 +273,7 @@ static int __die(const char *str, int err, struct pt_regs *regs)
print_modules();
__show_regs(regs);
__show_regs_alloc_free(regs);
- pr_emerg("Process %.*s (pid: %d, stack limit = 0x%p)\n",
+ pr_emerg("Process %.*s (pid: %d, stack limit = 0x%px)\n",
TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk), end_of_stack(tsk));
if (!user_mode(regs) || in_interrupt()) {
--
2.17.1
Powered by blists - more mailing lists