PACSan:基于ARM PA的内存安全实施
PACSan: Enforcing Memory Safety Based on ARM PA
摘要:
内存安全是阻止内存损坏漏洞的关键安全属性。现有的消毒器在开发和测试期间强制检查并捕获此类错误。然而,它们要么提供部分内存安全,要么具有压倒性的高性能开销。我们的新型消毒剂PACSan在低性能开销下实现了空间和时间存储器的安全性,没有误报。PACSan通过ARM PA(指针验证)将元数据密封在指针中,并在指针被解引用时执行内存安全检查,从而消除了指针跟踪中涉及的大部分开销。我们已经开发了PACSan的原型,并分别在Magma,Juliet,Nginx和SPEC CPU2017测试套件上系统地评估了其安全性和性能。在我们的评估中,PACSan显示没有误报,误报可以忽略不计,同时引入了更强的安全保证和比最先进的消毒剂更低的性能开销,包括HWASan,ASan,SoftBound+CETS,Memcheck,LowFat和PTAuth。具体来说,PACSan平均有0.84倍的运行时开销和1.92倍的内存开销。与广泛部署的ASan相比,PACSan没有误报和漏报,并减少了7.172%的运行时开销和89.063%的内存开销。
英文摘要:
Memory safety is a key security property that stops memory corruption vulnerabilities. Existing sanitizers enforce checks and catch such bugs during development and testing. However, they either provide partial memory safety or have overwhelmingly high performance overheads. Our novel sanitizer PACSan enforces spatial and temporal memory safety with no false positives at low performance overheads. PACSan removes the majority of the overheads involved in pointer tracking by sealing metadata in pointers through ARM PA (Pointer Authentication), and performing the memory safety checks when pointers are dereferenced. We have developed a prototype of PACSan and systematically evaluated its security and performance on the Magma, Juliet, Nginx, and SPEC CPU2017 test suites, respectively. In our evaluation, PACSan shows no false positives together with negligible false negatives, while introducing stronger security guarantees and lower performance overheads than state-of-the-art sanitizers, including HWASan, ASan, SoftBound+CETS, Memcheck, LowFat, and PTAuth. Specifically, PACSan has 0.84x runtime overhead and 1.92x memory overhead on average. Compared to the widely deployed ASan, PACSan has no false positives and much fewer false negatives and reduces 7.172% runtime overheads and 89.063%memory overheads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。