[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1497929123.7202925.1437032710479.JavaMail.zimbra@redhat.com>
Date: Thu, 16 Jul 2015 03:45:10 -0400 (EDT)
From: Levente Kurusa <lkurusa@...hat.com>
To: Russell King - ARM Linux <linux@....linux.org.uk>
Cc: ARM PORT <linux-arm-kernel@...ts.infradead.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] arm: fault.c: fix unhandled page fault message
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists