KGym: A Platform and Dataset to Benchmark Large Language Models on Linux Kernel Crash Resolution
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are consistently improving at increasingly realistic software engineering (SE) tasks. In real-world software stacks, significant SE effort is spent developing foundational system software like the Linux kernel. Unlike application-level software, a systems codebase like Linux is multilingual (low-level C/Assembly/Bash/Rust); gigantic (>20 million lines); critical (impacting billions of devices worldwide), and highly concurrent (involving complex multi-threading). To evaluate if ML models are useful while developing such large-scale systems-level software, we introduce kGym (a platform) and kBench (a dataset). The kGym platform provides a SE environment for large-scale experiments on the Linux kernel, including compiling and running kernels in parallel across several virtual machines, detecting operations and crashes, inspecting logs, and querying and patching the code base. We use kGym to facilitate evaluation on kBench, a crash resolution benchmark drawn from real-world Linux kernel bugs. An example bug in kBench contains crashing stack traces, a bug-reproducer file, a developer-written fix, and other associated data. To understand current performance, we conduct baseline experiments by prompting LLMs to resolve Linux kernel crashes. Our initial evaluations reveal that the best performing LLM achieves 0.72% and 5.38% in the unassisted and assisted (i.e., buggy files disclosed to the model) settings, respectively. These results highlight the need for further research to enhance model performance in SE tasks. Improving performance on kBench requires models to master new learning skills, including understanding the cause of crashes and repairing faults, writing memory-safe and hardware-aware code, and understanding concurrency. As a result, this work opens up multiple avenues of research at the intersection of machine learning and systems software.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). First posted on arXiv 2 Jul 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 8; 2026: 4.
12 papers.
- 2025KNighter: Transforming Static Analysis with LLM-Synthesized Checkerscited by 22
- 2025Code Researcher: Deep Research Agent for Large Systems Code and Commit Historycited by 19
- 2025REFINE: Enhancing Program Repair Agents through Context-Aware Patch Refinementcited by 6
- 2025kAgent: An execution-guided crash resolution agent for the Linux kernelcited by 4
- 2025Stabilizing Long-term Multi-turn Reinforcement Learning with Gated Rewardscited by 4
- 2025AppForge: From Assistant to Independent Developer -- Are GPTs Ready for Software Development?cited by 4
- 2026Agentic Harness for Real-World Compilerscited by 3
- 2025Taming System Complexity: Demystifying Software Engineering Agents in Diagnosing Linux Kernel Faultscited by 2
- 2025LLM-Driven Kernel Evolution: Automating Driver Updates in Linuxcited by 1
- 2026Learning From Developers: Towards Reliable Patch Validation at Scale for Linuxcited by 0
- 2026LLVM-Bench: Benchmarking and Advancing Large Language Models for LLVM Compiler Issue Resolutioncited by 0
- 2026TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Minimizationcited by 0
- 2026TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Minimization20 Jul 2026
- 2026LLVM-Bench: Benchmarking and Advancing Large Language Models for LLVM Compiler Issue Resolution1 Jul 2026
- 2026Learning From Developers: Towards Reliable Patch Validation at Scale for Linux25 Mar 2026
- 2026Agentic Harness for Real-World Compilers20 Mar 2026
- 2025LLM-Driven Kernel Evolution: Automating Driver Updates in Linux24 Nov 2025
- 2025AppForge: From Assistant to Independent Developer -- Are GPTs Ready for Software Development?9 Oct 2025
- 2025REFINE: Enhancing Program Repair Agents through Context-Aware Patch Refinement4 Oct 2025
- 2025Stabilizing Long-term Multi-turn Reinforcement Learning with Gated Rewards14 Aug 2025
- 2025Code Researcher: Deep Research Agent for Large Systems Code and Commit History27 May 2025
- 2025Taming System Complexity: Demystifying Software Engineering Agents in Diagnosing Linux Kernel Faults26 May 2025
- 2025kAgent: An execution-guided crash resolution agent for the Linux kernel29 Apr 2025
- 2025KNighter: Transforming Static Analysis with LLM-Synthesized Checkers12 Mar 2025