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

CAPIO:利用能力安全绕过通用设备的内核

CAPIO: Safe Kernel-Bypass of Commodity Devices using Capabilities

Northwestern University(西北大学)

Friedrich Doku, Jonathan Laughton, Nick Wanninger, Peter Dinda

AI总结:

CAPIO通过硬件能力实现细粒度内存映射I/O访问控制,使内核能安全地将延迟关键硬件访问委托给用户空间,同时防止特权寄存器交互。

摘要:

在通用系统中实现低延迟I/O迫使进行根本性的权衡:依赖内核的高开销中介接口,或完全绕过它,将敏感硬件资源暴露给用户空间,从而产生新的漏洞。这种困境源于硬件粒度不匹配:标准MMU在页面边界操作,使得无法选择性地暴露安全设备寄存器,而必须同时暴露同一页上的敏感控制寄存器。现有解决方案的驱动隔离强制采用一种无法保护子页面设备资源的隔离模型。本文提出了CAPIO,这是首个利用硬件能力来在内存映射I/O上实施细粒度访问控制的架构。与以往基于页面的保护不同,CAPIO利用不可伪造的能力来创建精确的、子页面的“切片”设备内存。这种机制使内核能够将延迟关键的硬件访问委托给用户空间应用程序,同时严格防止与同一页的特权寄存器交互。我们基于CHERI在ARM Morello平台上实现了CAPIO,并展示了一个为通用网络卡设计的证明概念安全访问驱动程序,该网络卡原本并非为内核绕过而设计。我们证明CAPIO在实现内核绕过延迟改进的同时,能够实施字节级的特权资源访问控制。

英文摘要:

Securing low-latency I/O in commodity systems forces a fundamental trade-off: rely on the kernel's high overhead mediated interface, or bypass it entirely, exposing sensitive hardware resources to userspace and creating new vulnerabilities. This dilemma stems from a hardware granularity mismatch: standard MMUs operate at page boundaries, making it impossible to selectively expose safe device registers without also exposing the sensitive control registers colocated on the same page. Existing solutions to driver isolation enforce an isolation model that cannot protect sub-page device resources. This paper presents CAPIO, the first architecture to leverage hardware capabilities to enforce fine-grained access control on memory-mapped I/O. Unlike prior page-based protections, CAPIO utilizes unforgeable capabilities to create precise, sub-page "slices" of device memory. This mechanism enables the kernel to delegate latency-critical hardware access to userspace applications while strictly preventing interaction with co-located privileged registers. We implement CAPIO based on CHERI on the ARM Morello platform and demonstrate a proof-of-concept safe-access driver for a commodity network card which was not originally designed for kernel bypass. We demonstrate that CAPIO achieves the latency improvements of kernel bypass while enforcing byte-level access control of privileged resources.

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

↑