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

ARM TrustZone的最低可行设备驱动程序

Minimum Viable Device Drivers for ARM TrustZone

Liwei Guo, Felix Xiaozhu Lin

摘要:

虽然TrustZone可以隔离IO硬件,但它缺乏用于现代IO设备的驱动程序。而不是移植驱动程序,我们提出了一种新的方法来获得最低可行的驱动程序:开发人员行使一个完整的驱动程序和记录的驱动程序/设备的交互;处理后的录音,被称为driverlets,在TEE中重放在运行时间访问IO设备。Driverlets解决了两个关键挑战:正确性和表达性,它们建立在一个称为交互模板的关键结构上。交互模板确保记录的IO作业的忠实再现(尽管是在新的IO数据上);它接受动态输入值;它容忍不确定的设备行为。我们在一系列复杂的设备上演示了driverlet,使其首次能够访问TrustZone。我们的实验表明,driverlets是安全的,易于构建,并产生可接受的开销(与本机驱动程序相比为1.4 - 2.7倍)。Driverlet填补了TrustZone TEE的一个关键空白,实现了其长期承诺的安全IO愿景。

英文摘要:

While TrustZone can isolate IO hardware, it lacks drivers for modern IO devices. Rather than porting drivers, we propose a novel approach to deriving minimum viable drivers: developers exercise a full driver and record the driver/device interactions; the processed recordings, dubbed driverlets, are replayed in the TEE at run time to access IO devices. Driverlets address two key challenges: correctness and expressiveness, for which they build on a key construct called interaction template. The interaction template ensures faithful reproduction of recorded IO jobs (albeit on new IO data); it accepts dynamic input values; it tolerates nondeterministic device behaviors. We demonstrate driverlets on a series of sophisticated devices, making them accessible to TrustZone for the first time to our knowledge. Our experiments show that driverlets are secure, easy to build, and incur acceptable overhead (1.4x -2.7x compared to native drivers). Driverlets fill a critical gap in the TrustZone TEE, realizing its long-promised vision of secure IO.

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

↑