Beyond Crash-to-Patch: Patch Evolution for Linux Kernel Repair
Luyao Bai, Kenan Alghythee, Hang Zhang, Xiaoguang Wang

TL;DR
This paper studies the iterative process of Linux kernel bug fixing, revealing the importance of review-driven refinements, and introduces PatchAdvisor, a framework that leverages patch evolution history to improve repair quality.
Contribution
It provides a large-scale analysis of kernel patch evolution and develops PatchAdvisor, a novel repair framework guided by review-enforced constraints and patch history.
Findings
Accepted repairs are often non-local and review-guided.
Leveraging patch history improves repair alignment and quality.
PatchAdvisor outperforms unguided and retrieval-only baselines.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
