On Fri, Aug 18, 2017 at 05:27:48PM -0700, Ricardo Neri wrote: > Section 2.2.1.2 of the Intel 64 and IA-32 Architectures Software > Developer's Manual volume 2A states that if a SIB byte is used and > SIB.base is 101b and ModRM.mod is zero, then the base part of the base > part of the effective address computation is null. To signal this > situation, a -EDOM error is returned to indicate callers to ignore the > base value present in the register operand. > > In this scenario, a 32-bit displacement follows the SIB byte. Displacement > is obtained when the instruction decoder parses the operands. > > Cc: Borislav Petkov <b...@suse.de> > Cc: Andy Lutomirski <l...@kernel.org> > Cc: Dave Hansen <dave.han...@linux.intel.com> > Cc: Adam Buchbinder <adam.buchbin...@gmail.com> > Cc: Colin Ian King <colin.k...@canonical.com> > Cc: Lorenzo Stoakes <lstoa...@gmail.com> > Cc: Qiaowei Ren <qiaowei....@intel.com> > Cc: Peter Zijlstra <pet...@infradead.org> > Cc: Nathan Howard <liverl...@gmail.com> > Cc: Adan Hawthorn <adanhawth...@gmail.com> > Cc: Joe Perches <j...@perches.com> > Cc: Ravi V. Shankar <ravi.v.shan...@intel.com> > Cc: x...@kernel.org > Signed-off-by: Ricardo Neri <ricardo.neri-calde...@linux.intel.com> > --- > arch/x86/mm/mpx.c | 28 +++++++++++++++++++--------- > 1 file changed, 19 insertions(+), 9 deletions(-)
Reviewed-by: Borislav Petkov <b...@suse.de> -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --