Keeping Up with the Kernel: Can LLMs Adapt Linux Drivers to Interface Changes?
Xinrui Yang, Jiawen Liu, Arina Kharlamova, Humaid Alqasimi, Tianyi Zhang, Alnoor Ismail, Youcheng Sun, Chun Jason Xue
Key points
From the paper's conclusion- We analyze collateral evolution in Linux, the coordinated updates that drivers require when the kernel interfaces they depend on change, over the 20 years since it was first studied, covering releases from v3.0 to v7.2.
Abstract
We analyze collateral evolution in Linux, the coordinated updates that drivers require when the kernel interfaces they depend on change, over the 20 years since it was first studied, covering releases from v3.0 to v7.2. Since v2.6.13, the number of driver files and support libraries has grown about eightfold, a single change to the most widely used library can now reach about 5.3k driver files, and such changes arrive either in bursts or spread over many releases. We introduce CoEvoBench, a benchmark that asks models to adapt an old driver module to a target kernel and evaluates the result against the developer's reference patch. The benchmark contains 316 manually confirmed tasks from 202 mainline commits and 268 modules, spanning kernel releases v6.19 to v7.2. It distinguishes 134 build-breaking tasks, where the old driver fails to compile, from 182 build-compatible tasks, where the old usage still builds. Using CoEvoAgent, we evaluate Direct, SmPL, and mini-SWE-agent with DeepSeek Flash, and compare Direct with Claude Sonnet 5.5 and GPT-6.1 Sol. With DeepSeek, default Direct generation achieves strict reference agreement on 41.0% of build-breaking tasks but only 3.3% of build-compatible tasks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Guided Generation of Linux Kernel Semantic Patches with Small Local Language ModelsarXiv · 2026
- Beyond Crash-to-Patch: Patch Evolution for Linux Kernel RepairarXiv · 2026
- ReproShift: Cross-Version Adaptation of Linux Kernel Fuzzing Crash ReproducersarXiv · 2026
- CrossSWE: Benchmarking Cross-Repository Joint Development for Coding AgentsarXiv · 2026
- Chronos Enables Code Agents to Reason over Software EvolutionarXiv · 2026
- Breaking the Coupling: Efficient Concurrency Fuzzing for Linux Kernel Data Race DetectionarXiv · 2026