Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
Runzhou Tao, Jianan Yao, Xupeng Li, Shih-Wei Li, Jason Nieh, Ronghui Gu
摘要
Concurrent systems software is widely-used, complex, and error-prone, posing a significant security risk. We introduce VRM, a new framework that makes it possible for the first time to verify concurrent systems software, such as operating systems and hypervisors, on Arm relaxed memory hardware. VRM defines a set of synchronization and memory access conditions such that a program that satisfies these conditions can be mostly verified on a sequentially consistent hardware model and the proofs will automatically hold on relaxed memory hardware. VRM can be used to verify concurrent kernel code that is not data race free, including code responsible for managing shared page tables in the presence of relaxed MMU hardware. Using VRM, we verify the security guarantees of a retrofitted implementation of the Linux KVM hypervisor on Arm. For multiple versions of KVM, we prove KVM's security properties on a sequentially consistent model, then prove that KVM satisfies VRM's required program conditions such that its security proofs hold on Arm relaxed memory hardware. Our experimental results show that the retrofit and VRM conditions do not adversely affect the scalability of verified KVM, as it performs similar to unmodified KVM when concurrently running many multiprocessor virtual machines with real application workloads on Arm multiprocessor server hardware. Our work is the first machine-checked proof for concurrent systems software on Arm relaxed memory hardware.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 27 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Islaris: verification of machine code against authoritative ISA semantics 引用了 Formally Verified Memory Protection for a Commodity Multiprocessor Hypervisor
- Islaris: verification of machine code against authoritative ISA semantics 引用了 A Secure and Formally Verified Linux KVM Hypervisor
- A Verification Methodology for the Arm® Confidential Computing Architecture: From a Secure Specification to Safe Implementations 引用了 A Secure and Formally Verified Linux KVM Hypervisor
- A Verification Methodology for the Arm® Confidential Computing Architecture: From a Secure Specification to Safe Implementations 引用了 Design and Verification of the Arm Confidential Compute Architecture
- Formally Verified Memory Protection for a Commodity Multiprocessor Hypervisor 引用了 A Secure and Formally Verified Linux KVM Hypervisor
- CN: Verifying Systems C Code with Separation-Logic Refinement Types 引用了 Islaris: verification of machine code against authoritative ISA semantics
- CN: Verifying Systems C Code with Separation-Logic Refinement Types 引用了 A Secure and Formally Verified Linux KVM Hypervisor
- VSync: push-button verification and optimization for synchronization primitives on weak memory models 引用了 Armada: low-effort verification of high-performance concurrent programs
- BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems 引用了 Formally Verified Memory Protection for a Commodity Multiprocessor Hypervisor
- BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems 引用了 A Secure and Formally Verified Linux KVM Hypervisor
- BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems 引用了 Design and Verification of the Arm Confidential Compute Architecture
- Design and Verification of the Arm Confidential Compute Architecture 引用了 BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems
- A Secure and Formally Verified Linux KVM Hypervisor 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
- Design and Verification of the Arm Confidential Compute Architecture 引用了 Formally Verified Memory Protection for a Commodity Multiprocessor Hypervisor
- Design and Verification of the Arm Confidential Compute Architecture 引用了 Armada: low-effort verification of high-performance concurrent programs
- Design and Verification of the Arm Confidential Compute Architecture 引用了 A Secure and Formally Verified Linux KVM Hypervisor
引用它的顶会 Paper27
- Design and Verification of the Arm Confidential Compute ArchitectureXupeng Li, Xuheng Li, Christoffer Dall, Ronghui Gu 等OSDI 2022 · 60 次引用
- BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating SystemsAlexander Van't Hof, Jason NiehOSDI 2022 · 44 次引用
- Islaris: verification of machine code against authoritative ISA semanticsMichael Sammler, Angus Hammond, Rodolphe Lepigre, Brian Campbell 等PLDI 2022 · 28 次引用
- CN: Verifying Systems C Code with Separation-Logic Refinement TypesChristopher Pulte, Dhruv C. Makwana, Thomas Sewell, Kayvan Memarian 等POPL 2023 · 26 次引用
- A Verification Methodology for the Arm® Confidential Computing Architecture: From a Secure Specification to Safe ImplementationsAnthony C. J. Fox, Gareth Stockwell, Shale Xiong, Hanno Becker 等OOPSLA 2023 · 19 次引用
它引用的 Paper7
- A Secure and Formally Verified Linux KVM HypervisorShih-Wei Li, Xupeng Li, Ronghui Gu, Jason Nieh 等S&P 2021 · 72 次引用
- Formally Verified Memory Protection for a Commodity Multiprocessor HypervisorShih-Wei Li, Xupeng Li, Ronghui Gu, Jason Nieh 等USENIX Security 2021 · 48 次引用
- VSync: push-button verification and optimization for synchronization primitives on weak memory modelsJonas Oberhauser, Rafael Lourenco de Lima Chehab, Diogo Behrens, Ming Fu 等ASPLOS 2021 · 40 次引用
- Decidable verification under a causally consistent shared memoryOri Lahav, Udi BokerPLDI 2020 · 30 次引用
- Armada: low-effort verification of high-performance concurrent programsJacob R. Lorch, Yixuan Chen, Manos Kapritsos, Bryan Parno 等PLDI 2020 · 25 次引用
相关 Paper
- ArchSem: Reusable Rigorous Semantics of Relaxed ArchitecturesThibaut Pérami, Thomas Bauereiss, Brian Campbell, Zongyuan Liu 等POPL 2026 · 1 次引用
- Rely/Guarantee Reasoning for Multicopy Atomic Weak Memory ModelsNicholas Coughlin, Kirsten Winter, Graeme SmithFM 2021 · 16 次引用
- Spoq: Scaling Machine-Checkable Systems Verification in CoqXupeng Li, Xuheng Li, Wei Qiang, Ronghui Gu 等OSDI 2023 · 10 次引用
- VeriSMo: A Verified Security Module for Confidential VMsZiqiao Zhou, Anjali, Weiteng Chen, Sishuai Gong 等OSDI 2024 · 27 次引用
- Modular data-race-freedom guarantees in the promising semanticsMinki Cho, Sung-Hwan Lee, Chung-Kil Hur, Ori LahavPLDI 2021 · 14 次引用
