DLOS: Effective Static Detection of Deadlocks in OS Kernels
Jia-Ju Bai, Tuo Li, Shi-Min Hu
Abstract
Deadlocks in OS kernels can cause critical problems like performance degradation and system hangs. However, detecting deadlocks in OS kernels is quite challenging, due to high complexity of concurrent execution and large code bases of OS kernels. In this paper, we design a practical static analysis approach named DLOS, to effectively detect deadlocks in OS kernels. DLOS consists of three key techniques: (1) a summary-based lock-usage analysis to efficiently extract the code paths containing distinct locking constraints from kernel code; (2) a reachability-based comparison method to efficiently detect locking cycles from locking constraints; (3) a two-dimensional filtering strategy to effectively drop false positives by validating code-path feasibility and concurrency. We have evaluated DLOS on Linux 5.10, and find 54 real deadlocks, with a false positive rate of 17%. We have reported these deadlocks to Linux kernel developers, and 31 of them have been confirmed.
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.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules cites Razzer: Finding Kernel Race Bugs through Fuzzing
- LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules cites Krace: Data Race Fuzzing for Kernel File Systems
- Krace: Data Race Fuzzing for Kernel File Systems cites Razzer: Finding Kernel Race Bugs through Fuzzing
- Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication Analysis cites Razzer: Finding Kernel Race Bugs through Fuzzing
- Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication Analysis cites Krace: Data Race Fuzzing for Kernel File Systems
- Static Detection of TOCTOU Bugs Caused by Kernel Races cites LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules
- Static Detection of TOCTOU Bugs Caused by Kernel Races cites Razzer: Finding Kernel Race Bugs through Fuzzing
- Static Detection of TOCTOU Bugs Caused by Kernel Races cites Krace: Data Race Fuzzing for Kernel File Systems
- Static Detection of TOCTOU Bugs Caused by Kernel Races cites When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux cites Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux cites Razzer: Finding Kernel Race Bugs through Fuzzing
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux cites Low-overhead deadlock prediction
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux cites Krace: Data Race Fuzzing for Kernel File Systems
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux cites Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication Analysis
Cited by top-tier papers4
- LR-Miner: Static Race Detection in OS Kernels by Mining Locking RulesTuo Li, Jia-Ju Bai, Gui-Dong Han, Shi-Min HuUSENIX Security 2024 · 6 citations
- Balancing Analysis Time and Bug Detection: Daily Development-friendly Bug Detection in LinuxKeita Suzuki, Kenta Ishiguro, Kenji KonoUSENIX ATC 2024 · 6 citations
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in LinuxChengfeng Ye, Yuandao Cai, Charles ZhangUSENIX Security 2024 · 5 citations
- Static Detection of TOCTOU Bugs Caused by Kernel RacesGui-Dong Han, Jia-Ju Bai, Qiu-Ji Chen, Jiqiang LuUSENIX Security 2026
Builds on6
- Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee et al.S&P 2019 · 202 citations
- Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type AnalysisKangjie Lu, Hong HuCCS 2019 · 142 citations
- Krace: Data Race Fuzzing for Kernel File SystemsMeng Xu, Sanidhya Kashyap, Hanqing Zhao, Taesoo KimS&P 2020 · 131 citations
- Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication AnalysisSishuai Gong, Deniz Altinbüken, Pedro Fonseca, Petros ManiatisSOSP 2021 · 26 citations
- Low-overhead deadlock predictionYan Cai, Ruijie Meng, Jens PalsbergICSE 2020 · 11 citations
Related papers
- Place Your Locks Well: Understanding and Detecting Lock Misuse BugsYuandao Cai, Peisen Yao, Chengfeng Ye, Charles ZhangUSENIX Security 2023
- Peahen: fast and precise static deadlock detection via context reductionYuandao Cai, Chengfeng Ye, Qingkai Shi, Charles ZhangFSE 2022 · 16 citations
- Detecting Missing-Check Bugs via Semantic- and Context-Aware Criticalness and Constraints InferencesKangjie Lu, Aditya Pakki, Qiushi WuUSENIX Security 2019 · 97 citations
- Precise and Scalable Detection of Double-Fetch Bugs in OS KernelsMeng Xu, Chenxiong Qian, Kangjie Lu, Michael Backes et al.S&P 2018 · 95 citations
- Deadlock prediction via generalized dependencyJinpeng Zhou, Hanmei Yang, John Lange, Tongping LiuISSTA 2022 · 5 citations
