GIANTSAN: Efficient Memory Sanitization with Segment Folding
Hao Ling, Heqing Huang, Chengpeng Wang, Yuandao Cai, Charles Zhang
摘要
Memory safety sanitizers, the sharp weapon for detecting invalid memory operations during execution, employ runtime metadata to model the memory and help find memory errors hidden in the programs. However, location-based methods, the most widely deployed memory sanitization methods thanks to their high compatibility, face the low protection density issue: the number of bytes safeguarded by one metadata is limited. As a result, numerous memory accesses require loading excessive metadata, leading to a high runtime overhead.
To address this issue, we propose a new shadow encoding with segment folding to increase the protection density. Specifically, we characterize neighboring bytes with identical metadata by building novel summaries, called folded segments, on those bytes to reduce unnecessary metadata loadings. The new encoding uses less metadata to safeguard large memory regions, speeding up memory sanitization.
We implement our designed technique as GiantSan. Our evaluation using the SPEC CPU 2017 benchmark shows that GiantSan outperforms the state-of-the-art methods with 59.10% and 38.52% less runtime overhead than ASan and ASan--, respectively. Moreover, under the same redzone setting, GiantSan detects 463 fewer false negative cases than ASan and ASan--in testing the real-world project PHP.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- OPTISAN: Using Multiple Spatial Error Defenses to Optimize Stack Memory Protection within a Budget 引用了 Stack Bounds Protection with Low Fat Pointers
- OPTISAN: Using Multiple Spatial Error Defenses to Optimize Stack Memory Protection within a Budget 引用了 SoK: Sanitizing for Security
- CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 Stack Bounds Protection with Low Fat Pointers
- CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 SoK: Sanitizing for Security
- CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 RangeSanitizer: Detecting Memory Errors with Efficient Range Checks
- CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 PTAuth: Temporal Memory Safety via Robust Points-to Authentication
- SeMalloc: Semantics-Informed Memory Allocator 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- SeMalloc: Semantics-Informed Memory Allocator 引用了 PTAuth: Temporal Memory Safety via Robust Points-to Authentication
- SoK: Sanitizing for Security 引用了 Stack Bounds Protection with Low Fat Pointers
- SoK: Sanitizing for Security 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- NanoTag: Systems Support for Efficient Byte-Granular Overflow Detection on ARM MTE 引用了 Stack Bounds Protection with Low Fat Pointers
- NanoTag: Systems Support for Efficient Byte-Granular Overflow Detection on ARM MTE 引用了 PTAuth: Temporal Memory Safety via Robust Points-to Authentication
- RangeSanitizer: Detecting Memory Errors with Efficient Range Checks 引用了 Stack Bounds Protection with Low Fat Pointers
- RangeSanitizer: Detecting Memory Errors with Efficient Range Checks 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
引用它的顶会 Paper5
- OPTISAN: Using Multiple Spatial Error Defenses to Optimize Stack Memory Protection within a BudgetRahul George, Mingming Chen, Kaiming Huang, Zhiyun Qian 等USENIX Security 2024 · 4 次引用
- NanoTag: Systems Support for Efficient Byte-Granular Overflow Detection on ARM MTEMingkai Li, Hang Ye, Joseph Devietti, Suman Jana 等S&P 2026 · 1 次引用
- CombiSan: Unifying Software Sanitizers for Comprehensive FuzzingMatteo Marini, Floris Gorter, Daniele Cono D'Elia, Cristiano GiuffridaUSENIX Security 2026
- SeMalloc: Semantics-Informed Memory AllocatorRuizhe Wang, Meng Xu, N. AsokanCCS 2024
- RangeSanitizer: Detecting Memory Errors with Efficient Range ChecksFloris Gorter, Cristiano GiuffridaUSENIX Security 2025
它引用的 Paper10
- SoK: Sanitizing for SecurityDokyung Song, Julian Lettner, Prabhu Rajasekaran, Yeoul Na 等S&P 2019 · 196 次引用
- Stack Bounds Protection with Low Fat PointersGregory J. Duck, Roland H. C. Yap, Lorenzo CavallaroNDSS 2017 · 121 次引用
- MCI : Modeling-based Causality Inference in Audit Logging for Attack InvestigationYonghwi Kwon, Fei Wang, Weihang Wang, Kyu Hyung Lee 等NDSS 2018 · 116 次引用
- Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling PointersThurston H. Y. Dang, Petros Maniatis, David A. WagnerUSENIX Security 2017 · 77 次引用
- PTAuth: Temporal Memory Safety via Robust Points-to AuthenticationReza Mirzazade Farkhani, Mansour Ahmadi, Long LuUSENIX Security 2021 · 67 次引用
相关 Paper
- Practical Object-Level Sanitizer with Aggregated Memory Access and Custom AllocatorXiaolei Wang, Ruilin Li, Bin Zhang, Chao Feng 等ICSE 2025
- PACMem: Enforcing Spatial and Temporal Memory Safety via ARM Pointer AuthenticationYuan Li, Wende Tan, Zhizheng Lv, Songtao Yang 等CCS 2022 · 30 次引用
- Debloating Address SanitizerYuchen Zhang, Chengbin Pang, Georgios Portokalidis, Nikos Triandopoulos 等USENIX Security 2022
- Efficient Greybox Fuzzing to Detect Memory ErrorsJinsheng Ba, Gregory J. Duck, Abhik RoychoudhuryASE 2022 · 13 次引用
- QuickSafe: Targeted Hardening Against Memory CorruptionJohannes Blaser, Floris Gorter, Klaus von Gleissenthall, Herbert BosS&P 2026
