Optimistic Prediction of Synchronization-Reversal Data Races
Abstract
Dynamic data race detection has emerged as a key technique for ensuring reliability of concurrent software in practice. However, dynamic approaches can often miss data races owing to nondeterminism in the thread scheduler. Predictive race detection techniques cater to this shortcoming by inferring alternate executions that may expose data races without re-executing the underlying program. More formally, the dynamic data race prediction problem asks, given a trace 𝜎 of an execution of a concurrent program, can 𝜎 be correctly reordered to expose a data race? Existing state-of-the art techniques for data race prediction either do not scale to executions arising from real world concurrent software, or only expose a limited class of data races, such as those that can be exposed without reversing the order of synchronization operations. In general, exposing data races by reasoning about synchronization reversals is an intractable problem. In this work, we identify a class of data races, called Optimistic Sync(hronization)-Reversal races that can be detected in a tractable manner and often include non-trivial data races that cannot be exposed by prior tractable techniques. We also propose a sound algorithm OSR for detecting all optimistic sync-reversal data races in overall quadratic time, and show that the algorithm is optimal by establishing a matching lower bound. Our experiments demonstrate the effectiveness of OSRon our extensive suite of benchmarks, OSR reports the largest number of data races, and scales well to large execution traces.
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.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis cites Fast, sound, and effectively complete dynamic race prediction
- Krace: Data Race Fuzzing for Kernel File Systems cites Razzer: Finding Kernel Race Bugs through Fuzzing
- Predictive Monitoring with Strong Trace Prefixes cites Fast, sound, and effectively complete dynamic race prediction
- Predictive Monitoring with Strong Trace Prefixes cites Optimal prediction of synchronization-preserving races
- Selectively Uniform Concurrency Testing cites Fast, sound, and effectively complete dynamic race prediction
- Selectively Uniform Concurrency Testing cites Optimal prediction of synchronization-preserving races
- Optimal prediction of synchronization-preserving races cites Fast, sound, and effectively complete dynamic race prediction
- Efficient Decrease-and-Conquer Linearizability Monitoring cites Fast, sound, and effectively complete dynamic race prediction
- Efficient Decrease-and-Conquer Linearizability Monitoring cites Optimal prediction of synchronization-preserving races
- Efficient Decrease-and-Conquer Linearizability Monitoring cites The Complexity of Testing Message-Passing Concurrency
- The Complexity of Testing Message-Passing Concurrency cites Efficient Decrease-and-Conquer Linearizability Monitoring
- The Complexity of Testing Message-Passing Concurrency cites CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis
- The Complexity of Testing Message-Passing Concurrency cites Fast, sound, and effectively complete dynamic race prediction
- The Complexity of Testing Message-Passing Concurrency cites Predictive Monitoring with Strong Trace Prefixes
- The Complexity of Testing Message-Passing Concurrency cites Optimal prediction of synchronization-preserving races
Cited by top-tier papers8
- CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution AnalysisHünkar Can Tunç, Ameya Prashant Deshmukh, Berk Çirisci, Constantin Enea et al.ASPLOS 2024 · 6 citations
- Selectively Uniform Concurrency TestingHuan Zhao, Dylan Wolff, Umang Mathur, Abhik RoychoudhuryASPLOS 2025 · 4 citations
- Predictive Monitoring with Strong Trace PrefixesZhendong Ang, Umang MathurCAV 2024 · 3 citations
- Efficient Decrease-and-Conquer Linearizability MonitoringLee Zheng Han, Umang MathurOOPSLA 2025 · 2 citations
- The Complexity of Testing Message-Passing ConcurrencyZheng Shi, Lasse Møldrup, Umang Mathur, Andreas PavlogiannisPOPL 2026 · 2 citations
Builds on17
- Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee et al.S&P 2019 · 202 citations
- Krace: Data Race Fuzzing for Kernel File SystemsMeng Xu, Sanidhya Kashyap, Hanqing Zhao, Taesoo KimS&P 2020 · 131 citations
- Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 citations
- VSync: push-button verification and optimization for synchronization primitives on weak memory modelsJonas Oberhauser, Rafael Lourenco de Lima Chehab, Diogo Behrens, Ming Fu et al.ASPLOS 2021 · 40 citations
- Optimal prediction of synchronization-preserving racesUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPOPL 2021 · 36 citations
Related papers
- The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 citations
- SmartTrack: efficient predictive race detectionJake Roemer, Kaan Genç, Michael D. BondPLDI 2020 · 28 citations
- Dynamic Race Detection with O(1) SamplesMosaad Al Thokair, Minjian Zhang, Umang Mathur, Mahesh ViswanathanPOPL 2023 · 9 citations
- Sound Dynamic Deadlock Prediction in Linear TimeHünkar Can Tunç, Umang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPLDI 2023 · 15 citations
- Efficient Timestamping for Sampling-Based Race DetectionMinjian Zhang, Daniel Wee Soong Lim, Mosaad Al Thokair, Umang Mathur et al.PLDI 2025 · 1 citation
