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
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.
Create a lesson
Related papers
Guided Generation of Linux Kernel Semantic Patches with Small Local Language Models
Shared title terminology · Mohanned Ahmed
Git History Is a Pangenome: Repetition in Code Training Corpora and What Deduplication Removes, Keeps and Misses
Shared title terminology · Saurabh Chopra
Which Archived Results Survive a Rule Change? A Case Study in Revalidating Decisions
Shared title terminology · Zengjian Liu, Tommy He, ELE Zhao et al.
Copilot or Culprit? How AI Is Changing Open-Source Bug Reporting and Maintenance
Shared title terminology · Yinuo Liu, Yunlong Lyu, Zichao Luo et al.
Metadata-Driven AI: An Architectural Pattern for Sustainable Data Analysis with LLMs
Shared title terminology · Renaud Pawlak, Armen Sulejmani, Jordi Cabot
SWE-growth: Teacher-Guided Adaptive Self-Play for Software Engineering Agents
Shared title terminology · Songshi Liang, Zixuan Huang, Mingxuan Song et al.