Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7344396imm; Tue, 24 Jul 2018 12:29:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdt5JwoEL+bJ9bKNQXU2Zo7+7oct7FzOZVwjX8ZTDl6wgS2ykvgalcQplsOqT/6T4TAzASE X-Received: by 2002:a63:8c51:: with SMTP id q17-v6mr18016557pgn.236.1532460545103; Tue, 24 Jul 2018 12:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532460545; cv=none; d=google.com; s=arc-20160816; b=GOR785upscKRoW1fhVViO8S70JqUy+yE5fkG9mhU4Os9tVjwgXeDfhc2X5N42dcL6D cOjMhy6qw8zxiXvjvwWwuiONZ+N9YpdkdkNVEKhYVfZ2aHOd8LWOwlCGUXuAGvhqvAyl W+4ag5GetGtlMnRM7M2BVilooLDmsNkQ9bSdbKSDdmXHvtYpTvsDualrApHlEpM76D9F oAhz4CF2IwhpI1/my2dJv97N5ONoWh65PrO6ppx2QG+N+E29+ma+gfqKJkk1a/Y5gVPs 0XT4twd0zmhXqRcrw44aGzpT+moDmNQRbQux46NgNZuo2k6T2iYLoPNHcWIA9BLYQxXL zBpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:date:subject:cc:to:from:arc-authentication-results; bh=i+VyWBzIZ1kq/LRZ4/K2HO1qmLNTdjT332Dqt1Z1fxE=; b=FfHSqmL4kG7gDksETVYBIJNPX8g4LotDCpkbE0HPssu4+nCEEDaclqpAiaXJaueHYh RDqKe10XUnJmzEDmtLvV/U6Oo3nmXHNtgJsW0wifZ16cIZkG7Uex7ammnYZHiA2ISQAi gzeM1L6UvgF3A29r+YVJobIg9iqBt5T7POEMjbLGWfgpglR/+U+XRKJg072GePvW0a2l aEy2BIZyDbMMe6DsQ4VdxSSVGSyA58toNxNeULjdOP9jiPJNyfwOmpqDZsTFAOoSWhde UgCIbIeoImL/agIig+GfuWeXsOwJXEt7Pfla6+jiFjXZyak2tNfltDwgTc0a/NEOdLv3 C2BA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89-v6si11712889plf.224.2018.07.24.12.28.49; Tue, 24 Jul 2018 12:29:05 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388566AbeGXUfx (ORCPT + 99 others); Tue, 24 Jul 2018 16:35:53 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53644 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388470AbeGXUfx (ORCPT ); Tue, 24 Jul 2018 16:35:53 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6OJNcxD019619 for ; Tue, 24 Jul 2018 15:27:56 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ke92rbdex-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 24 Jul 2018 15:27:55 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 24 Jul 2018 15:27:55 -0400 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 24 Jul 2018 15:27:50 -0400 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6OJRnNk62914786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 24 Jul 2018 19:27:49 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7D192AE05F; Tue, 24 Jul 2018 15:27:05 -0400 (EDT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 15978AE062; Tue, 24 Jul 2018 15:27:03 -0400 (EDT) Received: from kermit-br-ibm-com.br.ibm.com (unknown [9.18.235.193]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 24 Jul 2018 15:27:02 -0400 (EDT) From: Murilo Opsfelder Araujo To: linux-kernel@vger.kernel.org Cc: "Alastair D'Silva" , Andrew Donnellan , Balbir Singh , Benjamin Herrenschmidt , Christophe Leroy , Cyril Bur , "Eric W . Biederman" , Michael Ellerman , Michael Neuling , Murilo Opsfelder Araujo , Nicholas Piggin , Paul Mackerras , Simon Guo , Sukadev Bhattiprolu , "Tobin C . Harding" , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 0/7] powerpc: Modernize unhandled signals message Date: Tue, 24 Jul 2018 16:27:13 -0300 X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18072419-0072-0000-0000-000003854B79 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009424; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01065573; UDB=6.00547380; IPR=6.00843430; MB=3.00022305; MTD=3.00000008; XFM=3.00000015; UTC=2018-07-24 19:27:54 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072419-0073-0000-0000-000048D4E841 Message-Id: <20180724192720.32417-1-muriloo@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-24_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=628 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807240204 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, everyone. This series was inspired by the need to modernize and display more informative messages about unhandled signals. The "unhandled signal NN" is not very informative. We thought it would be helpful adding a human-readable message describing what the signal number means, printing the VMA address, and dumping the instructions. We can add more informative messages, like informing what each code of a SIGSEGV signal means. We are open to suggestions. I have collected some early feedback from Michael Ellerman about this series and would love to hear more feedback from you all. Before this series: Jul 24 13:01:07 localhost kernel: pandafault[5989]: unhandled signal 11 at 00000000100007d0 nip 000000001000061c lr 00003fff85a75100 code 2 After this series: Jul 24 13:08:01 localhost kernel: pandafault[10758]: segfault (11) at 00000000100007d0 nip 000000001000061c lr 00007fffabc85100 code 2 in pandafault[10000000+10000] Jul 24 13:08:01 localhost kernel: Instruction dump: Jul 24 13:08:01 localhost kernel: 4bfffeec 4bfffee8 3c401002 38427f00 fbe1fff8 f821ffc1 7c3f0b78 3d22fffe Jul 24 13:08:01 localhost kernel: 392988d0 f93f0020 e93f0020 39400048 <99490000> 39200000 7d234b78 383f0040 Cheers Murilo Murilo Opsfelder Araujo (7): powerpc/traps: Print unhandled signals in a separate function powerpc/traps: Return early in show_signal_msg() powerpc/reg: Add REG_FMT definition powerpc/traps: Use REG_FMT in show_signal_msg() powerpc/traps: Print VMA for unhandled signals powerpc/traps: Print signal name for unhandled signals powerpc/traps: Show instructions on exceptions arch/powerpc/include/asm/reg.h | 6 +++ arch/powerpc/include/asm/stacktrace.h | 7 +++ arch/powerpc/kernel/process.c | 28 +++++----- arch/powerpc/kernel/traps.c | 73 +++++++++++++++++++++++---- 4 files changed, 89 insertions(+), 25 deletions(-) create mode 100644 arch/powerpc/include/asm/stacktrace.h -- 2.17.1