arXiv:2610.30813cs.OSOct 2026

Manuscript Offprint

arXiv:2610.30813

Breaking the Coupling: Efficient Concurrency Fuzzing for Linux Kernel Data Race Detection

Cen Zhang, Jia-Ju Bai, Zi-Yu Zhang, Zuming Jiang

Cen Zhang

Beihang University

Beijing, China

zzzccc427@buaa.edu.cn

Jia-Ju Bai ∗^{*}

Beihang University

Beijing, China

baijiaju@buaa.edu.cn

Zi-Yu Zhang

Beihang University

Beijing, China

ziyuzhang201@buaa.edu.cn

Zuming Jiang

The University of Hong Kong

Hong Kong SAR, China

jzuming@hku.hk

Abstract—Detecting data races in the Linux kernel requires exploring both the input space and the thread-interleaving space. Existing kernel concurrency fuzzers couple these two searches by exploring interleavings during fuzzing, often spending substantial scheduling effort on inputs with little potential to trigger real races. In this paper, we present a new concurrency fuzzing paradigm that decouples concurrent-input generation from thread-interleaving exploration, enabling expensive scheduling to focus on promising inputs.

To identify inputs that warrant targeted scheduling, we introduce May Race Pairs (MRPs), which represent conflicting memory-access pairs observed within a dynamically determined time threshold. Our framework first generates and executes concurrent syscall groups without controlled scheduling, collecting MRPs to guide further input mutation and identify schedule-worthy inputs. It then uses a separate scheduling instance to explore targeted interleavings and confirm real data races. To improve the effectiveness of both stages, we incorporate LLM-assisted semantic mutation for generating diverse syscall groups, backpressure-guided dynamic threshold control for balancing candidate production and scheduling consumption, and history-aware context recovery, context-aware interleaving scheduling, and candidate MRP prioritization for efficient race confirmation.

We implement our framework for the Linux kernel and evaluate it on eight common kernel modules in Linux 6.17. It discovers 187 unique real-world data races, including 59 harmful races. Under the same testing budget, our approach detects substantially more data races than existing kernel concurrency fuzzers, including SegFuzz and CONZZER. These results demonstrate the effectiveness of decoupling concurrent-input generation from interleaving exploration and concentrating scheduling effort on promising candidates.

1. Introduction

Data races are a common and critical class of concurrency issues in the Linux kernel. A data race occurs when a conflicting access pair executes concurrently. A conflicting access pair is defined as two accesses from different threads to the same or overlapping memory range, where at least one access is a write. In the Linux kernel, data races can cause data corruption [1], memory corruption [2]–[4], and severe security vulnerabilities such as privilege escalation [5]–[7].

Detecting data races is more challenging than detecting single-threaded bugs, because race exposure depends on both suitable inputs and schedules. The input dimension determines whether concurrently executed threads can create a conflicting access pair. The schedule dimension determines whether these accesses occur simultaneously. Therefore, detecting data races in the Linux kernel must consider both input and schedule dimensions. This greatly enlarges the search space and complicates practical race detection.

Many approaches have been proposed to detect data races in the Linux kernel. Coverage-guided fuzzers primarily explored the input dimension alone [8]–[17], relying on runtime data-race checkers such as KCSAN [18] and KTSAN [19] to identify races during execution. However, their main feedback signal is code coverage, which reflects sequential system executions but provides little guidance for exploring thread interleavings, and therefore limits their ability to expose data races.

Recent work has increasingly recognized that data-race detection must reason about both inputs and thread interleavings. One line of work first reduces the search space through static race analysis, memory-access traces collected from sequential executions, or learned predictors trained from prior executions, and then performs concurrent execution with strategic scheduling within the reduced space [20]–[22]. Another line of concurrency-aware fuzzing uses runtime concurrency information to guide thread-interleaving exploration, increasing the probability of triggering concurrency issues [23]–[28]. These approaches substantially improve practical race detection because they move beyond single-threaded coverage and consider schedule dimensions.

However, existing approaches remain inefficient because they still deeply couple their concurrent-input generation with thread-interleaving exploration when detecting data races. Specifically, existing approaches have to repeatedly execute the inputs and insert scheduling points (e.g., thread delay) during their executions. However, most of the inputs they randomly generate have limited potential to trigger real races, as a result of which existing approaches waste a sig-

∗^{*}Corresponding author.

nificant amount of computing resources in scheduling these inputs. The root cause of this inefficiency is that concurrent-input generation and thread-interleaving exploration remain coupled. As they lack a systematic way to identify the inputs that have a higher potential to trigger data races under scheduling, existing approaches either have to schedule most inputs once they are generated, including many low-potential ones, or rely on concurrency feedback, such as covered thread interleavings, whose collection requires repeatedly scheduling for each generated input.

In this paper, we propose a new concurrency fuzzing paradigm, decoupling concurrent-input generation and thread-interleaving exploration, to significantly increase the efficiency of race detection in the Linux kernel. Controlled scheduling is much more expensive than ordinary concurrent execution, as it typically requires repeated input executions or fine-grained system execution controls. Therefore, our insight is that the fuzzers should perform thread scheduling for only the inputs that have a higher potential to trigger data races, instead of applying expensive scheduling to every generated input. Based on this insight, we separate data race detection into two decoupled processes: (1) generating concurrent inputs and selecting the ones that deserve to be scheduled; (2) scheduling the execution of the given input and determining whether it can indeed trigger a data race.

The core part of such decoupling is how to determine whether a given input has the potential to trigger real races and thus deserves the expensive scheduling. To address it, we introduce a new concept, May Race Pair (MRP). An MRP represents a conflicting access pair that occurs within a dynamically determined time threshold. It does not prove the existence of a data race. Instead, it indicates a scheduling-worthy pair: when two accesses target the same memory address and occur within a short time window, they are more likely to occur concurrently under scheduling than other pairs. With MRP, we can effectively select the inputs that have a higher potential to trigger data races and perform expensive scheduling on only these inputs. Moreover, an MRP records the conflicting access pair, which enables the scheduling for the input to focus on a pair of concrete code sites, significantly reducing the scheduling cost.

Based on this concept, we design DCIGSE, a kernel concurrency fuzzing framework. DCIGSE consists of two decoupled instances: an input-generation instance and a thread-scheduling instance. The two instances run in parallel. The input-generation instance produces inputs that trigger MRPs, while the thread-scheduling instance consumes these inputs by scheduling their thread execution to trigger the potential data races. To maximize the number of detected data races, the throughput of these instances should be the same, which motivates our design of the dynamically determined time threshold specified in the MRP. This threshold involves a tradeoff: (1) a smaller threshold admits only conflicting access pairs with shorter temporal distances, which are usually more promising for triggering real races under scheduling, but may produce too few candidate MRPs and underutilize the thread-scheduling instance; (2) a larger threshold allows the input-generation instance to collect more MRPs, but may also admit more low-potential candidates, which may waste the scheduling effort. DCIGSE adopts a backpressure-guided control to dynamically adjust the threshold. Specifically, DCIGSE decreases the time threshold when the collected MRPs accumulate faster than they can be consumed, so that the input-generation instance admits fewer MRPs with shorter temporal distances and the thread-scheduling instance can spend its limited budget on more promising candidates. Conversely, DCIGSE increases the time threshold when the collected MRPs are insufficient, ensuring enough candidate MRPs to avoid starvation of the thread-scheduling instance.

The input-generation instance generates syscall groups. Each group consists of two sequences of syscalls. Given a syscall group, this instance executes the two syscall sequences concurrently without controlled scheduling. The instance collects the syscall groups that trigger new MRPs. We propose LLM-assisted semantic mutation for generating more interesting syscall groups. Specifically, we provide the LLM with module-specific mutation constraints and cross-sequence semantic interaction objectives. Guided by this information, we leverage its reasoning capabilities and pretrained knowledge to understand and semantically mutate promising syscall groups selected based on MRP feedback.

The thread-scheduling instance consumes the collected syscall groups and schedules them to confirm whether they can indeed trigger data races. We integrate three methods: history-aware context recovery to recover the kernel state required to reproduce candidate MRPs, context-aware interleaving scheduling to distinguish different dynamic occurrences of the same static access site using finer-grained runtime contexts, and candidate MRP prioritizing to prioritize candidate inputs based on previous scheduling results.

We implemented DCIGSE and evaluated DCIGSE on eight common Linux kernel modules in Linux 6.17. In total, it found 187 unique real-world data races, among them 59 are identified as harmful races. We reported the harmful races. As of paper submission, 39 bugs have been confirmed, and 15 of the bugs have been fixed. These races may result in critical security vulnerabilities like concurrent use-after-frees. The comparison results indicate that our approach can find significantly more data races than existing approaches including SegFuzz [27] and CONZZER [26] within the same testing budget.

In summary, we make the following contributions:

• At the conceptual level, we propose a new paradigm for kernel concurrency fuzzing: decoupling concurrent-input generation and thread-interleaving exploration. We further introduce a new concept, May Race Pair (MRP), to facilitate the decoupling.

• At the technical level, we design DCIGSE, a kernel concurrency fuzzing framework that realizes this paradigm. We integrate DCIGSE with LLM-assisted semantic mutation to generate diverse system inputs, and with history-aware context recovery, context-aware interleaving scheduling, and candidate MRP prioritizing to efficiently explore promising thread interleavings.

• At the practical level, we implemented and evaluated DCIGSE on eight common Linux kernel modules in Linux 6.17. DCIGSE found 187 unique real-world data races (59 harmful, 39 confirmed, and 15 fixed), outperforming the existing approaches.

References (67)