Privbox: Faster System Calls Through Sandboxed Privileged Execution

Dmitry Kuznetsov, Adam Morrison

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

7 Scopus citations

Abstract

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.

Original languageEnglish
Title of host publicationProceedings of the 2022 USENIX Annual Technical Conference, ATC 2022
PublisherUSENIX Association
Pages233-247
Number of pages15
ISBN (Electronic)9781939133298
StatePublished - 2022
Event2022 USENIX Annual Technical Conference, ATC 2022 - Carlsbad, United States
Duration: 11 Jul 202213 Jul 2022

Publication series

NameProceedings of the 2022 USENIX Annual Technical Conference, ATC 2022

Conference

Conference2022 USENIX Annual Technical Conference, ATC 2022
Country/TerritoryUnited States
CityCarlsbad
Period11/07/2213/07/22

Fingerprint

Dive into the research topics of 'Privbox: Faster System Calls Through Sandboxed Privileged Execution'. Together they form a unique fingerprint.

Cite this