GIANTSAN : Efficient Memory Sanitization with Segment Folding
Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review
Author(s)
Related Research Unit(s)
Detail(s)
Original language | English |
---|---|
Title of host publication | ASPLOS '24 - Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems |
Place of Publication | New York, NY |
Publisher | Association for Computing Machinery |
Pages | 433–449 |
Number of pages | 16 |
Volume | 2 |
ISBN (print) | 979-8-4007-0385-0 |
Publication status | Published - 2024 |
Conference
Title | 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS 2024 |
---|---|
Place | United States |
City | San Diego |
Period | 27 April - 1 May 2024 |
Link(s)
Abstract
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. © 2024 Copyright held by the owner/author(s). Publication rights licensed
to ACM.
Bibliographic Note
Information for this record is supplemented by the author(s) concerned.
Citation Format(s)
GIANTSAN: Efficient Memory Sanitization with Segment Folding. / Ling, Hao; Huang, Heqing; Wang, Chengpeng et al.
ASPLOS '24 - Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems. Vol. 2 New York, NY: Association for Computing Machinery, 2024. p. 433–449.
ASPLOS '24 - Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems. Vol. 2 New York, NY: Association for Computing Machinery, 2024. p. 433–449.
Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review