Re: [PATCH v4 15/17] x86/traps: Fixup general protection faults caused by UMIP

2017-02-23 Thread Peter Zijlstra
On Wed, Feb 22, 2017 at 10:37:04PM -0800, Ricardo Neri wrote: > @@ -492,6 +493,9 @@ do_general_protection(struct pt_regs *regs, long > error_code) > RCU_LOCKDEP_WARN(!rcu_is_watching(), "entry code didn't wake RCU"); > cond_local_irq_enable(regs); > > + if (user_mode(regs) &&

Re: [PATCH v4 01/17] x86/mpx: Do not use SIB index if index points to R/ESP

2017-02-22 Thread Peter Zijlstra
On Wed, Feb 22, 2017 at 10:36:50PM -0800, Ricardo Neri wrote: > + /* > + * A negative offset generally means a error, except > + * -EDOM, which means that the contents of the register > + * should not be used as