Beyond Crash-to-Patch: Patch Evolution for Linux Kernel Repair
Luyao Bai, Kenan Alghythee, Hang Zhang, Xiaoguang Wang
Key points
From the paper's conclusion- We present a large-scale study of kernel patch evolution, reconstructing 6946 syzbot-linked bug-fix lifecycles that connect crash reports, reproducers, mailing-list discussions, revision histories, and merged fixes.
Abstract
Linux kernel bug repair is typically approached as a direct mapping from crash reports to code patches. In practice, however, kernel fixes undergo iterative revision on mailing lists before acceptance, with reviewer feedback shaping correctness, concurrency handling, and API compliance. This iterative refinement process encodes valuable repair knowledge that existing automated approaches overlook. We present a large-scale study of kernel patch evolution, reconstructing 6946 syzbot-linked bug-fix lifecycles that connect crash reports, reproducers, mailing-list discussions, revision histories, and merged fixes. Our analysis confirms that accepted repairs are frequently non-local and governed by reviewer-enforced constraints not present in bug reports. Building on these insights, we develop PatchAdvisor, a repair framework that integrates retrieval-based memory with a fine-tuned diagnostic advisor to guide a coding agent toward reviewer-aligned patches. Evaluation on temporally held-out syzbot cases demonstrates that leveraging patch-evolution history yields measurable gains in both reviewer-aligned refinement signals and end-to-end repair quality compared to unguided and retrieval-only baselines.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ReproShift: Cross-Version Adaptation of Linux Kernel Fuzzing Crash ReproducersarXiv · 2026
- Reproducer Synthesis for AI-Reported Bugs in the Linux KernelarXiv · 2026
- Keeping Up with the Kernel: Can LLMs Adapt Linux Drivers to Interface Changes?arXiv · 2026
- Guided Generation of Linux Kernel Semantic Patches with Small Local Language ModelsarXiv · 2026
- Just Old Wine in a New Bottle: Improving Vulnerability Repair Robustness to Combat Homologous but Heterogeneous VulnerabilitiesProceedings of the ACM on Software Engineering · 2026
- Patch correctness in automated program repair: A five-dimensional evidence framework and cross-benchmark audit from classical repair to coding agentsarXiv · 2026