使用Caliborms的实用字节粒度内存黑名单
Practical Byte-Granular Memory Blacklisting using Califorms
摘要:
最近内存安全工具和硬件的快速发展提高了软件质量和安全性。虽然粗粒度的内存安全性得到了改进,但由于高性能开销(可能在~ 1.7倍-2.2倍之间),在单个对象的粒度上实现内存安全性仍然是一个挑战。在本文中,我们提出了一个新的想法,称为Califorms,和相关的程序观察,以获得一个低开销的安全解决方案,为实际的,字节粒度的内存安全。我们构建的思想被称为内存黑名单,它禁止程序访问基于程序语义的某些内存区域。现有技术的硬件支持的存储器黑名单虽然比软件黑名单快得多,但对于黑名单位置的每次使用都会创建存储器碎片(大约几个字节)。在本文中,我们观察到用于黑名单的元数据可以存储在程序的数据存储器中的死空间中,并且可以通过改变高速缓存行格式将该元数据集成到微体系结构中。利用这些观察结果,本文提出的基于Calforms的系统将存储器安全的性能开销降低到~1.02x-1.16x,同时提供字节粒度的保护并保持非常低的硬件开销。Califorms提供的低开销使小型和大型对象始终保持内存安全,以及将元数据存储在空白空间中的基本思想,微架构可用于其他安全和性能应用程序。
英文摘要:
Recent rapid strides in memory safety tools and hardware have improved software quality and security. While coarse-grained memory safety has improved, achieving memory safety at the granularity of individual objects remains a challenge due to high performance overheads which can be between ~1.7x-2.2x. In this paper, we present a novel idea called Califorms, and associated program observations, to obtain a low overhead security solution for practical, byte-granular memory safety. The idea we build on is called memory blacklisting, which prohibits a program from accessing certain memory regions based on program semantics. State of the art hardware-supported memory blacklisting while much faster than software blacklisting creates memory fragmentation (of the order of few bytes) for each use of the blacklisted location. In this paper, we observe that metadata used for blacklisting can be stored in dead spaces in a program's data memory and that this metadata can be integrated into microarchitecture by changing the cache line format. Using these observations, Califorms based system proposed in this paper reduces the performance overheads of memory safety to ~1.02x-1.16x while providing byte-granular protection and maintaining very low hardware overheads. The low overhead offered by Califorms enables always on, memory safety for small and large objects alike, and the fundamental idea of storing metadata in empty spaces, and microarchitecture can be used for other security and performance applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。