arm64: Remove useless message during oops [Linux 5.2]

arm64: Remove useless message during oops [Linux 5.2]

This Linux kernel change "arm64: Remove useless message during oops" is included in the Linux 5.2 release. This change is authored by Will Deacon <will.deacon [at] arm.com> on Tue May 14 12:57:54 2019 +0100. The commit for this change in Linux stable tree is 3e29ead (patch).

arm64: Remove useless message during oops

During an oops, we print the name of the current task and its pid twice.
We also helpfully advertise its stack limit as "0x(____ptrval____)".

Drop these useless messages.

Signed-off-by: Will Deacon <[email protected]>

There are 4 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/arm64/kernel/traps.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
index ade3204..e6be1a6 100644
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@ -168,7 +168,6 @@ void show_stack(struct task_struct *tsk, unsigned long *sp)

 static int __die(const char *str, int err, struct pt_regs *regs)
 {
-   struct task_struct *tsk = current;
    static int die_counter;
    int ret;

@@ -181,9 +180,6 @@ static int __die(const char *str, int err, struct pt_regs *regs)
        return ret;

    print_modules();
-   pr_emerg("Process %.*s (pid: %d, stack limit = 0x%p)\n",
-        TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk),
-        end_of_stack(tsk));
    show_regs(regs);

    if (!user_mode(regs))

Leave a Reply

Your email address will not be published. Required fields are marked *