This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/18134] x86 ld.so doesn't preserve bound registers
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 09 Jul 2015 14:08:25 +0000
- Subject: [Bug dynamic-link/18134] x86 ld.so doesn't preserve bound registers
- Auto-submitted: auto-generated
- References: <bug-18134-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18134
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 14c5cbabc2d11004ab223ae5eae761ddf83ef99e (commit)
from 632b3db8e2ba1f454872f7ebe1335966f8161c43 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=14c5cbabc2d11004ab223ae5eae761ddf83ef99e
commit 14c5cbabc2d11004ab223ae5eae761ddf83ef99e
Author: Igor Zamyatin <igor.zamyatin@intel.com>
Date: Thu Jul 9 06:50:12 2015 -0700
Preserve bound registers for pointer pass/return
We need to save/restore bound registers and add a BND prefix before
branches in _dl_runtime_profile so that bound registers for pointer
pass and return are preserved when LD_AUDIT is used.
[BZ #18134]
* sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
* sysdeps/i386/configure: Regenerated.
* sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
(_dl_runtime_profile): Save and restore Intel MPX return bound
registers when calling _dl_call_pltexit. Add
PRESERVE_BND_REGS_PREFIX before return.
* sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
(LRV_BND1_OFFSET): Likewise.
* sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
lrv_bnd1.
* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
typo in bndmov encoding.
* sysdeps/x86_64/dl-trampoline.h: Properly save and restore
Intel MPX bound registers. Add PRESERVE_BND_REGS_PREFIX before
branch instructions to preserve bounds.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 20 +++++++++++++++++++
NEWS | 14 ++++++------
sysdeps/i386/configure | 27 ++++++++++++++++++++++++++
sysdeps/i386/configure.ac | 15 ++++++++++++++
sysdeps/i386/dl-trampoline.S | 21 ++++++++++++++++++++
sysdeps/i386/link-defines.sym | 2 +
sysdeps/x86/bits/link.h | 2 +
sysdeps/x86_64/dl-trampoline.S | 4 +-
sysdeps/x86_64/dl-trampoline.h | 41 ++++++++++++++++++++++-----------------
9 files changed, 119 insertions(+), 27 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.