Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754496AbbGPHqf (ORCPT ); Thu, 16 Jul 2015 03:46:35 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:60193 "EHLO mx3-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753733AbbGPHqe (ORCPT ); Thu, 16 Jul 2015 03:46:34 -0400 Date: Thu, 16 Jul 2015 03:45:10 -0400 (EDT) From: Levente Kurusa To: Russell King - ARM Linux Cc: ARM PORT , LKML Message-ID: <1497929123.7202925.1437032710479.JavaMail.zimbra@redhat.com> In-Reply-To: <20150715190819.GE7557@n2100.arm.linux.org.uk> References: <1436974250-4999-1-git-send-email-lkurusa@redhat.com> <20150715190819.GE7557@n2100.arm.linux.org.uk> Subject: Re: [PATCH] arm: fault.c: fix unhandled page fault message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.34.1.186] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF38 (Linux)/8.0.6_GA_5922) Thread-Topic: fault.c: fix unhandled page fault message Thread-Index: /aBZHh1ruNqn/9nJzrHKvmcT7WvxJA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1578 Lines: 41 Hi, ----- Original Message ----- > On Wed, Jul 15, 2015 at 05:30:50PM +0200, Levente Kurusa wrote: > > Even if the signal was handled using signal(2) the message > > would be printed. Fix that by checking whether the signal > > is handled. > > Why? One of the reasons is that arm64 prints the same message only when the signal is unhandled. The other is the message saying "unhandled". :-) But, don't get me wrong, I found the 'problem' by having a quick glimpse at the code (even though I have a testcase now...), so if you think this is right this way, then so be it. > > Even if the application handles the signal, the point of this debugging is > to have the kernel report the reason for the fault. > > Just because the application has installed a SIGSEGV handler to print some > nice "oops" message, and to cleanly shut down (eg, like Xorg) doesn't mean > we should hide this debugging. In fact, as such handlers generally get in > the way of getting a decent dump from the application, having the kernel > report this information is even more valuable in this situation. I agree, but I find this being controlled by a kernel config option _and_ a parameter makes it harder to use. Maybe we could switch to the sysctl, "debug.exception-trace" like some other architectures do? What do you think? Thanks, Levente -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/