This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bndmov MPX instructions in dynamic linker breaks valgrind


On 08/07/2014 05:03 PM, H.J. Lu wrote:
Here is the test I used.  Latency on Intel processors is
from 1 to 6 cycles for

bndmov %bnd0, 56(%rsp)
bndmov %bnd1, 72(%rsp)
bndmov %bnd2, 88(%rsp)
bndmov %bnd3, 104(%rsp)

and

bndmov 104(%rsp), %bnd3
bndmov 88(%rsp), %bnd2
bndmov 72(%rsp), %bnd1
bndmov 56(%rsp), %bnd0

Thanks, interesting.

I'm a bit worried about the performance on non-Intel implementations, but my test on an AMD Turion II Neo N40L showed a similar performance impact. I guess we'll have to make a release with these changes and see what happens.

--
Florian Weimer / Red Hat Product Security


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]