Re: [PATCH RFC] x86/traps: show unhandled signal for i386 in do_trap()

From: Jan Beulich
Date: Thu Mar 10 2016 - 08:40:43 EST


>>> On 10.03.16 at 13:19, <nasa4836@xxxxxxxxx> wrote:
> Commit abd4f7505baf ("x86: i386-show-unhandled-signals-v3") did turn on
> the showing-unhandled-signal behaviour for i386 for some exception handlers,
> but for no reason do_trap() is left out(my naive guess is because turning it
> on
> for do_trap() would be too noisy since do_trap() is shared by several
> exceptions).
>
> And since the same commit make "show_unhandled_signals" a debug tunable(in
> /proc/sys/debug/exception-trace), and x86 by default turning it on. So it
> would be
> strange for i386 users who turing it on manually and expect seeing the
> unhandled signal
> output in log, but nothing.
>
> This patch turns it on for i386 in do_trap().
>
> Signed-off-by: Jianyu Zhan <nasa4836@xxxxxxxxx>

I've been carrying this patch for years, without ever being able to
decide whether the distinction between 32-bit and 64-bit was
intentional.

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>