arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.01059cs.CRcs.OS
收藏

Blindfold:由不可信操作系统实现的机密内存管理

Blindfold: Confidential Memory Management by Untrusted Operating System

Caihua Li, Seung-seob Lee, Lin Zhong

AI总结:

针对现有机密计算方案导致OS内存优化失效或TCB复杂化的问题,提出Blindfold设计,通过Guardian组件及三种技术增强现有方案,实现不可信OS下的机密内存管理,TCB更小、性能有竞争力,仅需少量内核修改。

摘要:

机密计算(Confidential Computing,CC)作为保护用户数据免受不可信操作系统(OS)侵害的机制,近年来受到越来越多的关注。现有的CC解决方案通过对OS隐藏机密内存和/或对其加密来实现机密性,但这样做会导致OS内存优化无法使用,或使优化所需的可信计算基(TCB)复杂化。本文介绍了我们为克服这些限制所取得的成果,综合为名为Blindfold的CC设计。与许多其他CC解决方案一样,Blindfold依赖于一个运行在比内核更高特权级别的小型可信软件组件,称为Guardian。它具有三种可增强现有CC解决方案的技术:首先,Guardian不使用嵌套页表,而是通过切换页表和中断表来调解OS对内存的访问并处理异常;其次,Blindfold采用轻量级能力系统来规范内核对用户内存的语义访问,统一了先前工作中的逐案处理方法;最后,Blindfold提供精心设计的安全ABI用于机密内存管理,无需加密。我们报告了在ARMv8-A/Linux上实现的Blindfold,通过原型评估了不可信Linux内核启用机密内存管理的成本。结果显示,Blindfold的运行时TCB小于相关系统,性能具有竞争力,且Linux内核(除内存压缩外的所有内存优化)可正常处理机密内存,仅需约400行内核修改。

英文摘要:

Confidential Computing (CC) has received increasing attention in recent years as a mechanism to protect user data from untrusted operating systems (OSes). Existing CC solutions hide confidential memory from the OS and/or encrypt it to achieve confidentiality. In doing so, they render OS memory optimization unusable or complicate the trusted computing base (TCB) required for optimization. This paper presents our results toward overcoming these limitations, synthesized in a CC design named Blindfold. Like many other CC solutions, Blindfold relies on a small trusted software component running at a higher privilege level than the kernel, called Guardian. It features three techniques that can enhance existing CC solutions. First, instead of nesting page tables, Guardian mediates how the OS accesses memory and handles exceptions by switching page and interrupt tables. Second, Blindfold employs a lightweight capability system to regulate the kernel semantic access to user memory, unifying case-by-case approaches in previous work. Finally, Blindfold provides carefully designed secure ABI for confidential memory management without encryption. We report an implementation of Blindfold that works on ARMv8-A/Linux. Using Blindfold prototype, we are able to evaluate the cost of enabling confidential memory management by the untrusted Linux kernel. We show Blindfold has a smaller runtime TCB than related systems and enjoys competitive performance. More importantly, we show that the Linux kernel, including all of its memory optimizations except memory compression, can function properly for confidential memory. This requires only about 400 lines of kernel modifications.

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

↑