]> asedeno.scripts.mit.edu Git - linux.git/commit
um: Don't trace irqflags during shutdown
authorJohannes Berg <johannes.berg@intel.com>
Tue, 17 Sep 2019 11:20:14 +0000 (13:20 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 25 Nov 2019 21:42:57 +0000 (22:42 +0100)
commit5c1f33e2a03c0b8710b5d910a46f1e1fb0607679
tree69a597877d45a4e069d37bb1f58dcc273c21d0bb
parente472c64aa4fa6150c6076fd36d101d667d71c30a
um: Don't trace irqflags during shutdown

In the main() code, we eventually enable signals just before
exec() or exit(), in order to to not have signals pending and
delivered *after* the exec().

I've observed SIGSEGV loops at this point, and the reason seems
to be the irqflags tracing; this makes sense as the kernel is
no longer really functional at this point. Since there's really
no reason to use unblock_signals_trace() here (I had just done
a global search & replace), use the plain unblock_signals() in
this case to avoid going into the no longer functional kernel.

Fixes: 0dafcbe128d2 ("um: Implement TRACE_IRQFLAGS_SUPPORT")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/os-Linux/main.c