Interrupt-Aware Static Detection of Deadlocks in Rust Operating Systems
Yuzhi Li, Hongliang Tian, Chengjun Chen, Jianfeng Jiang, Hui Xu
Abstract
Rust is increasingly adopted in operating systems, but Rust's safety guarantees do not eliminate deadlocks, especially those induced by interrupts. The core challenge is to recover interrupt-sensitive lock dependencies from Rust's guard-based synchronization across function boundaries. Applying this analysis across Rust OS projects also requires specifying project-specific synchronization semantics. We present an approach combining interrupt-aware static analysis with diagnostic-guided agent auditing for detecting deadlocks in Rust operating systems. Our approach uses lightweight source-level annotations to recover project-specific lock and interrupt semantics, performs a flow-sensitive MIR-based analysis to track lock-holding and interrupt states, and reports potential deadlocks with supporting evidence. An agent then searches for relevant source code in the repository and returns a confidence assessment with reasons for each supplied report. We evaluate our tool on four real Rust operating systems, identifying 26 true cases corresponding to nine maintainer-confirmed defects. Diagnostic-guided auditing achieves 86.2\% precision and 96.2\% recall based on static analysis results, and offers advantages over the baselines in both cost and effectiveness.
Create a lesson
Related papers
The Defect Is in the Arithmetic Between the Files: Static Detection of Exactly-Once Violations in Payment Pipelines
Shared title terminologycs.SEAbhishek Sharma
Spec-Test Coverage Gap: Detecting Overspecified Tests in SWE-Bench-Style Benchmarks
Shared title terminologycs.SEAvi Aggarwal, Yiran Hu
Decision Models for Definition-Driven GitHub Actions Workflow Smell Detection
Shared title terminologycs.SERohit Gheyi, Anderson Uchôa, Wesley Assunção et al.
Software-Engineering-as-an-Artifact: From Engines to Systems That Build Themselves
Shared title terminologycs.SEJulian Frattini, Robert Feldt, Per Lenberg
Context-Aware Proactive Self-Adaptation: A Two-Layer Model Predictive Control Approach
Shared title terminologycs.SEZhengyin Chen, Jialong Li, Nianyu Li et al.
Agentic Root Cause Reasoning and Localization of Unsoundness in Static Call Graph Analysis
Shared title terminologycs.SEMohammad Rafieian, Michael Hicks, Shiyi Wei