]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd474bfc97d45fba89a3933be61ba7fb7ab594bc4
treef0d9a458cc23549c7bb8f152665132c892814fec
parentcf21cdf544afc9df290e6521fa57c8634ce7dc66
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