Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4847400imu; Tue, 29 Jan 2019 08:29:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN6vuT84n/Q1YocUr/QTeHsEnxccBvNMmgl+owpnMguDejOhZvMraajZq8y2JwLGP+JNP8Ye X-Received: by 2002:a62:1484:: with SMTP id 126mr26497403pfu.257.1548779349595; Tue, 29 Jan 2019 08:29:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548779349; cv=none; d=google.com; s=arc-20160816; b=XotfwpnrqVCVkujUnYTfJpO9o/shvKBU234XZGES8uttuRk18iNKdS84DM3LG4Fawh bk1YbluM5qI1b9ipBlMUpUdt19Zl5AW2wFSlgOdnUFNFttit8wUwOFvciN/sw9q/4faV h8B5AxZj3iLExbATbA1XYzAO1jRa3hVTN5O7fxAniF3xqEVJ9p/lDmDI4BO9F/B9YCI5 VX60zHdkCHIDSl67o7gjTVc1tNhGt7F7VesfENx3PrV1bIH25pJuanDVaomR7sJbpuXV Rpgfcrg2HMDdXItuJJeWCsp00PEoPWTJ4ihw/SXf9+ra2F4ueM/IoXBv1Ad0OA0YFuDf zG1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=9sW9e9KLj7n9ktYaUM5YdYnUm85NAdf/zI5zcZYMq0Y=; b=ZNJlTuwMUobV+FoFDh55PM0GWDRO/KqWaC7gqGa6mHF95kg+4s8bH6oOgBtluq1oN/ s6YGnQTFjQ37jBNCcuGQpXR3C79WhT7805Rd8Py+51nztWqlQ01UfHyalN0mAZw6DDDg 7VrHFriDzQYWgklj8vR9768nI3urrdQERAOcyuK47Bks2cWDjVBldKWVc/Jt6oVd+lYf h20J8/CiBxIdIpcxW9ZFaIRwe1X9nYyvqC033Jw0SxrrEOPPpmVEC7X4pxtW/As0XaX2 zDi0UxUr8Xmvgl8iSCN3DvYDvFNKtTHIZJrgebJPsOTtWaxwNWCyanBPT7zn9oWAOhZV bNZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=YtwnFWbi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m198si4803050pga.98.2019.01.29.08.28.52; Tue, 29 Jan 2019 08:29:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=YtwnFWbi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728191AbfA2Q2c (ORCPT + 99 others); Tue, 29 Jan 2019 11:28:32 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:65031 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbfA2Q2c (ORCPT ); Tue, 29 Jan 2019 11:28:32 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43psPT0TmPz9v2km; Tue, 29 Jan 2019 17:28:29 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=YtwnFWbi; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id C5icorkRXm5E; Tue, 29 Jan 2019 17:28:29 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 43psPS6VBnz9v2kg; Tue, 29 Jan 2019 17:28:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1548779308; bh=9sW9e9KLj7n9ktYaUM5YdYnUm85NAdf/zI5zcZYMq0Y=; h=From:Subject:To:Cc:Date:From; b=YtwnFWbixQVkMqIfIbobYenx6rIEiBGy4Uq+5W8sshn18v5julncU+7VfaD5jfDrv MmPQvbvX8btvHuBNtdgX+J64FDNBBj2n9wn4KvRm0WgqWL4aBO+42JeGi+uZ49yNbL q2oCYPLlQaxOWrQ01qxkEdg1nsTCYtdOMzUO2QHQ= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 73F178B7E6; Tue, 29 Jan 2019 17:28:30 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id c-Auzt26jUH4; Tue, 29 Jan 2019 17:28:30 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4ABD78B755; Tue, 29 Jan 2019 17:28:30 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 0DF0672DF1; Tue, 29 Jan 2019 16:28:29 +0000 (UTC) Message-Id: <1b13936c5ee1dceb8fec9251aff0b5cda9fd2ace.1548737151.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH] powerpc/traps: fix the message printed when stack overflows To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Tue, 29 Jan 2019 16:28:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index 5e917a84f949..ca8f86ea0345 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c @@ -1535,8 +1535,8 @@ void alignment_exception(struct pt_regs *regs) void StackOverflow(struct pt_regs *regs) { - printk(KERN_CRIT "Kernel stack overflow in process %p, r1=%lx\n", - current, regs->gpr[1]); + printk(KERN_CRIT "Kernel stack overflow in process %s[%d], r1=%lx\n", + current->comm, current->pid, regs->gpr[1]); debugger(regs); show_regs(regs); panic("kernel stack overflow"); -- 2.13.3