[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2017-04-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 Martin Liška changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2017-03-21 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #15 from Martin Liška --- (In reply to Ilya Enkovich from comment #13) > (In reply to Alexander Ivchenko from comment #12) > > Fixed with r243942 > > It should be backported to GCC6. I would be happy to backport that, however the

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2017-03-07 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2017-01-03 Thread ienkovich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #13 from Ilya Enkovich --- (In reply to Alexander Ivchenko from comment #12) > Fixed with r243942 It should be backported to GCC6.

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-27 Thread aivchenk at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 Alexander Ivchenko changed: What|Removed |Added CC||aivchenk at gmail dot com ---

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-07 Thread ienkovich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #11 from Ilya Enkovich --- (In reply to H.J. Lu from comment #10) > > MPX wrapper library isn't built with -z bndplt since it doesn't call > external functions with bounds. But some internal functions, which > need bounds, are

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-07 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 H.J. Lu changed: What|Removed |Added Status|REOPENED|NEW --- Comment #10 from H.J. Lu --- (In

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-06 Thread ienkovich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #9 from Ilya Enkovich --- (In reply to H.J. Lu from comment #8) > > MPX wrapper library doesn't call external functions with bounds > and there is no need to use PLT to call internal functions within > MPX wrapper library. It

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-06 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #8 from H.J. Lu --- (In reply to Ilya Enkovich from comment #7) > (In reply to H.J. Lu from comment #6) > > -z bndplt is needed to call external functions with bounds. But > > it isn't needed for internal function calls. > > That

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-02 Thread ienkovich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #7 from Ilya Enkovich --- (In reply to H.J. Lu from comment #6) > -z bndplt is needed to call external functions with bounds. But > it isn't needed for internal function calls. That doesn't explain why we need a hack you propose.

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-02 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #6 from H.J. Lu --- (In reply to Ilya Enkovich from comment #5) > (In reply to H.J. Lu from comment #3) > > The problem is that the internal MPX wrapper calls in libmpxwrappers.so: > Why doesn't call go through bndplt? Users might

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-02 Thread ienkovich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #5 from Ilya Enkovich --- (In reply to H.J. Lu from comment #3) > The problem is that the internal MPX wrapper calls in libmpxwrappers.so: Why doesn't call go through bndplt? Users might use similar code in their libraries and expect

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-02 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #4 from H.J. Lu --- Created attachment 40232 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40232=edit A patch

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-02 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 H.J. Lu changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-02 Thread dmitrii.kuvais...@tu-dresden.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 --- Comment #2 from Dmitrii Kuvaiskii --- (In reply to Ilya Enkovich from comment #1) > PLT section is generated by linker. To have MPX friendly PLT you have to > have MPX enabled linker supporting '-z bndplt'

[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

2016-12-01 Thread ienkovich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631 Ilya Enkovich changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---