From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103230 invoked by alias); 9 Jul 2015 14:08:32 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 103169 invoked by uid 55); 9 Jul 2015 14:08:25 -0000 From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/18134] x86 ld.so doesn't preserve bound registers Date: Thu, 09 Jul 2015 14:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg00064.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18134 --- Comment #4 from 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 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.