Reproducer Synthesis for AI-Reported Bugs in the Linux Kernel
Organizations: The Chinese University of Hong Kong · ETH Zurich · Tsinghua University
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.
Figures & tables
| Operation | Type |
| Read kernel source, reviews, patches | analyze |
| Change kernel config, build kernel, | env |
| install tools, boot the VM | |
| Write, compile or adjust the PoC | poc |
| Execute the PoC, read the VM log | run |
| Anything else | special:cmd |
| Kernel Subsystem | Historical Bugs (Syzbot+CVE) | Successful Trajectories | Example |
| Core Kernel | 62 ( 11+51 ) | 39 | Race syscall lifecycle paths ( fork/exec/exit , fd teardown ) to reach lock and RCU code. |
| Memory Management | 203 ( 7+196 ) | 9 | Drive fault and allocation edge cases through mmap / madvise / truncate with hugepages configured. |
| File System | 162 ( 78+84 ) | 97 | Craft a disk image with the target feature layout, then mount it with matching options. |
| Network | 226 ( 46+180 ) | 112 | Set up virtual NICs (mac80211_hwsim) and drive protocol state machines through netlink. |
| BPF | 12 ( 5+7 ) | 10 | Load a BPF program whose kfunc call is resolved from the target BTF, then run BPF_PROG_TEST_RUN . |
| Drivers | 32 ( 21+11 ) | 24 | Attach a QEMU virtual device and force hardware features through module parameters. |
| Category | Environment Agent Tools | PoC Agent Tools | Description |
| Environment | fetch , config , build_kernel , start/stop_qemu | Env side manages the full lifecycle from source acquisition to QEMU boot; PoC side triggers rebuild/restart via cross-agent signaling. | |
| File Operations | find{n} , grep{n} , list{n} , read{n} , write_new | find{n} , grep{n} , list{n} , read{n} , write_new | Shared file-system primitives providing search, navigation, read–write access. |
| PoC Execution | compile_poc , copy_to_vm , execute_poc , get_vm_log | Compiles PoC source into executable artifacts, executes it in QEMU and collects output. | |
| Flow Control | summary | analyze , stop , finish , summary | Drives phase progression and termination of the agent workflow and triage bugs. |
| Metric | ReproCue | K-Repro [ 11 ] | SyzDirect [ 8 ] | ||
| D4VS | Qwen3.8 | D4VS | Qwen3.8 | ||
| @Crash (%) | 52.0 ( 52/100 ) | 45.0 ( 45/100 ) | 13.0 ( 13/100 ) | 11 ( 11/100 ) | 27.0 ( 27/100 ) |
| @Match (%) | 49.0 ( 49/100 ) | 42.0 ( 42/100 ) | 10.0 ( 10/100 ) | 10 ( 10/100 ) | 9.0 ( 9/100 ) |
| Time (min) | 72.8 | 250.1 | 120.2 | 372.6 | 1440.0 |
| – Matched | 62.7 | 237.3 | 50.0 | 205.5 | 1440.0 |
| – Unmatched | 82.6 | 259.4 | 128.0 | 391.2 | 1440.0 |
| Subsystem | Reviews | ReproCue | SyzDirect | K-Repro |
| Kernel | 10 | 5 | 1 | 1 |
| Memory | 10 | 6 | 1 | 1 |
| File | 24 | 12 | 4 | 4 |
| Network | 23 | 11 | 1 | 3 |
| BPF | 13 | 6 | 0 | 1 |
| Drivers | 10 | 5 | 0 | 0 |
| System | Replies | Confirmed Bugs |
| Sashiko | 21.2% | 9.3% |
| ReproCue | 71.4% | 69.4% |
| Syzbot | 19.5% | 16.4% |
| Method | Verified | Mismatched | Missed | Prec. | Poc. |
| ReproCue | |||||
| D4VS | 34 | 4 | 12 | 89.5% | 68.0% |
| Qwen3.8 | 28 | 9 | 13 | 75.7% | 56.0% |
| K-Repro | |||||
| D4VS | 23 | 15 | 12 | 60.5% | 46.0% |
| Qwen3.8 | 26 | 12 | 12 | 68.4% | 52.0% |
| Success | Success | Avg. Time | Avg. Cost | Avg. Tokens | Avg. Steps | |
| Method | @Crash (%) | @Match (%) | (min) | ($) | (input/output) | |
| ReproCue | 52.0 ( 52/100 ) | 49.0 ( 49/100 ) | 72.8 | 0.210 | 13.0M / 274.8K | 136.0 |
| – Matched (49) | - | - | 62.7 | 0.156 | 8.9M / 234.1K | 111.0 |
| – Unmatched (51) | - | - | 82.6 | 0.262 | 17.0M / 313.9K | 160.0 |
| ReproCue | 19.0 ( 19/100 ) | 14.0 ( 14/100 ) | 85.0 | 0.251 | 16.1M / 310.2K | 250 |
| – successful (19) | - | - | 67.9 | 0.170 | 10.0M / 243K | 152 |
Automated Software Testing
Automated software testing uses tools and algorithms to generate, run, and evaluate tests that find defects and prevent regressions.
See all 145 papers