Lune

ASPLOS2022Top-tier venue

Who goes first? detecting go concurrency bugs via message reordering

Ziheng Liu, Shihao Xia, Yu Liang, Linhai Song, Hong Hu

Abstract

Go is a young programming language invented to build safe and efficient concurrent programs. It provides goroutines as lightweight threads and channels for inter-goroutine communication. Programmers are encouraged to explicitly pass messages through channels to connect goroutines, with the purpose of reducing the chance of making programming mistakes and introducing concurrency bugs. Go is one of the most beloved programming languages and has already been used to build many critical infrastructure software systems in the data-center environment. However, a recent study shows that channel-related concurrency bugs are still common in Go programs, severely hurting the reliability of the programs.

This paper presents GFuzz, a dynamic detector that can effectively pinpoint channel-related concurrency bugs by mutating the processing orders of concurrent messages. We build GFuzz in three steps. We first adopt an effective approach to identify concurrent messages and transform a program to process those messages in any given order. We then take a fuzzing approach to generate new processing orders by mutating exercised ones and rely on execution feedback to prioritize orders close to triggering bugs. Finally, we design a runtime sanitizer to capture triggered bugs that are missed by the Go runtime. We evaluate GFuzz on seven popular Go software systems, including Docker, Kubernetes, and gRPC. GFuzz finds 184 previously unknown bugs and reports a negligible number of false positives. Programmers have already confirmed 124 reports as real bugs and fixed 67 of them based on our reporting. A careful inspection of the detected concurrency bugs from gRPC shows the effectiveness of each component of GFuzz and confirms the components' rationality.

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.

8 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

  • QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing cites VUzzer: Application-aware Evolutionary Fuzzing
  • QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing cites Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing cites Angora: Efficient Fuzzing by Principled Search
  • VUzzer: Application-aware Evolutionary Fuzzing cites Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • Dynamic Partial Deadlock Detection and Recovery via Garbage Collection cites Detecting Blocking Errors in Go Programs using Localized Abstract Interpretation
  • Coverage Guided Fault Injection for Cloud Systems cites QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing
  • Razzer: Finding Kernel Race Bugs through Fuzzing cites VUzzer: Application-aware Evolutionary Fuzzing
  • Effective Concurrency Testing for Go via Directional Primitive-Constrained Interleaving Exploration cites Razzer: Finding Kernel Race Bugs through Fuzzing
  • Effective Concurrency Testing for Go via Directional Primitive-Constrained Interleaving Exploration cites Detecting Blocking Errors in Go Programs using Localized Abstract Interpretation
  • Angora: Efficient Fuzzing by Principled Search cites VUzzer: Application-aware Evolutionary Fuzzing
  • Angora: Efficient Fuzzing by Principled Search cites Driller: Augmenting Fuzzing Through Selective Symbolic Execution
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Coverage Guided Fault Injection for Cloud SystemsYu Gao, Wensheng Dou, Dong Wang, Wenhan Feng et al.ICSE 2023 · 13 citations
  2. Compiling Distributed System Models with PGoA. Finn Hackett, Shayan Hosseini, Renato Costa, Matthew Do et al.ASPLOS 2023 · 13 citations
  3. Detecting Blocking Errors in Go Programs using Localized Abstract InterpretationOskar Haarklou Veileborg, Georgian-Vlad Saioc, Anders MøllerASE 2022 · 12 citations
  4. Effective Concurrency Testing for Go via Directional Primitive-Constrained Interleaving ExplorationZongze Jiang, Ming Wen, Yixin Yang, Chao Peng et al.ASE 2023 · 6 citations
  5. Dynamic Partial Deadlock Detection and Recovery via Garbage CollectionGeorgian-Vlad Saioc, I-Ting Angelina Lee, Anders Møller, Milind ChabbiASPLOS 2025 · 3 citations

Builds on9

  1. Driller: Augmenting Fuzzing Through Selective Symbolic ExecutionNick Stephens, John Grosen, Christopher Salls, Andrew Dutcher et al.NDSS 2016 · 1,021 citations
  2. VUzzer: Application-aware Evolutionary FuzzingSanjay Rawat, Vivek Jain, Ashish Kumar, Lucian Cojocar et al.NDSS 2017 · 700 citations
  3. Angora: Efficient Fuzzing by Principled SearchPeng Chen, Hao ChenS&P 2018 · 616 citations
  4. QSYM : A Practical Concolic Execution Engine Tailored for Hybrid FuzzingInsu Yun, Sangho Lee, Meng Xu, Yeongjin Jang et al.USENIX Security 2018 · 537 citations
  5. Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee et al.S&P 2019 · 202 citations

Related papers

  1. Automatically detecting and fixing concurrency bugs in go software systemsZiheng Liu, Shuofei Zhu, Boqin Qin, Hao Chen et al.ASPLOS 2021 · 32 citations
  2. A study of real-world data races in GolangMilind Chabbi, Murali Krishna RamanathanPLDI 2022 · 34 citations
  3. GoPV: Detecting Blocking Concurrency Bugs Related to Shared-Memory Synchronization in GoWei Song, Xiaofan Xu, Jeff HuangISSTA 2025
  4. Automated Verification of Go Programs via Bounded Model CheckingNicolas Dilley, Julien LangeASE 2021 · 21 citations
  5. Fuzzing channel-based concurrency runtimes using types and effectsQuentin Stiévenart, Magnus MadsenOOPSLA 2020 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines