arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.11622cs.CR
收藏

FRAMER:一种基于软件的能力模型

FRAMER: A Software-based Capability Model

Myoung Jin Nam, Periklis Akritidis, David J Greaves

摘要:

C和C++程序的细粒度内存保护必须跟踪单个对象(或指针),并存储每个对象(指针)的边界信息。它的成本主要是元数据更新和查找,这使得有效的元数据管理成为最小化性能影响的关键。现有方法通过牺牲精度、通过改变对象存储器布局破坏二进制兼容性、或者通过过度对齐或大的影子存储器空间浪费空间来减少元数据管理开销。我们提出了FRAMER,一个软件能力模型的对象粒度内存保护。其有效的每对象元数据管理机制,使直接存取元数据计算其位置从标记指针的对象,对于大型对象,紧凑的补充表。使用一种新颖的技术来平衡该标签中的位数和补充表的大小以使两者最小化。FRAMER是用于对象元数据管理的一般建议,其具有在存储器安全、类型安全、线程安全和垃圾回收中的潜在应用,其通过以下方式改进先前的解决方案:(1)通过使对象携带其元数据来增加引用的局部性,(2)使昂贵的元数据查找流线化,(3)通过避免多余的对齐和填充来节省空间,(4)避免内部对象存储器布局改变。

英文摘要:

Fine-grained memory protection for C and C++ programs must track individual objects (or pointers), and store bounds information per object (pointer). Its cost is dominated by metadata updates and lookups, making efficient metadata management the key for minimizing performance impact. Existing approaches reduce metadata management overheads by sacrificing precision, breaking binary compatibility by changing object memory layout, or wasting space by excessive alignment or large shadow memory spaces. We propose FRAMER, a software capability model for object-granularity memory protection. Its efficient per-object metadata management mechanism enables direct access to metadata by calculating their location from a tagged pointer to the object and, for large objects, a compact supplementary table. The number of bits in this tag and the size of the supplementary table are balanced to minimize both using a novel technique. FRAMER is a general proposal for object metadata management with potential applications in memory safety, type safety, thread safety and garbage collection that improves over previous solutions by (1) increasing locality of reference by having objects carry their metadata, (2) streamlining expensive metadata lookups, (3) saving space by avoiding superfluous alignment and padding, (4) avoiding internal object memory layout changes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑