Lune

POPL2023顶会

CN: Verifying Systems C Code with Separation-Logic Refinement Types

Christopher Pulte, Dhruv C. Makwana, Thomas Sewell, Kayvan Memarian, Peter Sewell, Neel Krishnaswami

摘要

Despite significant progress in the verification of hypervisors, operating systems, and compilers, and in verification tooling, there exists a wide gap between the approaches used in verification projects and conventional development of systems software. We see two main challenges in bringing these closer together: verification handling the complexity of code and semantics of conventional systems software, and verification usability.

We describe an experiment in verification tool design aimed at addressing some aspects of both: we design and implement CN, a separation-logic refinement type system for C systems software, aimed at predictable proof automation, based on a realistic semantics of ISO C. CN reduces refinement typing to decidable propositional logic reasoning, uses first-class resources to support pointer aliasing and pointer arithmetic, features resource inference for iterated separating conjunction, and uses a novel syntactic restriction of ghost variables in specifications to guarantee their successful inference. We implement CN and formalise key aspects of the type system, including a soundness proof of type checking. To demonstrate the usability of CN we use it to verify a substantial component of Google's pKVM hypervisor for Android.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Islaris: verification of machine code against authoritative ISA semantics 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
  • Islaris: verification of machine code against authoritative ISA semantics 引用了 Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
  • Islaris: verification of machine code against authoritative ISA semantics 引用了 A Secure and Formally Verified Linux KVM Hypervisor
  • VIP: verifying real-world C idioms with integer-pointer casts 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
  • VIP: verifying real-world C idioms with integer-pointer casts 引用了 A Secure and Formally Verified Linux KVM Hypervisor
  • RefinedC: automating the foundational verification of C code with refined ownership types 引用了 VST-A: A Foundationally Sound Annotation Verifier
  • VST-A: A Foundationally Sound Annotation Verifier 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
  • Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware 引用了 A Secure and Formally Verified Linux KVM Hypervisor
  • Destabilizing Iris 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
  • RefinedRust: A Type System for High-Assurance Verification of Rust Programs 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
  • Fulminate: Testing CN Separation-Logic Specifications in C 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
  • Fulminate: Testing CN Separation-Logic Specifications in C 引用了 VST-A: A Foundationally Sound Annotation Verifier
  • StarMalloc: Verifying a Modern, Hardened Memory Allocator 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. RefinedRust: A Type System for High-Assurance Verification of Rust ProgramsLennard Gäher, Michael Sammler, Ralf Jung, Robbert Krebbers 等PLDI 2024 · 29 次引用
  2. VST-A: A Foundationally Sound Annotation VerifierLitao Zhou, Jianxing Qin, Qinshi Wang, Andrew W. Appel 等POPL 2024 · 12 次引用
  3. Fulminate: Testing CN Separation-Logic Specifications in CRini Banerjee, Kayvan Memarian, Dhruv C. Makwana, Christopher Pulte 等POPL 2025 · 6 次引用
  4. Destabilizing IrisSimon Spies, Niklas Mück, Haoyi Zeng, Michael Sammler 等PLDI 2025 · 5 次引用
  5. StarMalloc: Verifying a Modern, Hardened Memory AllocatorAntonin Reitz, Aymeric Fromherz, Jonathan ProtzenkoOOPSLA 2024 · 5 次引用

它引用的 Paper5

  1. RefinedC: automating the foundational verification of C code with refined ownership typesMichael Sammler, Rodolphe Lepigre, Robbert Krebbers, Kayvan Memarian 等PLDI 2021 · 83 次引用
  2. A Secure and Formally Verified Linux KVM HypervisorShih-Wei Li, Xupeng Li, Ronghui Gu, Jason Nieh 等S&P 2021 · 72 次引用
  3. Islaris: verification of machine code against authoritative ISA semanticsMichael Sammler, Angus Hammond, Rodolphe Lepigre, Brian Campbell 等PLDI 2022 · 28 次引用
  4. Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory HardwareRunzhou Tao, Jianan Yao, Xupeng Li, Shih-Wei Li 等SOSP 2021 · 24 次引用
  5. VIP: verifying real-world C idioms with integer-pointer castsRodolphe Lepigre, Michael Sammler, Kayvan Memarian, Robbert Krebbers 等POPL 2022 · 11 次引用

相关 Paper

  1. Ghost in the Android Shell: Pragmatic Test-oracle Specification of a Production HypervisorKayvan Memarian, Ben Simner, David Kaloper-Mersinjak, Thibaut Pérami 等SOSP 2025
  2. Beyond Backtracking: Connections in Fine-Grained Concurrent Separation LogicIke Mulder, Lukasz Czajka, Robbert KrebbersPLDI 2023 · 2 次引用
  3. An Iris Instance for Verifying CompCert C ProgramsWilliam Mansky, Ke DuPOPL 2024 · 14 次引用
  4. Conditional Contextual RefinementYoungju Song, Minki Cho, Dongjae Lee, Chung-Kil Hur 等POPL 2023 · 29 次引用
  5. Code-Specify-Test-Debug-Prove: Flexibly Integrating Separation Logic Specification into Conventional WorkflowsZain K. Aamer, Rini Banerjee, Hiroyuki Katsura, David Kaloper-Mersinjak 等PLDI 2026 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖