* [PATCH] arm: Show real address of stack limit in __die()
@ 2021-12-02 6:19 He Ying
2021-12-27 1:56 ` He Ying
0 siblings, 1 reply; 2+ messages in thread
From: He Ying @ 2021-12-02 6:19 UTC (permalink / raw)
To: rmk+kernel, arnd, ardb, akpm, maninder1.s, wangkefeng.wang
Cc: linux-arm-kernel, linux-kernel
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@huawei.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm: Show real address of stack limit in __die()
2021-12-02 6:19 [PATCH] arm: Show real address of stack limit in __die() He Ying
@ 2021-12-27 1:56 ` He Ying
0 siblings, 0 replies; 2+ messages in thread
From: He Ying @ 2021-12-27 1:56 UTC (permalink / raw)
To: rmk+kernel, arnd, ardb, akpm, maninder1.s, wangkefeng.wang
Cc: linux-arm-kernel, linux-kernel
Ping. Any ideas about this patch?
在 2021/12/2 14:19, He Ying 写道:
> 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@huawei.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()) {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-27 2:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 6:19 [PATCH] arm: Show real address of stack limit in __die() He Ying
2021-12-27 1:56 ` He Ying
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).