This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 02 Dec 2016 17:30:21 +0000
- Subject: [Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()
- Auto-submitted: auto-generated
- References: <bug-78631-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Last reconfirmed| |2016-12-02
Resolution|INVALID |---
Ever confirmed|0 |1
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
The problem is that the internal MPX wrapper calls in libmpxwrappers.so:
(gdb) disass
Dump of assembler code for function __mpx_wrapper_memcpy:
=> 0x00007ffff79d1120 <+0>: sub $0x8,%rsp
0x00007ffff79d1124 <+4>: bnd callq 0x7ffff79cfb50
<__mpx_wrapper_memmove@plt>
0x00007ffff79d112a <+10>: add $0x8,%rsp
0x00007ffff79d112e <+14>: bnd retq
End of assembler dump.
(gdb) disass
Dump of assembler code for function __mpx_wrapper_memmove@plt:
=> 0x00007ffff79cfb50 <+0>: jmpq *0x2024c2(%rip) # 0x7ffff7bd2018
0x00007ffff79cfb56 <+6>: pushq $0x0
0x00007ffff79cfb5b <+11>: jmpq 0x7ffff79cfb40
End of assembler dump.