基于硬件能力的软件划分权衡
Software Compartmentalization Trade-Offs with Hardware Capabilities
AI总结:
本文在 ARM Morello 芯片上利用 CHERI 硬件能力探索软件划分方案,提出两种在工程投入、安全性、可扩展性和性能之间不同权衡的方法,并通过原型操作系统和两个流行应用验证了低工程成本划分的可行性及与其他地址空间内隔离机制相似的性能开销。
摘要:
划分是一种防御性软件设计形式,其中应用程序被分解为相互隔离但可通信的组件。将划分改造到现有应用程序中,从工程投入和性能开销的角度来看,通常被认为是昂贵的。尽管如此,近年来出现了多种划分方法提案,承诺降低工程投入并减少性能影响。ARM Morello 将现代 ARM 处理器与 Capability Hardware Enhanced RISC Instructions(CHERI)的实现相结合,旨在提供高效且安全的划分。以往探索基于 CHERI 的划分的工作仅限于仿真/FPGA 原型。在本文中,我们探索了在 Morello 芯片上使用 CHERI 的可行划分方案。我们提出了两种方法,它们在工程投入、安全性、可扩展性和性能影响方面代表了不同的权衡。我们在一个运行于 Morello 芯片裸机上的原型操作系统上描述并实现了这些方法,对两个流行应用程序进行了划分,并研究了性能开销。此外,我们表明,如果愿意在可扩展性和安全性上做出权衡,划分可以以相当低的工程成本实现,并且性能开销与其他地址空间内隔离机制相似。
英文摘要:
Compartmentalization is a form of defensive software design in which an application is broken down into isolated but communicating components. Retrofitting compartmentalization into existing applications is often thought to be expensive from the engineering effort and performance overhead points of view. Still, recent years have seen proposals of compartmentalization methods with promises of low engineering efforts and reduced performance impact. ARM Morello combines a modern ARM processor with an implementation of Capability Hardware Enhanced RISC Instructions (CHERI) aiming to provide efficient and secure compartmentalization. Past works exploring CHERI-based compartmentalization were restricted to emulated/FPGA prototypes. In this paper, we explore possible compartmentalization schemes with CHERI on the Morello chip. We propose two approaches representing different trade-offs in terms of engineering effort, security, scalability, and performance impact. We describe and implement these approaches on a prototype OS running bare metal on the Morello chip, compartmentalize two popular applications, and investigate the performance overheads. Furthermore, we show that compartmentalization can be achieved with an engineering cost that can be quite low if one is willing to trade off on scalability and security, and that performance overheads are similar to other intra-address space isolation mechanisms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。