USENIX ATC2022顶会
Privbox: Faster System Calls Through Sandboxed Privileged Execution
Dmitry Kuznetsov, Adam Morrison
摘要
System calls are the main method for applications to request services from the operating system, but their invocation incurs considerable overhead, which has been aggravated by mitigation mechanisms for transient execution attacks. Proposed approaches for reducing system call overhead all break the semantic equivalence between system calls and regular function calls (e.g., by making system calls asynchronous), and so their adoption requires rearchitecting applications.
This paper proposes Privbox, a new approach for lightweight system calls that maintains the familiar synchronous, function-like system call model. Privbox allows an application to execute system call-intensive code in a semiprivileged, sandboxed execution mode, called a "privbox". Semi-privileged execution is architecturally similar to the kernel's privileged execution, which enables faster invocation of system calls, but the code is sandboxed to ensure that it cannot use its elevated privileges to compromise the system. We further propose semi-privileged access prevention (SPAP), a simple hardware architectural feature that alleviates much of Privbox's instrumentation overhead.
We implement Privbox based on Linux and LLVM. Our evaluation on x86 (Intel Skylake) hardware shows that Privbox (1) speeds up system call invocation by 2.2×; (2) can increase throughput of I/O-threaded applications by up to 1.7×; and (3) can increase the throughput of real-world workloads such as Redis by up to 7.6% and 11%, without and with SPAP, respectively.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Efficiently Mitigating Transient Execution Attacks using the Unmapped Speculation Contract 引用了 Spectre Attacks: Exploiting Speculative Execution
- Efficiently Mitigating Transient Execution Attacks using the Unmapped Speculation Contract 引用了 Meltdown: Reading Kernel Memory from User Space
- An Analysis of Speculative Type Confusion Vulnerabilities in the Wild 引用了 Spectre Attacks: Exploiting Speculative Execution
- An Analysis of Speculative Type Confusion Vulnerabilities in the Wild 引用了 Meltdown: Reading Kernel Memory from User Space
- BUDAlloc: Defeating Use-After-Free Bugs by Decoupling Virtual Address Management from Kernel 引用了 Spectre Attacks: Exploiting Speculative Execution
- HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64 引用了 Spectre Attacks: Exploiting Speculative Execution
- HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64 引用了 PANIC: PAN-assisted Intra-process Memory Isolation on ARM
- HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64 引用了 Meltdown: Reading Kernel Memory from User Space
- HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64 引用了 Userspace Bypass: Accelerating Syscall-intensive Applications
- Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
- A Systematic Evaluation of Transient Execution Attacks and Defenses 引用了 Spectre Attacks: Exploiting Speculative Execution
- Userspace Bypass: Accelerating Syscall-intensive Applications 引用了 Spectre Attacks: Exploiting Speculative Execution
- Userspace Bypass: Accelerating Syscall-intensive Applications 引用了 Meltdown: Reading Kernel Memory from User Space
引用它的顶会 Paper6
- Userspace Bypass: Accelerating Syscall-intensive ApplicationsZhe Zhou, Yanxiang Bi, Junpeng Wan, Yangfan Zhou 等OSDI 2023 · 18 次引用
- PANIC: PAN-assisted Intra-process Memory Isolation on ARMJiali Xu, Mengyao Xie, Chenggang Wu, Yinqian Zhang 等CCS 2023 · 11 次引用
- ISA-Grid: Architecture of Fine-grained Privilege Control for Instructions and RegistersShulin Fan, Zhichao Hua, Yubin Xia, Haibo Chen 等ISCA 2023 · 9 次引用
- HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64Peihua Zhang, Chenggang Wu, Xiangyu Meng, Yinqian Zhang 等USENIX Security 2024 · 8 次引用
- BUDAlloc: Defeating Use-After-Free Bugs by Decoupling Virtual Address Management from KernelJunho Ahn, Jaehyeon Lee, Kanghyuk Lee, Wooseok Gwak 等USENIX Security 2024 · 6 次引用
它引用的 Paper5
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
- A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp 等USENIX Security 2019 · 442 次引用
- An Analysis of Speculative Type Confusion Vulnerabilities in the WildOfek Kirzner, Adam MorrisonUSENIX Security 2021 · 40 次引用
- Efficiently Mitigating Transient Execution Attacks using the Unmapped Speculation ContractJonathan Behrens, Anton Cao, Cel Skeggs, Adam Belay 等OSDI 2020 · 18 次引用
相关 Paper
- Building Dynamic System Call Sandbox with Partial Order AnalysisQuan Zhang, Chijin Zhou, Yiwen Xu, Zijing Yin 等OOPSLA 2023 · 5 次引用
- LatticeBox: A Hardware-Software Co-Designed Framework for Scalable and Low-Latency CompartmentalizationZhanpeng Liu, Chenyang Li, Wende Tan, Yuan Li 等NDSS 2026 · 1 次引用
- DataHook: An Efficient and Lightweight System Call Hooking Technique without Instruction ModificationQuan Hong, Jiaqi Li, Wen Zhang, Lidong ZhaiISSTA 2025
- BeeBox: Hardening BPF against Transient Execution AttacksDi Jin, Alexander J. Gaidis, Vasileios P. KemerlisUSENIX Security 2024 · 10 次引用
- Pushing Performance Isolation Boundaries into Application with pBoxYigong Hu, Gongqi Huang, Peng HuangSOSP 2023 · 2 次引用
