Comment # 6 on bug 1193139 from
(In reply to Borislav Petkov from comment #5)
> So I just installed a leap 15.3 guest:
> 
> [root@localhost: ~/mpx> gcc -m32 -Wall -o mpx-out-of-bounds
> mpx-out-of-bounds.c -mmpx -fcheck-pointer-bounds
> [root@localhost: ~/mpx> ./mpx-out-of-bounds 10
> dog[0]: 'd'
> dog[1]: 'o'
> dog[2]: 'g'
> dog[3]: ''
> dog[4]: 's'
> dog[5]: 'e'
> dog[6]: 'c'
> dog[7]: 'r'
> dog[8]: '3'
> dog[9]: 't'
> [root@localhost: ~/mpx> uname -a
> Linux localhost 5.3.18-59.34-default #1 SMP Thu Nov 11 12:18:45 UTC 2021
> (a2a53aa) x86_64 x86_64 x86_64 GNU/Linux
> 
> Or do I need a real hw machine that supports MPX?

You'll need a machine with mpx in /proc/cpuinfo flags.  I don't know whether
that needs to be real hw, or can also be a VM.  I reproduced it on real hw, and
the failure is all over OBS as well, so I imagine a VM should also work.


You are receiving this mail because: