非信任应用间快速内核旁路I/O的安全共享
Safe Sharing of Fast Kernel-Bypass I/O Among Nontrusting Applications
AI总结:
该研究针对非信任应用安全共享内核旁路I/O的问题,改进受保护用户态库模型,解决有界执行、延迟优化、缓冲区解映射攻击等问题,结合内核旁路与微内核优势,基于DDS的原型实现了更低延迟、更高吞吐量与更低CPU占用。
摘要:
受保护用户态库已被提出作为一种让互不信任的应用安全共享内核旁路服务的方式。在本文中,我们识别并解决了实现该设计时若干此前未被解决的障碍,同时发现了若干优化机会。首先,为了保留内核回收故障进程的能力,受保护库的函数必须在适度的有界时间内完成。我们展示了如何将无界等待移出库本身,从而实现进程间的同步交互且无需轮询。其次,我们展示了如何利用有界时间要求,为进程间交互实现更低且更稳定的延迟。第三,我们发现此前关于受保护库的研究易受缓冲区解映射攻击;我们通过阻止应用移除其与受保护库共享的页面来防范该攻击。第四,我们展示了可信守护进程如何响应异步事件,并在受保护库中与应用线程动态划分工作。\n通过扩展和改进受保护库模型,我们的工作提供了一种构建操作系统服务的新方式,结合了内核旁路与微内核的优势。我们为受保护库的开发者提出了一套安全性与性能指南,并为未来受保护库操作系统的开发者提出了一系列建议。我们通过DDS通信服务的原型版本验证了我们方法的便利性与性能。据我们所知,该原型是首个成功实现互不信任应用共享内核旁路网卡(NIC)的案例。相较于商用的FastDDS实现,我们实现了约50%的延迟降低,最高7倍的吞吐量提升,同时CPU利用率更低。
英文摘要:
Protected user-level libraries have been proposed as a way to allow mutually distrusting applications to safely share kernel-bypass services. In this paper, we identify and solve several previously unaddressed obstacles to realizing this design and identify several optimization opportunities. First, to preserve the kernel's ability to reclaim failed processes, protected library functions must complete in modest, bounded time. We show how to move unbounded waits outside the library itself, enabling synchronous interaction among processes without the need for polling. Second, we show how the bounded time requirement can be leveraged to achieve lower and more stable latency for inter-process interactions. Third, we observe that prior work on protected libraries is vulnerable to a buffer unmapping attack; we prevent this attack by preventing applications from removing pages that they share with the protected library. Fourth, we show how a trusted daemon can respond to asynchronous events and dynamically divide work with application threads in a protected library. By extending and improving the protected library model, our work provides a new way to structure OS services, combining the advantages of kernel bypass and microkernels. We present a set of safety and performance guidelines for developers of protected libraries, and a set of recommendations for developers of future protected library operating systems. We demonstrate the convenience and performance of our approach with a prototype version of the DDS communication service. To the best of our knowledge, this prototype represents the first successful sharing of a kernel-bypass NIC among mutually untrusting applications. Relative to the commercial FastDDS implementation, we achieve approximately 50\% lower latency and up to 7x throughput, with lower CPU utilization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。