Precise Detection of Kernel Data Races with Probabilistic Lockset Analysis
Gabriel Ryan, Abhishek Shah, Dongdong She, Suman Jana
Abstract
Finding data races is critical for ensuring security in modern kernel development. However, finding data races in the kernel is challenging because it requires jointly searching over possible combinations of system calls and concurrent execution schedules. Kernel race testing systems typically perform this search by executing groups of fuzzer seeds from a corpus and applying a combination of schedule fuzzing and dynamic race prediction on traces. However, predicting which combinations of seeds can expose races in the kernel is difficult as fuzzer seeds will usually follow different execution paths when executed concurrently due to inter-thread communications and synchronization.To address this challenge, we introduce a new analysis for kernel race prediction, Probabilistic Lockset Analysis (PLA) that addresses the challenges posed by race prediction for the kernel. PLA leverages the observation that system calls almost always perform certain memory accesses to shared memory to perform their function. PLA uses randomized concurrent trace sampling to identify memory accesses that are performed consistently and estimates the probability of races between them subject to kernel lock synchronization. By prioritizing high probability races, PLA is able to make accurate predictions.We evaluate PLA against comparable kernel race testing methods and show it finds races at a 3× higher rate over 24 hours. We use PLA to find 183 races in linux kernel v5.18-rc5, including 102 harmful races. PLA is able to find races that have severe security impact in heavily tested core kernel modules, including use-after-free in memory management, OOB write in network cryptography, and leaking kernel heap memory information. Some of these vulnerabilities have been overlooking by existing systems for years: one of the races found by PLA involving an OOB write has been present in the kernel since 2013 (version v3.14-rc1) and has been designated a high severity CVE.
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.
5 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
- LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules cites Razzer: Finding Kernel Race Bugs through Fuzzing
- LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules cites ExpRace: Exploiting Kernel Races through Raising Interrupts
- LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules cites Krace: Data Race Fuzzing for Kernel File Systems
- ExpRace: Exploiting Kernel Races through Raising Interrupts cites Razzer: Finding Kernel Race Bugs through Fuzzing
- Krace: Data Race Fuzzing for Kernel File Systems cites Razzer: Finding Kernel Race Bugs through Fuzzing
- Optimal prediction of synchronization-preserving races cites Fast, sound, and effectively complete dynamic race prediction
- SyzParam: Incorporating Runtime Parameters into Kernel Driver Fuzzing cites Razzer: Finding Kernel Race Bugs through Fuzzing
- SyzParam: Incorporating Runtime Parameters into Kernel Driver Fuzzing cites Krace: Data Race Fuzzing for Kernel File Systems
- Static Detection of TOCTOU Bugs Caused by Kernel Races cites LR-Miner: Static Race Detection in OS Kernels by Mining Locking Rules
- Static Detection of TOCTOU Bugs Caused by Kernel Races cites Razzer: Finding Kernel Race Bugs through Fuzzing
- Static Detection of TOCTOU Bugs Caused by Kernel Races cites ExpRace: Exploiting Kernel Races through Raising Interrupts
- Static Detection of TOCTOU Bugs Caused by Kernel Races cites Krace: Data Race Fuzzing for Kernel File Systems
- CARDSHARK: Understanding and Stablizing Linux Kernel Concurrency Bugs Against the Odds cites Razzer: Finding Kernel Race Bugs through Fuzzing
Cited by top-tier papers5
- 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 citations
- CARDSHARK: Understanding and Stablizing Linux Kernel Concurrency Bugs Against the OddsTianshuo Han, Xiaorui Gong, Jian LiuUSENIX Security 2024 · 2 citations
- SyzParam: Incorporating Runtime Parameters into Kernel Driver FuzzingYue Sun, Yan Kang, Chenggang Wu, Kangjie Lu et al.CCS 2025
- Static Detection of TOCTOU Bugs Caused by Kernel RacesGui-Dong Han, Jia-Ju Bai, Qiu-Ji Chen, Jiqiang LuUSENIX Security 2026
- Multi-stage On-Demand Program Slicing for Modular Analysis of Multi-threaded ProgramsJiawei Yang, Xiao Cheng, Jiawei Wang, Xiapu Luo et al.ISSTA 2026
Builds on8
- 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
- ExpRace: Exploiting Kernel Races through Raising InterruptsYoochan Lee, Changwoo Min, Byoungyoung LeeUSENIX Security 2021 · 40 citations
- Optimal prediction of synchronization-preserving racesUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPOPL 2021 · 36 citations
Related papers
- GhostRace: Exploiting and Mitigating Speculative Race ConditionsHany Ragab, Andrea Mambretti, Anil Kurmus, Cristiano GiuffridaUSENIX Security 2024 · 10 citations
- DDRace: Finding Concurrency UAF Vulnerabilities in Linux Drivers with Directed FuzzingMing Yuan, Bodong Zhao, Penghui Li, Jiashuo Liang et al.USENIX Security 2023
- A Little Goes a Long Way: Tuning Configuration Selection for Continuous Kernel FuzzingSanan Hasanov, Stefan Nagy, Paul GazzilloICSE 2025 · 6 citations
- Accurate Data Race Prediction in the Linux Kernel through Sparse Fourier LearningGabriel Ryan, Burcu Cetin, Yongwhan Lim, Suman JanaOOPSLA 2024 · 2 citations
- CountDown: Refcount-guided Fuzzing for Exposing Temporal Memory Errors in Linux KernelShuangpeng Bai, Zhechang Zhang, Hong HuCCS 2024 · 4 citations
