Lune

PLDI2021顶会

Canary: practical static detection of inter-thread value-flow bugs

Yuandao Cai, Peisen Yao, Charles Zhang

摘要

Concurrent programs are still prone to bugs arising from the subtle interleavings of threads. Traditional static analysis for concurrent programs, such as data-flow analysis and symbolic execution, has to explicitly explore redundant control states, leading to prohibitive computational complexity.

This paper presents a value-flow analysis framework for concurrent programs called Canary that is practical to statically find diversified inter-thread value-flow bugs. Our work is the first to convert the concurrency bug detection to a source-sink reachability problem, effectively reducing redundant thread interleavings. Specifically, we propose a scalable thread-modular algorithm to capture data and interference dependence in a value-flow graph. The relevant edges of value flows are annotated with execution constraints as guards to describe the conditions of value flows. Canary then traverses the graph to detect concurrency defects via tracking the source-sink properties and solving the aggregated guards of value flows with an SMT solver to decide the realizability of interleaving executions. Experiments show that Canary is precise, scalable, and practical, detecting over eighteen previously unknown concurrency bugs in large, widely-used software systems with low false positives.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Controlled Concurrency Testing via Periodical Scheduling 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
  • Controlled Concurrency Testing via Periodical Scheduling 引用了 Krace: Data Race Fuzzing for Kernel File Systems
  • Controlled Concurrency Testing via Periodical Scheduling 引用了 MUZZ: Thread-aware Grey-box Fuzzing for Effective Bug Hunting in Multithreaded Programs
  • Krace: Data Race Fuzzing for Kernel File Systems 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
  • SmartTrack: efficient predictive race detection 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer Information 引用了 Krace: Data Race Fuzzing for Kernel File Systems
  • Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer Information 引用了 Peahen: fast and precise static deadlock detection via context reduction
  • Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer Information 引用了 MUZZ: Thread-aware Grey-box Fuzzing for Effective Bug Hunting in Multithreaded Programs
  • Peahen: fast and precise static deadlock detection via context reduction 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
  • Peahen: fast and precise static deadlock detection via context reduction 引用了 Controlled Concurrency Testing via Periodical Scheduling
  • Peahen: fast and precise static deadlock detection via context reduction 引用了 Krace: Data Race Fuzzing for Kernel File Systems
  • Peahen: fast and precise static deadlock detection via context reduction 引用了 SmartTrack: efficient predictive race detection
  • Peahen: fast and precise static deadlock detection via context reduction 引用了 MUZZ: Thread-aware Grey-box Fuzzing for Effective Bug Hunting in Multithreaded Programs
  • MUZZ: Thread-aware Grey-box Fuzzing for Effective Bug Hunting in Multithreaded Programs 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
  • Plankton: Reconciling Binary Code and Debug Information 引用了 Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer Information
  • Plankton: Reconciling Binary Code and Debug Information 引用了 Peahen: fast and precise static deadlock detection via context reduction
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper13

  1. Context Sensitivity without Contexts: A Cut-Shortcut Approach to Fast and Precise Pointer AnalysisWenjie Ma, Shengyuan Yang, Tian Tan, Xiaoxing Ma 等PLDI 2023 · 29 次引用
  2. Controlled Concurrency Testing via Periodical SchedulingCheng Wen, Mengda He, Bohao Wu, Zhiwu Xu 等ICSE 2022 · 25 次引用
  3. Unleashing the Power of Type-Based Call Graph Construction by Using Regional Pointer InformationYuandao Cai, Yibo Jin, Charles ZhangUSENIX Security 2024 · 16 次引用
  4. Peahen: fast and precise static deadlock detection via context reductionYuandao Cai, Chengfeng Ye, Qingkai Shi, Charles ZhangFSE 2022 · 16 次引用
  5. Plankton: Reconciling Binary Code and Debug InformationAnshunkang Zhou, Chengfeng Ye, Heqing Huang, Yuandao Cai 等ASPLOS 2024 · 11 次引用

它引用的 Paper5

  1. Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee 等S&P 2019 · 202 次引用
  2. Krace: Data Race Fuzzing for Kernel File SystemsMeng Xu, Sanidhya Kashyap, Hanqing Zhao, Taesoo KimS&P 2020 · 131 次引用
  3. Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 次引用
  4. SmartTrack: efficient predictive race detectionJake Roemer, Kaan Genç, Michael D. BondPLDI 2020 · 28 次引用
  5. MUZZ: Thread-aware Grey-box Fuzzing for Effective Bug Hunting in Multithreaded ProgramsHongxu Chen, Shengjian Guo, Yinxing Xue, Yulei Sui 等USENIX Security 2020

相关 Paper

  1. Conquering the extensional scalability problem for value-flow analysis frameworksQingkai Shi, Rongxin Wu, Gang Fan, Charles ZhangICSE 2020 · 15 次引用
  2. Reorder Pointer Flow in Sound Concurrency Bug PredictionYuqi Guo, Shihao Zhu, Yan Cai, Liang He 等ICSE 2024 · 1 次引用
  3. Precise and efficient atomicity violation detection for interrupt-driven programs via staged path pruningChao Li, Rui Chen, Boxiang Wang, Tingting Yu 等ISSTA 2022 · 9 次引用
  4. Pipelining bottom-up data flow analysisQingkai Shi, Charles ZhangICSE 2020 · 14 次引用
  5. Detecting Blocking Errors in Go Programs using Localized Abstract InterpretationOskar Haarklou Veileborg, Georgian-Vlad Saioc, Anders MøllerASE 2022 · 12 次引用
黄昏的海面,两侧是细线勾勒的悬崖