powerpc/traps: Fix the message printed when stack overflows
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 29 Jan 2019 16:37:55 +0000 (16:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 13:35:27 +0000 (14:35 +0100)
commita8cae6144a25054875d0ab6e31f550af7e531500
tree346f88efe2a2e669a17e08423bce58cc8cf8fef5
parentbfb576fa7c56fabae9ac645e30d7cd7db6fee4cf
powerpc/traps: Fix the message printed when stack overflows

commit 9bf3d3c4e4fd82c7174f4856df372ab2a71005b9 upstream.

Today's message is useless:

  [   42.253267] Kernel stack overflow in process (ptrval), r1=c65500b0

This patch fixes it:

  [   66.905235] Kernel stack overflow in process sh[356], r1=c65560b0

Fixes: ad67b74d2469 ("printk: hash addresses printed with %p")
Cc: stable@vger.kernel.org # v4.15+
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[mpe: Use task_pid_nr()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/traps.c