public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/18134] New: x86-64 ld.so doesn't preserve bound registers
Date: Mon, 16 Mar 2015 18:16:00 -0000	[thread overview]
Message-ID: <bug-18134-131@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=18134

            Bug ID: 18134
           Summary: x86-64 ld.so doesn't preserve bound registers
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com

X86-64 _dl_runtime_resolve has

(gdb) disass _dl_runtime_resolve
Dump of assembler code for function _dl_runtime_resolve:
   0x00000036004150f0 <+0>:    sub    $0x78,%rsp
   0x00000036004150f4 <+4>:    mov    %rax,0x40(%rsp)
   0x00000036004150f9 <+9>:    mov    %rcx,0x48(%rsp)
   0x00000036004150fe <+14>:    mov    %rdx,0x50(%rsp)
   0x0000003600415103 <+19>:    mov    %rsi,0x58(%rsp)
   0x0000003600415108 <+24>:    mov    %rdi,0x60(%rsp)
   0x000000360041510d <+29>:    mov    %r8,0x68(%rsp)
   0x0000003600415112 <+34>:    mov    %r9,0x70(%rsp)
   0x0000003600415117 <+39>:    bndmov %bnd0,(%rsp)
   0x000000360041511c <+44>:    bndmov %bnd1,0x10(%rsp)
   0x0000003600415122 <+50>:    bndmov %bnd2,0x20(%rsp)
   0x0000003600415128 <+56>:    bndmov %bnd3,0x30(%rsp)
   0x000000360041512e <+62>:    mov    0x80(%rsp),%rsi
   0x0000003600415136 <+70>:    mov    0x78(%rsp),%rdi
   0x000000360041513b <+75>:    callq  0x360040e620 <_dl_fixup>
   0x0000003600415140 <+80>:    mov    %rax,%r11
   0x0000003600415143 <+83>:    bndmov 0x30(%rsp),%bnd3
   0x0000003600415149 <+89>:    bndmov 0x20(%rsp),%bnd2
   0x000000360041514f <+95>:    bndmov 0x10(%rsp),%bnd1
   0x0000003600415155 <+101>:    bndmov (%rsp),%bnd0
   0x000000360041515a <+106>:    mov    0x70(%rsp),%r9
   0x000000360041515f <+111>:    mov    0x68(%rsp),%r8
   0x0000003600415164 <+116>:    mov    0x60(%rsp),%rdi
   0x0000003600415169 <+121>:    mov    0x58(%rsp),%rsi
   0x000000360041516e <+126>:    mov    0x50(%rsp),%rdx
   0x0000003600415173 <+131>:    mov    0x48(%rsp),%rcx
   0x0000003600415178 <+136>:    mov    0x40(%rsp),%rax
   0x000000360041517d <+141>:    add    $0x88,%rsp
   0x0000003600415184 <+148>:    jmpq   *%r11
                                ^^^^^^^^^^^^^^^^^  This clears bound registers.
End of assembler dump.
(gdb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


             reply	other threads:[~2015-03-16 18:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16 18:16 hjl.tools at gmail dot com [this message]
2015-03-16 19:56 ` [Bug dynamic-link/18134] " hjl.tools at gmail dot com
2015-03-16 22:00 ` cvs-commit at gcc dot gnu.org
2015-03-18 14:28 ` hjl.tools at gmail dot com
2015-03-18 14:29 ` [Bug dynamic-link/18134] x86 " hjl.tools at gmail dot com
2015-07-09 14:08 ` cvs-commit at gcc dot gnu.org
2015-07-09 14:11 ` hjl.tools at gmail dot com
2015-08-02 13:57 ` cvs-commit at gcc dot gnu.org
2015-08-02 17:43 ` cvs-commit at gcc dot gnu.org
2015-08-03  4:47 ` cvs-commit at gcc dot gnu.org
2015-08-03 21:25 ` cvs-commit at gcc dot gnu.org
2015-08-03 21:36 ` cvs-commit at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-18134-131@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).