Lune

FSE2022Top-tier venue

Peahen: fast and precise static deadlock detection via context reduction

Yuandao Cai, Chengfeng Ye, Qingkai Shi, Charles Zhang

Abstract

Deadlocks still severely inflict reliability and security issues upon software systems of the modern age. Worse still, as we note, in prior static deadlock detectors, good precision does not go hand-inhand with high scalability -their approaches are either contextinsensitive, thereby engendering many false positives, or suffer from the calling context explosion to reach context-sensitive, thus compromising good efficiency. In this paper, we advocate Peahen, geared towards precise yet also scalable static deadlock detection. At its crux, Peahen decomposes the computational effort for embracing high precision into two cooperative analysis stages: (i) context-insensitive lock-graph construction, which selectively encodes the essential lock-acquisition information on each edge, and (ii) three precise yet lazy refinements, which incorporate such edge information into progressively refining the deadlock cycles in the lock graph only for a few interesting calling contexts.

Our extensive experiments yield promising results: Peahen dramatically out-performs the state-of-the-art tools on accuracy without losing scalability; it can efficiently check million-line systems at a low false positive rate; and it has uncovered many confirmed deadlocks in dozens of mature open-source systems.

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.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Place Your Locks Well: Understanding and Detecting Lock Misuse Bugs cites Razzer: Finding Kernel Race Bugs through Fuzzing
  • Place Your Locks Well: Understanding and Detecting Lock Misuse Bugs 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
  • A study of real-world data races in Golang cites Understanding memory and thread safety practices and issues in real-world Rust programs
  • Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer Information cites Place Your Locks Well: Understanding and Detecting Lock Misuse Bugs
  • Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer Information cites Krace: Data Race Fuzzing for Kernel File Systems
  • Plankton: Reconciling Binary Code and Debug Information cites Place Your Locks Well: Understanding and Detecting Lock Misuse Bugs
  • Plankton: Reconciling Binary Code and Debug Information cites Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer Information
  • When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux cites Place Your Locks Well: Understanding and Detecting Lock Misuse Bugs
  • 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 Krace: Data Race Fuzzing for Kernel File Systems
  • When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in Linux cites Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer Information
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. ACETest: Automated Constraint Extraction for Testing Deep Learning OperatorsJingyi Shi, Yang Xiao, Yuekang Li, Yeting Li et al.ISSTA 2023 · 24 citations
  2. Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer InformationYuandao Cai, Yibo Jin, Charles ZhangUSENIX Security 2024 · 16 citations
  3. Plankton: Reconciling Binary Code and Debug InformationAnshunkang Zhou, Chengfeng Ye, Heqing Huang, Yuandao Cai et al.ASPLOS 2024 · 11 citations
  4. When Threads Meet Interrupts: Effective Static Detection of Interrupt-Based Deadlocks in LinuxChengfeng Ye, Yuandao Cai, Charles ZhangUSENIX Security 2024 · 5 citations
  5. Place Your Locks Well: Understanding and Detecting Lock Misuse BugsYuandao Cai, Peisen Yao, Chengfeng Ye, Charles ZhangUSENIX Security 2023

Builds on14

  1. Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee et al.S&P 2019 · 202 citations
  2. Krace: Data Race Fuzzing for Kernel File SystemsMeng Xu, Sanidhya Kashyap, Hanqing Zhao, Taesoo KimS&P 2020 · 131 citations
  3. Understanding memory and thread safety practices and issues in real-world Rust programsBoqin Qin, Yilun Chen, Zeming Yu, Linhai Song et al.PLDI 2020 · 112 citations
  4. A study of real-world data races in GolangMilind Chabbi, Murali Krishna RamanathanPLDI 2022 · 34 citations
  5. Sound and efficient concurrency bug predictionYan Cai, Hao Yun, Jinqiu Wang, Lei Qiao et al.FSE 2021 · 29 citations

Related papers

  1. DLOS: Effective Static Detection of Deadlocks in OS KernelsJia-Ju Bai, Tuo Li, Shi-Min HuUSENIX ATC 2022 · 10 citations
  2. HAWK: A Workload-driven Hierarchical Deadlock Detection Approach in Distributed Database SystemRongrong Zhang, Zhiwei Ye, Jun-Peng Zhu, Peng Cai et al.VLDB 2025 · 1 citation
  3. Deadlock prediction via generalized dependencyJinpeng Zhou, Hanmei Yang, John Lange, Tongping LiuISSTA 2022 · 5 citations
  4. A Compositional Deadlock Detector for Android JavaJames Brotherston, Paul Brunet, Nikos Gorogiannis, Max I. KanovichASE 2021 · 8 citations
  5. Low-overhead deadlock predictionYan Cai, Ruijie Meng, Jens PalsbergICSE 2020 · 11 citations
Dusk over the sea between two cliffs drawn in fine vertical lines