USENIX ATC2022顶会
DLOS: Effective Static Detection of Deadlocks in OS Kernels
Jia-Ju Bai, Tuo Li, Shi-Min Hu
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
- LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules 引用了 Krace: Data Race Fuzzing for Kernel File Systems
- Krace: Data Race Fuzzing for Kernel File Systems 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
- Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication Analysis 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
- Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication Analysis 引用了 Krace: Data Race Fuzzing for Kernel File Systems
- Static Detection of TOCTOU Bugs Caused by Kernel Races 引用了 LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules
- Static Detection of TOCTOU Bugs Caused by Kernel Races 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
- Static Detection of TOCTOU Bugs Caused by Kernel Races 引用了 Krace: Data Race Fuzzing for Kernel File Systems
- Static Detection of TOCTOU Bugs Caused by Kernel Races 引用了 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 引用了 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 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux 引用了 Low-overhead deadlock prediction
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux 引用了 Krace: Data Race Fuzzing for Kernel File Systems
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux 引用了 Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication Analysis
引用它的顶会 Paper4
- 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 次引用
- Balancing Analysis Time and Bug Detection: Daily Development-friendly Bug Detection in LinuxKeita Suzuki, Kenta Ishiguro, Kenji KonoUSENIX ATC 2024 · 6 次引用
- When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in LinuxChengfeng Ye, Yuandao Cai, Charles ZhangUSENIX Security 2024 · 5 次引用
- Static Detection of TOCTOU Bugs Caused by Kernel RacesGui-Dong Han, Jia-Ju Bai, Qiu-Ji Chen, Jiqiang LuUSENIX Security 2026
它引用的 Paper6
- Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee 等S&P 2019 · 202 次引用
- Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type AnalysisKangjie Lu, Hong HuCCS 2019 · 142 次引用
- Krace: Data Race Fuzzing for Kernel File SystemsMeng Xu, Sanidhya Kashyap, Hanqing Zhao, Taesoo KimS&P 2020 · 131 次引用
- Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication AnalysisSishuai Gong, Deniz Altinbüken, Pedro Fonseca, Petros ManiatisSOSP 2021 · 26 次引用
- Low-overhead deadlock predictionYan Cai, Ruijie Meng, Jens PalsbergICSE 2020 · 11 次引用
相关 Paper
- 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 次引用
- Detecting Missing-Check Bugs via Semantic- and Context-Aware Criticalness and Constraints InferencesKangjie Lu, Aditya Pakki, Qiushi WuUSENIX Security 2019 · 97 次引用
- Precise and Scalable Detection of Double-Fetch Bugs in OS KernelsMeng Xu, Chenxiong Qian, Kangjie Lu, Michael Backes 等S&P 2018 · 95 次引用
- Deadlock prediction via generalized dependencyJinpeng Zhou, Hanmei Yang, John Lange, Tongping LiuISSTA 2022 · 5 次引用
