x86/copy_mc: Use EX_TYPE_DEFAULT_MCE_SAFE for exception fixups
authorThomas Gleixner <tglx@linutronix.de>
Wed, 8 Sep 2021 13:29:21 +0000 (15:29 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 13 Sep 2021 16:11:09 +0000 (18:11 +0200)
commitc1c97d175493ab32325df81133611ce8e4e05088
tree2ff7f5dcad65747acf109718e08955b9d7405728
parent2cadf5248b9316d3c8af876e795d61c55476f6e9
x86/copy_mc: Use EX_TYPE_DEFAULT_MCE_SAFE for exception fixups

Nothing in that code uses the trap number which was stored by the exception
fixup which is instantiated via _ASM_EXTABLE_FAULT().

Use _ASM_EXTABLE(... EX_TYPE_DEFAULT_MCE_SAFE) instead which just handles
the IP fixup and the type indicates to the #MC handler that the call site
can handle the abort caused by #MC correctly.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210908132525.328706042@linutronix.de
arch/x86/lib/copy_mc_64.S