Re: [PATCH 4/8] x86/mce: Add _ASM_EXTABLE_CPY for copy user access

2020-09-16 Thread Borislav Petkov
On Tue, Sep 08, 2020 at 10:55:15AM -0700, Tony Luck wrote: > diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h > index cf503824529c..6ea141f91163 100644 > --- a/arch/x86/include/asm/mce.h > +++ b/arch/x86/include/asm/mce.h > @@ -137,6 +137,7 @@ > #define MCE_HANDLED_EDAC

[PATCH 4/8] x86/mce: Add _ASM_EXTABLE_CPY for copy user access

2020-09-08 Thread Tony Luck
From: Youquan Song _ASM_EXTABLE_UA is a general exception entry to record the exception fixup for all exception spots between kernel and user space access. To enable recovery from machine checks while coping data from user addresses we need to be able to distinguish the places that are looping c