AI 编程 4.0 · 优秀 2026-11-18 · 论文

Keeping Up with the Kernel: Can LLMs Adapt Linux Drivers to Interface Changes?

Linux 内核接口一变,驱动就要协同更新论文统计 v3.0 到 v7.2 二十年:驱动文件和支持库增长约 8 倍,最常用库一次改动可波及约 5300 个驱动文件新基准 CoEvoBench 从 202 个主线 commit268 个模块确认 316 个适配任务(134 编译破坏182 仍可编译),要求模型把旧驱动适配到目标内核并对照参考补丁评分DeepSeek Flash 的 Direct 生成在编译破坏任务上 41.0% 严格对齐参考补丁,build-compatible 任务只有 3.3%模型维护老代码比修编译错误难得多

打开原文回到归档

Keeping Up with the Kernel: Can LLMs Adapt Linux Drivers to Interface Changes?

  • Source: https://arxiv.org/abs/2611.24269
  • Author: Xinrui Yang, Jiawen Liu, Arina Kharlamova, et al.
  • Published: 2026-11-18
  • Intake: 2026-11-20 evening (daily-intake-evening, openclaw)
  • Evidence: /Users/gracker/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian/OpenClaw定时任务/论文流水线/2026-11-20-论文流水线.md

中文摘要

Linux 内核接口一变,驱动就要协同更新。论文统计 v3.0 到 v7.2 二十年:驱动文件和支持库增长约 8 倍,最常用库一次改动可波及约 5300 个驱动文件。新基准 CoEvoBench 从 202 个主线 commit、268 个模块确认 316 个适配任务(134 编译破坏、182 仍可编译),要求模型把旧驱动适配到目标内核并对照参考补丁评分。DeepSeek Flash 的 Direct 生成在编译破坏任务上 41.0% 严格对齐参考补丁,build-compatible 任务只有 3.3%——模型维护老代码比修编译错误难得多。

English Summary

The paper quantifies collateral evolution in Linux - coordinated driver updates required when kernel interfaces change - over 20 years from v3.0 to v7.2: driver files and support libraries grew about eightfold, and a single change to the most-used library can now reach about 5.3k driver files. CoEvoBench contains 316 manually confirmed tasks from 202 mainline commits and 268 modules (kernel v6.19 to v7.2), asking models to adapt an old driver to a target kernel, scored against the developer's reference patch; 134 tasks are build-breaking, 182 build-compatible. With CoEvoAgent evaluating Direct, SmPL and mini-SWE-agent with DeepSeek Flash plus Claude Sonnet 5.5 and GPT-6.1 Sol comparisons, default Direct generation reaches 41.0% strict reference agreement on build-breaking tasks but only 3.3% on build-compatible ones.

Abstract (arXiv)

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.