Taming System Complexity: Demystifying Software Engineering Agents in Diagnosing Linux Kernel Faults

Zhenhao Zhou, Zhuochen Huang, Yike He, Chong Wang, Jiajun Wang, Yijian Wu, Xin Peng, Yiling Lou

TL;DR

While LLM-powered software engineering agents excel at fixing bugs in standard software benchmarks, they struggle significantly when facing the massive scale and complexity of the Linux kernel. This paper introduces LINUXFLBENCH, a new benchmark of real-world Linux bugs, and proposes LINUXFL+, a lightweight framework that boosts agent fault localization accuracy by up to 11.2% using directory structures and historical developer mailing lists.

What Problem Does This Paper Address?

Fault localization (FL)—identifying the exact file or function responsible for a software bug—is a critical prerequisite for automated bug fixing. Recently, Large Language Model (LLM) agents like SWE-Agent and Agentless have achieved impressive ~70% success rates on general software benchmarks like SWE-bench.

However, the Linux kernel is a completely different beast. It features a massive codebase (over 28 million lines of code), limited runtime observability due to strict overhead constraints, and complex bugs influenced by hardware and timing variations. This paper investigates whether state-of-the-art LLM agents can handle the sheer complexity of diagnosing faults in the Linux kernel, revealing a massive performance gap when moving from general applications to low-level systems software.

Methods

To bridge this gap, the authors introduce LINUXFL+, an enhancement framework designed to augment existing LLM agents without rewriting their core architectures.

Overview of the LINUXFL+ framework

As shown in Figure 4, the framework operates in three distinct stages:

  1. Directory-Aware Expansion: Agents often identify the correct module or directory but pick the wrong file. LINUXFL+ expands the search scope to include all files in the predicted directory and asks the LLM to re-evaluate them.
  2. Potential Cause Expansion: To prevent the LLM from prematurely committing to a single diagnosis, this stage generates alternative failure hypotheses using two methods: Direct Hypothesis (leveraging the LLM's internal knowledge) and Mail-Augmented Hypothesis (using Retrieval-Augmented Generation (RAG) to pull relevant historical discussions from the Linux Kernel Mailing List).
  3. Candidate Integration: All candidate files are merged using a reciprocal rank fusion scoring strategy and then re-ranked by the LLM based on semantic relevance.

Datasets

The authors constructed LINUXFLBENCH, a benchmark consisting of 250 real-world fault localization tasks from the Linux kernel.

  • Data Source: Sourced from Kernel.org Bugzilla up to December 2024.
  • Diversity: Spans 120 distinct kernel versions and 66 different components (e.g., drivers, file systems, ACPI).
  • Complexity: Compared to SWE-bench Lite, LINUXFLBENCH features codebases that are 10–30× larger, longer stack traces, and significantly more complex bug descriptions.
Comparison of benchmark scales

Key Insights and Ideas

  • Coarse-Grained Success, Fine-Grained Failure: Baseline agents are surprisingly good at finding the right neighborhood (the directory) but terrible at finding the right house (the file). Linux directories contain twice as many files on average as general software repositories, leading to "confusion among related files."
  • The Danger of Depth-First Thinking: Complex kernel bugs like boot failures or performance issues often involve long execution paths. Standard agents tend to follow a single, superficially obvious reasoning path and miss the true root cause.
  • Mailing Lists are Domain-Specific Goldmines: Integrating historical discussions from the Linux Kernel Mailing List (LKML) provides crucial context that general-purpose LLMs lack, effectively bridging the gap between high-level symptoms and low-level code locations.

Key Results

The empirical study showed that standard agents perform poorly on the Linux kernel compared to general software benchmarks, with top-1 recall dropping by over 15% across the board.

Performance drop of LLM agents from SWE-bench to LINUXFLBENCH

However, integrating LINUXFL+ yielded substantial improvements across all evaluated agents:

  • SWE-Agent: Top-1 recall increased from 41.6% to 52.4%.
  • AutoCodeRover: Top-1 recall increased from 38.8% to 50.0%.
  • Agentless: Top-1 recall increased from 36.8% to 44.0%.

Crucially, this performance boost is highly cost-efficient. LINUXFL+ only adds an average of 11.8k to 15.3k tokens per task, translating to an additional cost of roughly $0.04 per bug—about one-tenth of what the baseline agents cost to run initially.

Limitations and Future Work

While LINUXFL+ shows impressive gains, the authors note a few limitations:

  • LLM Backbones: The majority of the evaluation relied on GPT-4o, though smaller open-source models (like Qwen3-32B) and GPT-5 were briefly validated.
  • Mailing List Noise: The framework currently uses a relatively straightforward BM25 retrieval method for the mailing list data. Because developer emails can contain outdated or irrelevant discussions, future work will explore more sophisticated filtering and retrieval mechanisms to better exploit this unstructured knowledge base.

Summary updated

BibTeX
@inproceedings{zhou2026taming,
  author = {Zhenhao Zhou and Zhuochen Huang and Yike He and Chong Wang and Jiajun Wang and Yijian Wu and Xin Peng and Yiling Lou},
  title = {{Taming System Complexity: Demystifying Software Engineering Agents in Diagnosing Linux Kernel Faults}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.862},
}
Figure