Skip to main content
QUICK REVIEW

[Paper Review] Intel MPX Explained: An Empirical Study of Intel MPX and Software-based Bounds Checking Approaches

Oleksii Oleksenko, Dmitrii Kuvaiskii|arXiv (Cornell University)|Feb 2, 2017
Security and Verification in ComputingComputer Science30 references43 citations
TL;DR

This paper evaluates Intel MPX, a hardware-assisted bounds-checking extension for C/C++ programs, comparing it against software-based solutions like AddressSanitizer, SoftBound, and SAFECode. Despite offering strong spatial error protection, Intel MPX incurs high performance overhead (~50% on average), suffers from immature tooling, lacks temporal error detection, and faces fundamental limitations in multithreading and memory layout flexibility, making it impractical for widespread production use despite its promising design.

ABSTRACT

Memory-safety violations are a prevalent cause of both reliability and security vulnerabilities in systems software written in unsafe languages like C/C++. Unfortunately, all the existing software-based solutions to this problem exhibit high performance overheads preventing them from wide adoption in production runs. To address this issue, Intel recently released a new ISA extension - Memory Protection Extensions (Intel MPX), a hardware-assisted full-stack solution to protect against memory safety violations. In this work, we perform an exhaustive study of the Intel MPX architecture to understand its advantages and caveats. We base our study along three dimensions: (a) performance overheads, (b) security guarantees, and (c) usability issues. To put our results in perspective, we compare Intel MPX with three prominent software-based approaches: (1) trip-wire - AddressSanitizer, (2) object-based - SAFECode, and (3) pointer-based - SoftBound. Our main conclusion is that Intel MPX is a promising technique that is not yet practical for widespread adoption. Intel MPX's performance overheads are still high (roughly 50% on average), and the supporting infrastructure has bugs which may cause compilation or runtime errors. Moreover, we showcase the design limitations of Intel MPX: it cannot detect temporal errors, may have false positives and false negatives in multithreaded code, and its restrictions on memory layout require substantial code changes for some programs.

Motivation & Objective

  • To evaluate Intel MPX's performance, security guarantees, and usability in real-world systems.
  • To compare Intel MPX against three prominent software-based bounds-checking techniques: AddressSanitizer (trip-wire), SoftBound (pointer-based), and SAFECode (object-based).
  • To identify performance bottlenecks, security gaps, and usability issues preventing Intel MPX from being adopted in production environments.
  • To assess whether Intel MPX can provide practical, low-overhead memory safety for systems software written in C/C++.

Proposed method

  • Conducted an exhaustive empirical evaluation of Intel MPX using a diverse set of real-world C/C++ programs from standard benchmarks.
  • Measured runtime performance overhead across different compilers (GCC and ICC) and optimization levels, comparing results to software-based alternatives.
  • Evaluated security coverage by testing detection of known memory safety vulnerabilities, including buffer overflows and dangling pointer issues.
  • Analyzed usability by identifying programs that failed to compile or run under Intel MPX due to memory layout restrictions or toolchain bugs.
  • Investigated multithreaded behavior to detect false positives and false negatives in concurrent execution scenarios.
  • Used microbenchmarks to isolate and analyze performance bottlenecks in bounds-checking instruction execution and memory access to bounds registers.

Experimental results

Research questions

  • RQ1What is the actual performance overhead of Intel MPX compared to software-based bounds-checking solutions like AddressSanitizer, SoftBound, and SAFECode?
  • RQ2To what extent does Intel MPX provide security guarantees against both spatial and temporal memory safety violations?
  • RQ3How do compiler and runtime infrastructure limitations affect the usability and reliability of Intel MPX in practice?
  • RQ4What are the fundamental architectural limitations of Intel MPX, particularly regarding multithreading and memory layout constraints?
  • RQ5Can Intel MPX be considered a viable alternative to software-based tools in production systems, given its current implementation state?

Key findings

  • Intel MPX incurs an average runtime performance overhead of approximately 50%, primarily due to inefficient execution of bounds-checking instructions on a single execution port and costly two-level address translation for bounds register memory access.
  • The supporting compiler infrastructure is immature: GCC-MPX causes up to 150% overhead, and ICC-MPX has critical bugs that prevent 10% of programs from compiling or running correctly.
  • Intel MPX provides no protection against temporal errors such as use-after-free or dangling pointer dereferences, unlike SoftBound and SAFECode, which offer some form of temporal safety.
  • Intel MPX exhibits both false positives and false negatives in multithreaded programs, indicating fundamental incompatibility with concurrent execution that cannot be easily resolved without performance penalties.
  • Due to strict memory layout restrictions, 8–13% of evaluated programs fail to run correctly without substantial code modifications, and an additional 18% required non-intrusive manual fixes.
  • Despite its strong spatial error detection, Intel MPX is not yet production-ready; AddressSanitizer remains the only viable option due to better performance and usability, even though it offers weaker security guarantees.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.