MProtect:无访问的操作系统存储管理
MProtect: Operating System Memory Management without Access
摘要:
现代操作系统(OS)可以不受限制地访问应用程序数据,前提是应用程序信任它们。然而,这种假设在许多情况下是有问题的,其中OS提供商不值得信任或者OS可能由于其大的攻击面而受到损害。我们的调查始于这样一个假设,即不受约束地访问内存对于操作系统执行其自身的工作(包括管理内存)来说并不是根本必要的。其结果是一个名为MProtect的系统,它利用了一小部分软件,运行在比操作系统更高的特权级别上。MProtect保护进程的整个用户空间,只需要对操作系统进行很小的修改,并支持ARM,x86和RISC-V等主要架构。MProtect调解操作系统如何访问内存和处理异常。我们报告了一个实现的MProtect称为MGuard与ARMv 8/Linux和评估其性能与宏和微基准。我们表明,MGuard的运行时TCB比相关系统小2~3倍,并享有竞争力的性能,同时支持合法的操作系统访问用户空间。
英文摘要:
Modern operating systems (OSes) have unfettered access to application data, assuming that applications trust them. This assumption, however, is problematic under many scenarios where either the OS provider is not trustworthy or the OS can be compromised due to its large attack surface. Our investigation began with the hypothesis that unfettered access to memory is not fundamentally necessary for the OS to perform its own job, including managing the memory. The result is a system called MProtect that leverages a small piece of software running at a higher privilege level than the OS. MProtect protects the entire user space of a process, requires only a small modification to the OS, and supports major architectures such as ARM, x86 and RISC-V. Unlike prior works that resorted to nested virtualization, which is often undesirable in mobile and embedded systems, MProtect mediates how the OS accesses the memory and handles exceptions. We report an implementation of MProtect called MGuard with ARMv8/Linux and evaluate its performance with both macro and microbenchmarks. We show MGuard has a runtime TCB 2~3 times smaller than related systems and enjoys competitive performance while supporting legitimate OS access to the user space.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。