]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/extable: Remove EX_TYPE_FAULT from MCE safe fixups
authorThomas Gleixner <tglx@linutronix.de>
Wed, 8 Sep 2021 13:29:24 +0000 (15:29 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:55:48 +0000 (11:55 +0200)
commitedaee3417ff1d61897a4b81a09adcd3c4a60f783
treeebb7099be01ed43a0dbd7964e12d4b031f17f418
parent16990cdbb97328a3a05573ec5a4ac0e43ca4e5d4
x86/extable: Remove EX_TYPE_FAULT from MCE safe fixups

BugLink: https://bugs.launchpad.net/bugs/1967750
Now that the MC safe copy and FPU have been converted to use the MCE safe
fixup types remove EX_TYPE_FAULT from the list of types which MCE considers
to be safe to be recovered in kernel.

This removes the SGX exception handling of ENCLS from the #MC safe
handling, but according to the SGX wizards the current SGX implementations
cannot survive #MC on ENCLS:

  https://lore.kernel.org/r/YS+upEmTfpZub3s9@google.com

The code relies on the trap number being stored if ENCLS raised an
exception. That's still working, but it does no longer trick the MCE code
into assuming that #MC is handled correctly for ENCLS.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210908132525.445255957@linutronix.de
(cherry picked from commit 0c2e62ba04cd0b7194b380bae4fc35c45bb2e46e)
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
arch/x86/kernel/cpu/mce/severity.c