Lune

S&P2023Top-tier venue

μSwitch: Fast Kernel Context Isolation with Implicit Context Switches

Dinglan Peng, Congyu Liu, Tapti Palit, Pedro Fonseca, Anjo Vahldiek-Oberwagner, Mona Vij

Abstract

Isolating application components is crucial to limit the exposure of sensitive data and code to vulnerabilities in the untrusted components. Process-based isolation is the de facto isolation used in practice, e.g., web browsers. However, it incurs significant performance overhead and is typically infeasible when frequent switches between isolation domains are expected. To address this problem, many intra-process memory isolation techniques have been proposed using novel kernel abstractions, recent CPU extensions (e.g., Intel ® MPK), and software-based fault isolation (e.g., WebAssembly). However, these techniques insufficiently isolate kernel resources, such as file descriptors, or do so by incurring high overheads when resources are accessed. Other work virtualizes the kernel context inside a privileged user space domain, but this is ad-hoc, error-prone, and provides only limited kernel functionalities.

We propose μSWITCH, an efficient kernel context isolation mechanism with memory protection that addresses these limitations. We use a protected structure, shared by the kernel and the user space, for context switching and propose implicit context switching to improve its performance by deferring the kernel resource switch to the next system call. We apply μSWITCH to isolate libraries in the Firefox web browser and an HTTP server, and reduce the overhead of isolation by 32.7% to 98.4% compared with other isolation techniques.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Endokernel: A Thread Safe Monitor for Lightweight Subprocess Isolation cites Shreds: Fine-Grained Execution Units with Private Memory
  • Endokernel: A Thread Safe Monitor for Lightweight Subprocess Isolation cites Capacity: Cryptographically-Enforced In-Process Capabilities for Modern ARM Architectures
  • Endokernel: A Thread Safe Monitor for Lightweight Subprocess Isolation cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • SoK: Software Compartmentalization cites Shreds: Fine-Grained Execution Units with Private Memory
  • SoK: Software Compartmentalization cites Capacity: Cryptographically-Enforced In-Process Capabilities for Modern ARM Architectures
  • Faastlane: Accelerating Function-as-a-Service Workflows cites Shreds: Fine-Grained Execution Units with Private Memory
  • Faastlane: Accelerating Function-as-a-Service Workflows cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • LatticeBox: A Hardware-Software Co-Designed Framework for Scalable and Low-Latency Compartmentalization cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • Capacity: Cryptographically-Enforced In-Process Capabilities for Modern ARM Architectures cites Shreds: Fine-Grained Execution Units with Private Memory
  • Capacity: Cryptographically-Enforced In-Process Capabilities for Modern ARM Architectures cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • Secpoline: A Scalable Approach to Build Secure In-Process Syscall Interposers cites Endokernel: A Thread Safe Monitor for Lightweight Subprocess Isolation
  • Secpoline: A Scalable Approach to Build Secure In-Process Syscall Interposers cites SoK: Software Compartmentalization
  • Secpoline: A Scalable Approach to Build Secure In-Process Syscall Interposers cites Capacity: Cryptographically-Enforced In-Process Capabilities for Modern ARM Architectures
  • Secpoline: A Scalable Approach to Build Secure In-Process Syscall Interposers cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK) cites Shreds: Fine-Grained Execution Units with Private Memory
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Endokernel: A Thread Safe Monitor for Lightweight Subprocess IsolationFangfei Yang, Bumjin Im, Weijie Huang, Kelly Kaoudis et al.USENIX Security 2024 · 8 citations
  2. Capacity: Cryptographically-Enforced In-Process Capabilities for Modern ARM ArchitecturesKha Dinh Duy, Kyuwon Cho, Taehyun Noh, Hojoon LeeCCS 2023 · 5 citations
  3. LatticeBox: A Hardware-Software Co-Designed Framework for Scalable and Low-Latency CompartmentalizationZhanpeng Liu, Chenyang Li, Wende Tan, Yuan Li et al.NDSS 2026 · 1 citation
  4. SoK: Software CompartmentalizationHugo Lefeuvre, Nathan Dautenhahn, David Chisnall, Pierre OlivierS&P 2025
  5. Secpoline: A Scalable Approach to Build Secure In-Process Syscall InterposersRuben Sturm, Anton Schelfhout, Merve Gülmez, Adriaan Jacobs et al.USENIX Security 2026

Builds on29

  1. ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)Anjo Vahldiek-Oberwagner, Eslam Elnikety, Nuno O. Duarte, Michael Sammler et al.USENIX Security 2019 · 247 citations
  2. Faastlane: Accelerating Function-as-a-Service WorkflowsSwaroop Kotni, Ajay Nayak, Vinod Ganapathy, Arkaprava BasuUSENIX ATC 2021 · 142 citations
  3. Shreds: Fine-Grained Execution Units with Private MemoryYaohui Chen, Sebassujeen Reymondjohnson, Zhichuang Sun, Long LuS&P 2016 · 116 citations
  4. Site Isolation: Process Separation for Web Sites within the BrowserCharles Reis, Alexander Moshchuk, Nasko OskovUSENIX Security 2019 · 105 citations
  5. xMP: Selective Memory Protection for Kernel and User SpaceSergej Proskurin, Marius Momeu, Seyedhamed Ghavamnia, Vasileios P. Kemerlis et al.S&P 2020 · 89 citations

Related papers

  1. EPK: Scalable and Efficient Memory Protection KeysJinyu Gu, Hao Li, Wentai Li, Yubin Xia et al.USENIX ATC 2022
  2. PKU Pitfalls: Attacks on PKU-based Memory Isolation SystemsR. Joseph Connor, Tyler McDaniel, Jared M. Smith, Max SchuchardUSENIX Security 2020
  3. VDom: Fast and Unlimited Virtual Domains on Multiple ArchitecturesZiqi Yuan, Siyu Hong, Rui Chang, Yajin Zhou et al.ASPLOS 2023 · 19 citations
  4. Enforcing Least Privilege Memory Views for Multithreaded ApplicationsTerry Ching-Hsiang Hsu, Kevin J. Hoffman, Patrick Eugster, Mathias PayerCCS 2016 · 71 citations
  5. Limitations and Opportunities of Modern Hardware Isolation MechanismsXiangdong Chen, Zhaofeng Li, Tirth Jain, Vikram Narayanan et al.USENIX ATC 2024 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines