Exploring effective uses of the tagged memory for reducing bounds checking overheads

  • Seo, Jiwon
  • Bang, Inyoung
  • Cho, Yungi
  • Shin, Jangseop
  • Hwang, Dongil
  • ... Cho, Yeongpil
  • 외 2명
Citations

WEB OF SCIENCE

0
Citations

SCOPUS

0

초록

For spatial memory safety in C/C++ programs, bounds checking (BC) methods have been studied for decades. The practical use of BC has been deferred due to its inherently large performance overhead. Many efforts have been undertaken to reduce overhead by optimizing metadata management. However, BC's performance is affected by another subtask, bounds comparison whose overhead is highly significant. To remedy this issue, we utilize the tagged memory (TM), a security architecture enabling efficient sanity checks by matching the tag IDs of pointers and the referent objects. We may replace expensive bounds comparisons with the lightweight tag matchings. However, due to physical limitation of TM for tag operations, this naive replacement scheme endangers security and even worsens the overhead of BC. Being aware of such downsides, we test a hybrid approach where we classify memory objects into two groups whose sanity is guaranteed by TM and bound comparison, respectively. For this, we perform compiler analysis and runtime profiling to comprehensively consider performance factors that influence the benefits and adverse effects of using TM. Our results exhibit that as long as TM is carefully orchestrated to work with conventional bound comparisons, it is effective to reduce the overall overhead.

키워드

Spatial memory safetyBounds checksTagged memory architectureCompiler analysisSoftware vulnerabilityC++ (programming language)Cost reductionMetadataProgram compilersBounds checkC/C++ programsCompiler analysisMemory safetyPerformanceSoftware vulnerabilitiesSpatial memorySpatial memory safetyTagged memoryTagged memory architectureMemory architecture
제목
Exploring effective uses of the tagged memory for reducing bounds checking overheads
저자
Seo, JiwonBang, InyoungCho, YungiShin, JangseopHwang, DongilKwon, DonghyunCho, YeongpilPaek, Yunheung
DOI
10.1007/s11227-022-04694-y
발행일
2023-01
유형
Article; Early Access
저널명
Journal of Supercomputing
79
1
페이지
1032 ~ 1064