Beyond Crash-to-Patch: Patch Evolution for Linux Kernel Repair

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Bai, Luyao, Alghythee, Kenan, Zhang, Hang, Wang, Xiaoguang
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913005456850944
author Bai, Luyao
Alghythee, Kenan
Zhang, Hang
Wang, Xiaoguang
author_facet Bai, Luyao
Alghythee, Kenan
Zhang, Hang
Wang, Xiaoguang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2604_03851
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Beyond Crash-to-Patch: Patch Evolution for Linux Kernel Repair
Bai, Luyao
Alghythee, Kenan
Zhang, Hang
Wang, Xiaoguang
Software Engineering
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.
title Beyond Crash-to-Patch: Patch Evolution for Linux Kernel Repair
topic Software Engineering
url https://arxiv.org/abs/2604.03851