Reproducer Synthesis for AI-Reported Bugs in the Linux Kernel

Xiao Wu, Yunbo Ni, Hao Sun, Yuanyuan Yuan, Shaohua LiarXiv 2026

TL;DR

AI code reviewers are now flagging suspected bugs in Linux kernel patches at scale, but they leave human maintainers with walls of speculative text—and zero proof that the bugs can actually happen. ReproCue bridges this trust gap by automatically generating runnable proof-of-concept (PoC) programs that crash the kernel right where the AI said it would. When backed by executable proof instead of polite guesses, kernel maintainers go from largely ignoring AI bug reports to actively confirming and fixing nearly 70% of them.

What Problem Does This Paper Address?

Maintaining the Linux kernel is a monumental human bottleneck: thousands of patches arrive via email every week, and over 55% receive no response. To help, organizations have deployed AI review bots (like Google's Sashiko) that read incoming patches and post inline warnings about suspected memory leaks or logic errors.

The catch? These bots are speculative auditors. Because AI reviews are frequently wrong—and verifying whether a theoretical bug is actually reachable requires hours of tracing system calls and configuring virtual machines—overwhelmed maintainers simply ignore nearly 80% of them.

Figure 1. A motivating kernel discussion demonstrating the practical value of PoC-backed AI review. A reproducing PoC resolved a disputed warning and provided executable evidence that the reported defect was reachable.

What maintainers really need is a runnable Proof-of-Concept (PoC)—a small program that triggers the exact crash. However, automating PoC synthesis for the kernel is notoriously tricky because the trigger code and the execution environment are co-dependent. A valid PoC will silently fail if the kernel wasn't compiled with a specific flag, or if the virtual machine lacks a specially formatted disk image or virtual network interface. Existing fuzzers (which randomly mutate system calls) struggle with strict input grammars, while general-purpose coding agents get lost in endless, unstructured loops of rebuilding kernels and rebooting VMs.

Methods

ReproCue solves this by treating PoC generation and environment setup as a structured, joint search problem governed by historical memory. It operates in two phases:

Figure 3. Overview of ReproCue. In the offline phase (left), the Strategy and Environment Agents replay historical bugs, and Algorithm 1 derives one FSM per subsystem from successful trajectories. In the online phase (right), ReproCue selects the reviewed subsystem’s FSM. Guided by this FSM and execution feedback, the PoC and Environment Agents iteratively refine the PoC and environment to produce an executable PoC for AI review.
  1. Offline Strategy Induction (Learning the Playbook): ReproCue has AI agents replay hundreds of historical kernel bugs. Across successful runs, the authors noticed that reproducing bugs within the same kernel subsystem (e.g., Networking, File Systems, BPF) follows predictable steps and fails in predictable ways. ReproCue distills these execution traces into one Finite-State Machine (FSM) per subsystem. Nodes represent steps (like analyze, build env, write PoC, or subsystem-specific steps like verify BPF bytecode), back-edges dictate where to return upon specific errors, and each state holds distilled "guidelines" (e.g., "pahole tool version must match the target kernel").
  2. Online PoC Synthesis (Two-Agent Execution): Given a new textual AI review, ReproCue loads that subsystem's FSM to coordinate two specialized LLM agents: a PoC Agent (writes C or Syzlang trigger code) and an Environment Agent (tweaks kernel configs, attaches QEMU virtual devices, and boots VMs). Only one agent acts at a time, receiving only the tools and guidelines relevant to its current FSM state. This separation keeps the LLM's context clean, preventing messy compiler logs from derailing code reasoning.

Datasets

To avoid data contamination between learning and testing, the authors used strictly disjoint datasets:

  • Offline Learning Set: 806 historical kernel bugs (175 automated Syzbot fuzzing reports + 631 security CVEs), yielding 317 successful trajectories used to build the subsystem FSMs.
  • In-the-Wild Evaluation Set: 100 recent patch-review pairs flagged by Google's Sashiko AI bot on active Linux mailing lists, minimizing the chance that the LLMs memorized the bugs.
  • Ground-Truth Benchmark: 50 held-out Syzbot reports and 50 historical CVEs with known crashes to measure precision against a ground-truth oracle.

Key Insights and Ideas

  • Knowing why code is buggy isn't enough to break it: In ablation tests, giving agents static documentation on kernel bug patterns yielded only 21 PoCs (compared to 49 with FSMs). Procedural exploit knowledge—knowing how to wire up fault-injection frameworks or satisfy picky bytecode verifiers—must be learned from execution trial-and-error.
  • Environment mutability needs adult supervision: Out of 100 recent AI reviews, 61 required non-default environments (like ARM/RISC-V emulation or multi-core setups for race conditions). Giving a single agent all environment tools caused context overflow and dropped matches from 49 to 20. Splitting duties between two FSM-governed agents is what makes co-adaptation work.
  • Executable proof transforms human workflows: Maintainers aren't allergic to AI; they are allergic to unverified noise. Attaching a runnable PoC turns a 50-hour mailing-list debate into a 1-hour fix.

Key Results

  • Crushing the Baselines on Live AI Reviews: On 100 recent Sashiko reviews, ReproCue generated call-trace-matching PoCs for 49 cases (averaging ~73 minutes and $0.21 in API costs per case using DeepSeek-V4-Flash). This vastly outperformed K-Repro, a state-of-the-art agentic reproducer (10 matches), SyzDirect, a directed kernel fuzzer (9 matches in 24 hours/case), and Claude Code (13 matches).
  • Real-World Maintainer Impact: When the authors emailed those 49 PoCs to Linux kernel mailing lists, 71.4% received maintainer replies and 69.4% (34 bugs) were confirmed and fixed. By comparison, standard text-only Sashiko reviews saw a 21.2% reply rate and just a 9.3% confirmation rate.
  • High Precision on Known Bugs: Across the 100 ground-truth Syzbot and CVE bugs, ReproCue reproduced 64% overall (vs. 44% for K-Repro and 29% for SyzDirect) with 89.5% to 100% precision—meaning when ReproCue triggers a crash, it almost always hits the exact bug described.

Limitations and Future Work

  • Hardware Blind Spots: ReproCue relies on QEMU virtualization, which struggles to emulate exotic or proprietary hardware. Consequently, Firmware was its weakest category (4/10 PoCs). Richer device models or real hardware testbeds are needed.
  • Crash-Only Oracle: The system currently relies on observable kernel panics/KASAN faults. Silent logic bugs, subtle data corruption, or performance regressions fly under its radar.
  • Static Playbooks & Manual Checks: Subsystem FSMs currently freeze after offline training, and verifying that a crash trace matches the review still involves human inspection. Future work aims to continuously update FSMs online and automate crash-to-review alignment.

Summary updated

Abstract

Agentic review systems are increasingly flagging suspected bugs in Linux kernel patches as textual reports. A maintainer who receives such reports needs further inspection to determine whether the report is true. The inspection requires understanding whether the bug can be triggered and, if necessary, manually constructing one. As a consequence, despite the excessive textual explanation, many reports go unanswered. In this paper, we argue that a runnable proof-of-concept (PoC) is the key information in such AI-generated kernel review reports. It is, however, challenging to automatically synthesize a valid and runnable PoC. We present ReproCue, a framework that generates PoCs for AI-generated Linux kernel reviews. ReproCue replays the historical kernel bugs and learns one reproduction finite-state-machine (FSM) per subsystem from successful runs. An FSM records the steps a reproduction goes through, together with the requirements observed at each step. Given a new review, ReproCue follows the FSM of that subsystem, adjusting the PoC and the environment as execution shows what is missing. In 100 recent AI-generated reviews, ReproCue writes PoCs for 49 of them, compared with 10 for the current agentic reproducer and 9 for the state-of-the-art directed fuzzing. Excitingly, with our generated PoCs, Linux kernel maintainers confirmed 69.4% of them, much higher than 9.3% from Sashiko where only textual explanations are included, making AI reviews more actionable in practice.
BibTeX
@misc{wu2026reproducer,
  author = {Xiao Wu and Yunbo Ni and Hao Sun and Yuanyuan Yuan and Shaohua Li},
  title = {{Reproducer Synthesis for AI-Reported Bugs in the Linux Kernel}},
  year = {2026},
  eprint = {2611.34142},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34142},
}
Figure