public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/18134] New: x86-64 ld.so doesn't preserve bound registers
@ 2015-03-16 18:16 hjl.tools at gmail dot com
  2015-03-16 19:56 ` [Bug dynamic-link/18134] " hjl.tools at gmail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2015-03-16 18:16 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-08-03 21:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-16 18:16 [Bug dynamic-link/18134] New: x86-64 ld.so doesn't preserve bound registers hjl.tools at gmail dot com
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

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).