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.
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:
- 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").
- 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