This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH, MPX] MPX-specific changes in dl_runtime routines
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Zamyatin, Igor" <igor dot zamyatin at intel dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Wed, 8 Jul 2015 08:34:35 -0700
- Subject: Re: [PATCH, MPX] MPX-specific changes in dl_runtime routines
- Authentication-results: sourceware.org; auth=none
- References: <0EFAB2BDD0F67E4FB6CCC8B9F87D75696A91AC38 at IRSMSX101 dot ger dot corp dot intel dot com> <CAMe9rOqq9uHZHOG8-ByX5bt4xyy77Cb9PJWccaR_kMTOnt7qDQ at mail dot gmail dot com> <CAMe9rOq-5XqT8CRBrrb69nbzYEL0=0r2fM9CDeBDF8xhzXV_JQ at mail dot gmail dot com> <0EFAB2BDD0F67E4FB6CCC8B9F87D75696A921FC8 at IRSMSX101 dot ger dot corp dot intel dot com>
On Wed, Jul 8, 2015 at 8:25 AM, Zamyatin, Igor <igor.zamyatin@intel.com> wrote:
> Hi!
>
> Please see updated patch (attached)
>
> ChangeLog:
>
> 2015-07-08 Igor Zamyatin <igor.zamyatin@intel.com>
>
> [BZ #18134]
> * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Save
> and restore Intel MPX return bound registers.
> * sysdeps/x86_64/dl-trampoline.h: Add PRESERVE_BND_REGS_PREFIX to
> call, jump and ret instructions to not loose bounds.
> * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
> lrv_bnd1.
> * sysdeps/i386/link-defines.sym: Add definitions for LRV_BND0_OFFSET
> and LRV_BND1_OFFSET.
>
+#else
+ .byte 0x66,0x0f,0x1b,0x04,0x24
+ .byte 0x66,0x0f,0x1b,0x4c,0x24,0x08
+#endif
...
+#else
+ .byte 0x66,0x0f,0x1a,0x04,0x24
+ .byte 0x66,0x0f,0x1a,0x4c,0x24,0x08
+#endif
Please use LRV_BND0_OFFSET and LRV_BND1_OFFSET.
--
H.J.