mlsanityData to 14 Oct 2026

kAgent: An execution-guided crash resolution agent for the Linux kernel

arXiv 2504.20412 ↗First posted 29 Apr 2025cs.SE cs.AI cs.OScited by 4

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Fuzzing frameworks like syzkaller have uncovered thousands of Linux kernel crashes, many of which are critical and security-sensitive. However, the ability to rapidly repair these crashes has not kept pace, particularly given the complexity and low-level nature of kernel code. Predominantly targeting user-space applications, existing LLM-based program repair techniques are not tailored to the unique challenges posed by kernel fuzz bugs-such as the absence of natural language bug reports, lack of exhaustive test oracles, and highly specialized crash artifacts. Thus, in this work, we first identify the prevalent bottlenecks that generic agents struggle with in complex systems such as the Linux kernel. Guided by these findings, we then build kAgent, a workflow-based agent inspired by how kernel developers diagnose and fix bugs, and kGym++, the co-designed toolstack supporting kAgent's requests. kAgent inspects relevant execution logs, generates execution-grounded natural language hypotheses, synthesizes candidate patches, validates patches through crash reproduction, and iteratively refines its reasoning. We ablate these agentic system features in kAgent and quantitatively analyze their contributions to the overall performance. We also report our experience on building agents for kernel crash repair. Although derived from this work on Linux, we note that our experience applies broadly to fuzzing-discovered bugs in complex systems software. We evaluate kAgent on kBenchSyz and show that it can repair up to 54.5% of crashes without localization and 65% with correct file hints. We also show kAgent's generalization on a few wild Syzkaller bugs, and how different patch types offer varying utility to developers who debug complex system software.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 22 of its 35 references that are in the map. First posted on arXiv 29 Apr 2025.

Builds on

22 of 35 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025debug-gym: A Text-Based Environment for Interactive Debugging27 Mar
  2. 2025Evaluating Agent-based Program Repair at Google13 Jan
  3. 2024MarsCode Agent: AI-native Automated Bug Fixing2 Sep

Other references · 19

  1. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  2. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
  3. 2023Teaching Large Language Models to Self-Debugcited by 988
  4. 2023Fine-Grained Human Feedback Gives Better Rewards for Language Model Trainingcited by 401
  5. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
  6. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  7. 2024AutoCodeRover: Autonomous Program Improvementcited by 278
  8. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
  9. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
  10. 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
  11. 2023Impact of Code Language Models on Automated Program Repaircited by 85
  12. 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
7 more
  1. 2023Improving Code Generation by Training with Natural Language Feedbackcited by 76
  2. 2023GrACE: Generation using Associated Code Editscited by 16
  3. 2024Leveraging Print Debugging to Improve Code Generation in Large Language Modelscited by 15
  4. 2024KGym: A Platform and Dataset to Benchmark Large Language Models on Linux Kernel Crash Resolutioncited by 12
  5. 2023Automated Code Editing with Search-Generate-Modifycited by 8
  6. 2021SyzScope: Revealing High-Risk Security Impacts of Fuzzer-Exposed Bugs in Linux kernelcited by 4
  7. 2024SyzRetrospector: A Large-Scale Retrospective Study of Syzbotcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 1.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Outrunning LLM Cutoffs: A Live Kernel Crash Resolution Benchmark for All
  2. 2026KernelDiag: Agent-Based Root Cause Diagnosis for Kernel Crashes ↗
  3. 2026SyzHarness: Patch-Based Kernel Bug Reproduction with LLM-Synthesized Fuzzing Harnesses
  4. 2026Evaluating Coding Agents on Kernel Exploit Generation
  5. 2026Beyond Crash-to-Patch: Patch Evolution for Linux Kernel Repair
  6. 2025Taming System Complexity: Demystifying Software Engineering Agents in Diagnosing Linux Kernel Faults
  7. 2026PrimSynth: An Agentic Approach to Discover, Validate, and Synthesize Exploit Primitives for Linux Kernel Vulnerabilities
  8. 2026Don't Regenerate, Debug: A Domain-Specific Agent for Repairing Near-Miss Hardware Operators