一种适用于现代硬件的最小开销内存保护模型
A Least-Privilege Memory Protection Model for Modern Hardware
摘要:
我们提出了一种新的基于最小特权的寻址模型,在此基础上,存储管理功能在操作系统中的现代计算机,如电话或基于服务器的加速器。现有的软件假设没有考虑到具有不同地址空间视图的异构内核,导致了存储管理代码中的大量安全漏洞(例如,编程IOMMU)的相关问题,以及主流操作系统无法安全地管理电话片上系统上的完整硬件资源集。我们的新工作是基于最近的正式模型的地址转换硬件,将机器视为一个可配置的网络地址空间。我们对此进行了改进,以足够细的粒度从现代SoC和加速器中捕获现有的地址转换硬件,以模拟访问内存和配置转换硬件的最小权限。然后,我们在Haskell中构建了一个可执行的规范,它以分区功能的形式表达了模型和元数据结构。最后,我们展示了一个完整的功能实现的模型在C中创建的扩展能力系统的Barrelfish的研究操作系统。我们的评估表明,我们的未优化的实现具有可比的(在某些情况下)更好的性能比Linux虚拟内存系统,尽管都捕获所有的功能,现代硬件寻址,使最低特权,分散的权力访问物理内存和设备。
英文摘要:
We present a new least-privilege-based model of addressing on which to base memory management functionality in an OS for modern computers like phones or server-based accelerators. Existing software assumptions do not account for heterogeneous cores with different views of the address space, leading to the related problems of numerous security bugs in memory management code (for example programming IOMMUs), and an inability of mainstream OSes to securely manage the complete set of hardware resources on, say, a phone System-on-Chip. Our new work is based on a recent formal model of address translation hardware which views the machine as a configurable network of address spaces. We refine this to capture existing address translation hardware from modern SoCs and accelerators at a sufficiently fine granularity to model minimal rights both to access memory and configure translation hardware. We then build an executable specification in Haskell, which expresses the model and metadata structures in terms of partitioned capabilities. Finally, we show a fully functional implementation of the model in C created by extending the capability system of the Barrelfish research OS. Our evaluation shows that our unoptimized implementation has comparable (and in some cases) better performance than the Linux virtual memory system, despite both capturing all the functionality of modern hardware addressing and enabling least-privilege, decentralized authority to access physical memory and devices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。