Bitte benutzen Sie diese Referenz, um auf diese Ressource zu verweisen: doi:10.22028/D291-34529
Titel: PICO: A Presburger In-bounds Check Optimization for Compiler-based Memory Safety Instrumentations
VerfasserIn: Jung, Tina
Ritter, Fabian
Hack, Sebastian
Sprache: Englisch
Titel: ACM Transactions on Architecture and Code Optimization
Bandnummer: 18
Heft: 4
Seiten: 1-27
Verlag/Plattform: ACM
Erscheinungsjahr: 2021
Freie Schlagwörter: Optimization
spatial memory safety
Presburger
C language
LLVM
DDC-Sachgruppe: 004 Informatik
Dokumenttyp: Journalartikel / Zeitschriftenartikel
Abstract: 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.
DOI der Erstveröffentlichung: 10.1145/3460434
Link zu diesem Datensatz: urn:nbn:de:bsz:291--ds-345298
hdl:20.500.11880/31623
http://dx.doi.org/10.22028/D291-34529
ISSN: 1544-3973
Datum des Eintrags: 10-Aug-2021
Fakultät: MI - Fakultät für Mathematik und Informatik
Fachrichtung: MI - Informatik
Professur: MI - Prof. Dr. Sebastian Hack
Sammlung:SciDok - Der Wissenschaftsserver der Universität des Saarlandes

Dateien zu diesem Datensatz:
Datei Beschreibung GrößeFormat 
3460434.pdf2,11 MBAdobe PDFÖffnen/Anzeigen


Diese Ressource wurde unter folgender Copyright-Bestimmung veröffentlicht: Lizenz von Creative Commons Creative Commons