Shadow state encoding for efficient monitoring of block-level properties

Kostyantyn Vorobyov, Julien Signoles, Nikolai Kosmatov

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Memory shadowing associates addresses from an application's memory to values stored in a disjoint memory space called shadow memory. At runtime shadow values store metadata about application memory locations they are mapped to. Shadow state encodings -The structure of shadow values and their interpretation - vary across different tools. Encodings used by the state-of-The-Art monitoring tools have been proven useful for tracking memory at a byte-level, but cannot address properties related to memory block boundaries. Tracking block boundaries is however crucial for spatial memory safety analysis, where a spatial violation such as outof- bounds access, may dereference an allocated location belonging to an adjacent block or a different struct member. This paper describes two novel shadow state encodings which capture block-boundary-related properties. These encodings have been implemented in E-ACSL -A runtime verification tool for C programs. Initial experiments involving checking validity of pointer and array accesses in computationally intensive runs of programs selected from SPEC CPU benchmarks demonstrate runtime and memory overheads comparable to state-of-The-Art memory debuggers.

Original languageEnglish
Title of host publicationISMM 2017 - Proceedings of the 2017 ACM SIGPLAN International Symposium on Memory Management, co-located with PLDI 2017
EditorsChristoph M. Kirsch, Ben L. Titzer
PublisherAssociation for Computing Machinery
Pages47-58
Number of pages12
ISBN (Electronic)9781450350440
DOIs
Publication statusPublished - 18 Jun 2017
Externally publishedYes
Event2017 ACM SIGPLAN International Symposium on Memory Management, ISMM 2017 - Barcelona, Spain
Duration: 18 Jun 2017 → …

Publication series

NameInternational Symposium on Memory Management, ISMM
VolumePart F128677

Conference

Conference2017 ACM SIGPLAN International Symposium on Memory Management, ISMM 2017
Country/TerritorySpain
CityBarcelona
Period18/06/17 → …

Keywords

  • Frama-c
  • Memory safety
  • Runtime monitoring
  • Shadow memory

Fingerprint

Dive into the research topics of 'Shadow state encoding for efficient monitoring of block-level properties'. Together they form a unique fingerprint.

Cite this