<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Just wanted to say thank you for
      publishing this.  I ran across your micro-benchmark numbers a few
      days ago through another avenue, and found them incredibly
      helpful.  I also found your explanations of the various
      instruction semantics be much easier to understand than the Intel
      docs.  Thank you; this has saved me a lot of time and has
      triggered some experimental follow up work of my own.<br>
      <br>
      <a class="moz-txt-link-freetext" href="https://intel-mpx.github.io/microbenchmarks/">https://intel-mpx.github.io/microbenchmarks/</a><br>
      <br>
      Philip<br>
      <br>
      On 02/17/2017 02:04 AM, Oleksii Oleksenko via llvm-dev wrote:<br>
    </div>
    <blockquote
      cite="mid:5e57ebb4-9b14-7e07-1d5b-636842bb2149@tu-dresden.de"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <p>
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        Hello,<br>
        <br>
        even though the study of Intel MPX took much longer than
        expected, we have finally finished it. Currently, it is
        published in two formats:<br>
        <br>
        * as a technical report:  <a moz-do-not-send="true"
          class="moz-txt-link-freetext"
          href="https://arxiv.org/abs/1702.00719">https://arxiv.org/abs/1702.00719</a><br>
        * and as a webpage:  <a moz-do-not-send="true"
          class="moz-txt-link-freetext"
          href="https://intel-mpx.github.io/">https://intel-mpx.github.io/</a><br>
        <br>
        This work contains evaluation of MPX from perspectives of
        performance (Phoenix, PARSEC, and SPEC benchmark suites),
        security (RIPE and found bugs in benchmarks), and usability
        (false positives and required changes in applications).
        Additionally, we've analyzed various implementation aspects of
        Intel MPX and tested it on real-world applications. <br>
        <br>
        We would appreciate your feedback.</p>
      <p><br>
      </p>
      Regards,<br>
      Oleksii Oleksenko<br>
      <br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On 02/09/2016 10:27 PM, Kostya Serebryany via llvm-dev wrote:
><i> On Tue, Feb 9, 2016 at 7:22 AM, Dmitrii Kuvaiskii <
</i>><i> <a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">Dmitrii.Kuvaiskii at tu-dresden.de</a>> wrote:
</i>><i>
</i>>><i> Thank you Sergey and Konstantin for useful suggestions. We are
</i>>><i> currently bootstrapping the infrastructure for our experiments. We
</i>>><i> would like to make a sufficiently comprehensive report, with not only
</i>>><i> the performance/memory overhead numbers, but also discussing and
</i>>><i> evaluating security guarantees. I will also examine the available
</i>>><i> source codes (ASan, gcc-mpx, SoftBound) and will spend some pages on a
</i>>><i> discussion of the different approaches (trying to do science, you see
</i>>><i> :)).
</i>>><i>
</i>>><i> Btw, I will target only deterministic memory-safety no-code-changes
</i>>><i> approaches that protect against spatial errors (I will probably
</i>>><i> include also ASan and SoftBoundCETS with temporal errors' protection
</i>>><i> in the results as well). The only technique (except Pointer Checker,
</i>>><i> ASan, and SoftBound) I know of is Baggy Bounds Checking from MSR, but
</i>>><i> it seems to be closed-source and Windows-oriented. If anyone can
</i>>><i> suggest some other technique that could be evaluated here, please
</i>>><i> inform me.
</i>>><i>
</i>><i>
</i>><i> There is also a family of tools originated from Electric Fence
</i>><i> <<a moz-do-not-send="true" href="http://elinux.org/Electric_Fence">http://elinux.org/Electric_Fence</a>>,
</i>><i> they mostly have historical interest due to huge slowdown/memory
</i>><i> consumption.
</i>
I can assure you that they are still widely used for QA :)

><i> Are you looking for bug detection mechanisms, or also for production
</i>><i> hardening techniques?
</i>><i> ASan is a bug detection tool. ASan can
</i>><i> <<a moz-do-not-send="true" href="https://blog.torproject.org/blog/tor-browser-55a4-hardened-released">https://blog.torproject.org/blog/tor-browser-55a4-hardened-released</a>> be
</i>><i> used for hardening, but that's not it's primary purpose.
</i>><i> Same is true (IMHO) about Pointer Checker and SoftBound.
</i>><i>
</i>><i> Hardening is an entirely different subject, although there is a bit of
</i>><i> intersection,
</i>><i> e.g. I know that parts of UBSan (-fsanitize=signed-integer-overflow) are
</i>><i> used for hardening.
</i>><i> In LLVM, also have a look at clang.llvm.org/docs/ControlFlowIntegrity.html
</i>><i> and
</i>><i> <a moz-do-not-send="true" href="http://clang.llvm.org/docs/SafeStack.html">http://clang.llvm.org/docs/SafeStack.html</a>
</i>><i>
</i>>><i>
</i>>><i> Anyway, before putting the techreport online, I will send the draft to
</i>>><i> everyone who took part in this conversation, just to be on the safe
</i>>><i> side and correct any bugs/wrong conclusions.
</i>>><i>
</i>><i>
</i>><i> I would appreciate this.
</i>><i>
</i>><i> --kcc
</i>><i>
</i>><i>
</i>>><i>
</i>>><i> On Tue, Feb 9, 2016 at 3:24 PM, Sergey Ostanevich <<a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">sergos.gnu at gmail.com</a>>
</i>>><i> wrote:
</i>>>><i> Dmitrii, all,
</i>>>><i>
</i>>>><i> Please note, that GCC 5.3 had a significant update to the MPX code
</i>>><i> quality -
</i>>>><i> please, use this version as reference.
</i>>>><i>
</i>>>><i> Regards,
</i>>>><i> Sergos
</i>>>><i>
</i>>>><i> On Tue, Feb 9, 2016 at 12:49 AM, Kostya Serebryany via llvm-dev
</i>>>><i> <<a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">llvm-dev at lists.llvm.org</a>> wrote:
</i>>>>><i>
</i>>>>><i>
</i>>>>><i>
</i>>>>><i> On Thu, Feb 4, 2016 at 10:40 AM, Kostya Serebryany <<a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">kcc at google.com</a>>
</i>>><i> wrote:
</i>>>>>><i>
</i>>>>>><i>
</i>>>>>><i>
</i>>>>>><i> On Thu, Feb 4, 2016 at 4:59 AM, Dmitrii Kuvaiskii
</i>>>>>><i> <<a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">Dmitrii.Kuvaiskii at tu-dresden.de</a>> wrote:
</i>>>>>>><i>
</i>>>>>>>>><i> Recently I played with MPX support on Intel C/C++ Compiler (icc).
</i>>>>>>>>><i> This
</i>>>>>>>>><i> implementation looks *much* better, with the following example
</i>>>>>>>>><i> overheads: 1.2X on "raytrace", 1.25X on "bodytrack", 1.08X on
</i>>>>>>>>><i> "streamcluster". So the common overheads are in the range of
</i>>><i> 15%-25%!
</i>>>>>>>><i> That's interesting.
</i>>>>>>>><i> Are you sure you are instrumenting both reads and writes with icc?
</i>>>>>>><i>
</i>>>>>>><i> Yes, here are the exact flags I add to the usual build configuration:
</i>>>>>>><i>    -xHOST -check-pointers-mpx:rw
</i>>>>>><i>
</i>>>>>><i>
</i>>>>>><i> Interesting, looking forward to reading your report!
</i>>>>>>><i>
</i>>>>>>><i>
</i>>>>>>><i> Note "rw" which stands for protecting read and write accesses. In the
</i>>>>>>><i> future, I will analyze how different flags affect ASan / SoftBoundCETS
</i>>>>>>><i> / gcc-mpx / icc-mpx.
</i>>>>>>><i> I will also use a set of microbenchmarks/benchmarks (e.g., RIPE) to
</i>>>>>>><i> test the protection provided.
</i>>>>>>><i>
</i>>>>>>>><i> SPEC2006 is well know so it could be useful. Especially
</i>>><i> 483.xalancbmk
</i>>>>>>>><i> Besides, maybe you could take something that is not strictly a
</i>>>>>>>><i> benchmark.
</i>>>>>>>><i> E.g. take pdfium_test (<a moz-do-not-send="true" href="https://pdfium.googlesource.com/pdfium/">https://pdfium.googlesource.com/pdfium/</a>) and
</i>>>>>>>><i> feed
</i>>>>>>>><i> several large pdf files to it.
</i>>>>>>><i>
</i>>>>>>><i> Thanks, I will report the SPEC2006 numbers as well.
</i>>>>>>><i>
</i>>>>>><i>
</i>>>>>><i> Note that SPEC2006 has several know bugs that trigger under asan.
</i>>>>>><i>
</i>>>>>><i>
</i>>><i> <a moz-do-not-send="true" href="https://github.com/google/sanitizers/wiki/AddressSanitizerRunningSpecBenchmarks">https://github.com/google/sanitizers/wiki/AddressSanitizerRunningSpecBenchmarks</a>
</i>>>>>><i> has a patch that makes SPEC2006 pass with asan.
</i>>>>>><i> Some of these bugs and maybe others may also trigger with an MPX
</i>>><i> checker.
</i>>>>><i>
</i>>>>><i>
</i>>>>><i> Another note: please also try to document the memory footprint.
</i>>>>><i> One of unfortunate features of MPX is its large metadata storage which
</i>>><i> may
</i>>>>><i> in
</i>>>>><i> theory consume as much as 4x more RAM than the application itself.
</i>>>>><i>
</i>>>>><i> --kcc
</i>>>>><i>
</i>>>>>><i>
</i>>>>>><i>
</i>>>>>><i> --kcc
</i>>>>>><i>
</i>>>>>>><i> --
</i>>>>>>><i> Yours sincerely,
</i>>>>>>><i> Dmitrii Kuvaiskii
</i>>>>>><i>
</i>>>>>><i>
</i>>>>><i>
</i>>>>><i>
</i>>>>><i> _______________________________________________
</i>>>>><i> LLVM Developers mailing list
</i>>>>><i> <a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">llvm-dev at lists.llvm.org</a>
</i>>>>><i> <a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</i>>>>><i>
</i>>>><i>
</i>>><i>
</i>>><i> --
</i>>><i> Yours sincerely,
</i>>><i> Dmitrii Kuvaiskii
</i>>><i>
</i>><i>
</i>><i>
</i>><i>
</i>><i> _______________________________________________
</i>><i> LLVM Developers mailing list
</i>><i> <a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">llvm-dev at lists.llvm.org</a>
</i>><i> <a moz-do-not-send="true" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</i>></pre>
      <pre class="moz-signature" cols="72">-- 

Best Regards,
Oleksii Oleksenko

TU Dresden
Faculty of Computer Science
Chair of Systems Engineering</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>