Isolating functions at the hardware limit with virtines
Nicholas C. Wanninger, Joshua J. Bowden, Kirtankumar Shetty, Ayush Garg, Kyle C. Hale
摘要
An important class of applications, including programs that leverage third-party libraries, programs that use user-defined functions in databases, and serverless applications, benefit from isolating the execution of untrusted code at the granularity of individual functions or function invocations. However, existing isolation mechanisms were not designed for this use case; rather, they have been adapted to it. We introduce virtines, a new abstraction designed specifically for function granularity isolation, and describe how we build virtines from the ground up by pushing hardware virtualization to its limits. Virtines give developers fine-grained control in deciding which functions should run in isolated environments, and which should not. The virtine abstraction is a general one, and we demonstrate a prototype that adds extensions to the C language. We present a detailed analysis of the overheads of running individual functions in isolated VMs, and guided by those findings, we present Wasp, an embeddable hypervisor that allows programmers to easily use virtines. We describe several representative scenarios that employ individual function isolation, and demonstrate that virtines can be applied in these scenarios with only a few lines of changes to existing codebases and with acceptable slowdowns.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SoK: Software Compartmentalization 引用了 Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI
- Firecracker: Lightweight Virtualization for Serverless Applications 引用了 Meltdown: Reading Kernel Memory from User Space
- AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 Firecracker: Lightweight Virtualization for Serverless Applications
- AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 Meltdown: Reading Kernel Memory from User Space
- AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
- AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
- Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
- Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI 引用了 ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
- Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- Unlocking True Elasticity for the Cloud-Native Era with Dandelion 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- Unlocking True Elasticity for the Cloud-Native Era with Dandelion 引用了 Firecracker: Lightweight Virtualization for Serverless Applications
- Unlocking True Elasticity for the Cloud-Native Era with Dandelion 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
- Unlocking True Elasticity for the Cloud-Native Era with Dandelion 引用了 Dirigent: Lightweight Serverless Orchestration
- Dirigent: Lightweight Serverless Orchestration 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
引用它的顶会 Paper8
- Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFIShravan Narayan, Tal Garfinkel, Mohammadkazem Taram, Joey Rudek 等ASPLOS 2023 · 27 次引用
- AlloyStack: A Library Operating System for Serverless Workflow ApplicationsJianing You, Kang Chen, Laiping Zhao, Yiming Li 等EuroSys 2025 · 7 次引用
- Dirigent: Lightweight Serverless OrchestrationLazar Cvetkovic, François Costa, Mihajlo Djokic, Michal Friedman 等SOSP 2024 · 6 次引用
- Unlocking True Elasticity for the Cloud-Native Era with DandelionTom Kuchler, Pinghe Li, Yazhuo Zhang, Lazar Cvetkovic 等SOSP 2025 · 1 次引用
- SoK: Software CompartmentalizationHugo Lefeuvre, Nathan Dautenhahn, David Chisnall, Pierre OlivierS&P 2025
它引用的 Paper13
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
- Faasm: Lightweight Isolation for Efficient Stateful Serverless ComputingSimon Shillaker, Peter R. PietzuchUSENIX ATC 2020 · 382 次引用
- Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less BootingDong Du, Tianyi Yu, Yubin Xia, Binyu Zang 等ASPLOS 2020 · 280 次引用
- ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)Anjo Vahldiek-Oberwagner, Eslam Elnikety, Nuno O. Duarte, Michael Sammler 等USENIX Security 2019 · 247 次引用
- Firecracker: Lightweight Virtualization for Serverless ApplicationsAlexandru Agache, Marc Brooker, Alexandra Iordache, Anthony Liguori 等NSDI 2020 · 197 次引用
相关 Paper
- Twine: An Embedded Trusted Runtime for WebAssemblyJämes Ménétrey, Marcelo Pasin, Pascal Felber, Valerio SchiavoniICDE 2021 · 58 次引用
- Serverless Functions Made Confidential and Efficient with Split ContainersJiacheng Shi, Jinyu Gu, Yubin Xia, Haibo ChenUSENIX Security 2025
- Hierarchical Integration of WebAssembly in Serverless for Efficiency and InteroperabilityMohammadamin Baqershahi, Changyuan Lin, Visal Saosuo, Paul Chen 等NSDI 2026 · 2 次引用
- Sanctum: Minimal Hardware Extensions for Strong Software IsolationVictor Costan, Ilia A. Lebedev, Srinivas DevadasUSENIX Security 2016 · 649 次引用
- SmartNIC Security Isolation in the Cloud with S-NICYang Zhou, Mark Wilkening, James Mickens, Minlan YuEuroSys 2024 · 25 次引用
