Sie befinden Sich nicht im Netzwerk der Universität Paderborn. Der Zugriff auf elektronische Ressourcen ist gegebenenfalls nur via VPN oder Shibboleth (DFN-AAI) möglich. mehr Informationen...
ACM transactions on architecture and code optimization, 2021-12, Vol.18 (4), p.1-27
2021
Volltextzugriff (PDF)

Details

Autor(en) / Beteiligte
Titel
PICO: A Presburger In-bounds Check Optimization for Compiler-based Memory Safety Instrumentations
Ist Teil von
  • ACM transactions on architecture and code optimization, 2021-12, Vol.18 (4), p.1-27
Erscheinungsjahr
2021
Quelle
EZB Electronic Journals Library
Beschreibungen/Notizen
  • Memory safety violations such as buffer overflows are a threat to security to this day. A common solution to ensure memory safety for C is code instrumentation. However, this often causes high execution-time overhead and is therefore rarely used in production. Static analyses can reduce this overhead by proving some memory accesses in bounds at compile time. In practice, however, static analyses may fail to verify in-bounds accesses due to over-approximation. Therefore, it is important to additionally optimize the checks that reside in the program. In this article, we present PICO, an approach to eliminate and replace in-bounds checks. PICO exactly captures the spatial memory safety of accesses using Presburger formulas to either verify them statically or substitute existing checks with more efficient ones. Thereby, PICO can generate checks of which each covers multiple accesses and place them at infrequently executed locations. We evaluate our LLVM-based PICO prototype with the well-known SoftBound instrumentation on SPEC benchmarks commonly used in related work. PICO reduces the execution-time overhead introduced by SoftBound by 36% on average (and the code-size overhead by 24%). Our evaluation shows that the impact of substituting checks dominates that of removing provably redundant checks.
Sprache
Englisch
Identifikatoren
ISSN: 1544-3566
eISSN: 1544-3973
DOI: 10.1145/3460434
Titel-ID: cdi_crossref_primary_10_1145_3460434
Format

Weiterführende Literatur

Empfehlungen zum selben Thema automatisch vorgeschlagen von bX