Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp472620imm; Wed, 25 Jul 2018 00:02:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeX9HFrmrhbeN3j421kLvPqoaT2Sy9p+Zo+OdO5W3S3ZwiCYv/d3MSg4TYy2yzj6dZpwrK/ X-Received: by 2002:a17:902:33c2:: with SMTP id b60-v6mr20095198plc.11.1532502125097; Wed, 25 Jul 2018 00:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532502125; cv=none; d=google.com; s=arc-20160816; b=jYY851Ah2s33JY3TBuaUu6PAtnAR6B5Ww3ggdSibx154KpGIJjyWaH2zjpMImAFXiS qckrk5rQj/T3A0TFlYlyRFf8wE2Qao2egGqGVE5tk38eMSLU6qB0dMHnISKOu7iP7ZAz pJVK8/J9G2CM31M1+w66LX06xm8OiQU/B1lLusYQzmKvFnmTT3qcT2siiL9o8TmVMZeG XK7hwdDnvtbvBSoDCDY6GPkiwKhA+47QjkpgmxTZHBKjnssJ5fuv8/voWe1gBlc+z4hO o+oNXuNG8v1e9KKuZpoxF2OyFpA77/quuwEmAQ/jsT6yAUdjo3dIfUTqi3weoyrO3GjR gL/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=AkSM0p7Pf3X6UZqv7rUEAQGHEZ6q0IM56rmkDglhnig=; b=BEvup5unqxBXbCpi+bVwCA2R1LJVq2HrJfKO24wVsroklrBkx4SpitGCl6bF4S+UzD KH2S1fYeg4b+bWa0/+6swrTfKwYCsGchWBVVCtSyfxlT8yVmOla4UyETUV038ptNXoUa 7kit1QMcMkufYprGa8q3p8n4Zsa7RvIytEWtW3b8AQuegrbsqm07gEQvWMyUXh7Fsik2 F5gg6ey2F4wabfM8f5wYQ7zWY5oJAwXcCgt+cZTC6MpjEkZKVKJ7AaUeoxrrKa7lT42g N+BaSQ1AI5OuBrKGlYVY0epVnU4eU5f14Y5aElt4VCHqaw3W36RQGO1NoVb8wkqhtu7Z Rgeg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2-v6si14424181plm.202.2018.07.25.00.01.50; Wed, 25 Jul 2018 00:02: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729014AbeGYIKn convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 Jul 2018 04:10:43 -0400 Received: from ozlabs.org ([203.11.71.1]:59791 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728575AbeGYIKn (ORCPT ); Wed, 25 Jul 2018 04:10:43 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 41b5hj5qqKz9s1x; Wed, 25 Jul 2018 17:00:21 +1000 (AEST) Received: by localhost.localdomain (Postfix, from userid 1000) id BF7FAEE78BF; Wed, 25 Jul 2018 17:00:21 +1000 (AEST) Message-ID: <0f185351330a7f1d66409fe6a2dc02aae6826039.camel@neuling.org> Subject: Re: [PATCH 0/7] powerpc: Modernize unhandled signals message From: Michael Neuling To: Murilo Opsfelder Araujo , linux-kernel@vger.kernel.org Cc: Alastair D'Silva , Andrew Donnellan , Balbir Singh , Benjamin Herrenschmidt , Christophe Leroy , Cyril Bur , "Eric W . Biederman" , Michael Ellerman , Nicholas Piggin , Paul Mackerras , Simon Guo , Sukadev Bhattiprolu , "Tobin C . Harding" , linuxppc-dev@lists.ozlabs.org Date: Wed, 25 Jul 2018 17:00:21 +1000 In-Reply-To: <20180724192720.32417-1-muriloo@linux.ibm.com> References: <20180724192720.32417-1-muriloo@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-07-24 at 16:27 -0300, Murilo Opsfelder Araujo wrote: > 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. Nice.. the instruction dump would have been very handy when debugging the PCR init issue I had a month or so back. > 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 What happens if we get a sudden flood of these from different processes that overlap their output? Are we going to be able to match up the process with instruction dump? Should we prefix every line with the PID to avoid this? Mikey