x86/mce: Disable tracing and kprobes on do_machine_check()
authorAndy Lutomirski <luto@kernel.org>
Tue, 25 Feb 2020 21:36:38 +0000 (22:36 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Feb 2020 13:48:39 +0000 (14:48 +0100)
commit55ba18d6ed37a28cf8b8ca79e9aef4cf98183bb7
treef0d9a458cc23549c7bb8f152665132c892814fec
parent3d51507f29f2153a658df4a0674ec5b592b62085
x86/mce: Disable tracing and kprobes on do_machine_check()

do_machine_check() can be raised in almost any context including the most
fragile ones. Prevent kprobes and tracing.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200225220216.315548935@linutronix.de
arch/x86/include/asm/traps.h
arch/x86/kernel/cpu/mce/core.c