Skip to content
Book Open access

We Must Have Missed This Comment: Detecting and Repairing Stale Function References in Linux Kernel Comments

Aug 2026 · Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering · 0 citations · 47 references
Computer Science

TL;DR

ReCite, a three-stage approach to identify and repair stale references in code comments that appear to reference functions but for which no matching function can be found in the current codebase, and tracing the evolution history of each unresolved symbol through the Git history, is proposed.

Abstract

As the Linux kernel evolves, code comments may become outdated, as the functions they reference can be refactored or removed independently without corresponding updates to the comments. Such stale function references can mislead maintainers and thus hinder code comprehension. Prior work on detecting code-comment inconsistency mainly focused on addressing semantic misalignment between Javadoc comments and their directly annotated functions, making them inapplicable to this type of externally induced staleness in the Linux kernel. Therefore, we propose ReCite, a three-stage approach to identify and repair such stale references: (1) detecting unresolved function-form symbols—symbols in comments that appear to reference functions but for which no matching function can be found in the current codebase, (2) tracing the evolution history of each unresolved symbol through the Git history, and (3) generating LLM-based repair suggestions grounded in the evolution history and current code context. On Linux kernel v6.18-rc1, ReCite detects 869 stale references with generated repair suggestions. A manual evaluation on 200 sampled repairs shows that 178 (89.0%) provide useful repair guidance, with 85 (42.5%) directly applicable. Of our 75 submitted patches, 50 have been accepted. We also empirically study all unresolved function-form symbols.

Read PDF

Similar papers

Book Open access Oct 2026

After the Hitchhiker’s Guide: Toward Principled LLM Assistance for Static Analysis

Practical static analysis of large systems such as the Linux kernel often depends on information that is difficult to capture precisely and on identifying the parts of a large codebase where precise reasoning is needed. This dissertation studies how LLMs can complement static analysis through two roles: specification r...

Hao-Nan Li · 0 citations
#human-computer interacti... Book Open access Aug 2026

FlowCheck: Helping End-Users Specify and Verify Intent in Vibe-Coded Web Apps

FlowCheck, a constraint language to specify user-visible information flows directly through the application interface, where constraints can also be displayed and inspected without reading code, and are structured enough for reliable LLM generation.

Reya Vir, Lydia B. Chilton, Zhuo Zhang et al. · 2 citations
#artificial intelligence Preprint Sep 2026

The History Is the Detector: Executing CVE Patch History, End-to-End

BUGSTONE-E2E, a framework that transforms vulnerability history into executable detection rules and validates their findings, demonstrates that CVE history can be turned into an executable workflow, transforming past vulnerabilities into reproducible detection and repair.

Qiu-Shi Wu, Kevin Eykholt, Youngja Park et al. · 0 citations
Preprint Oct 2026

Who Broke Me? Execution-Guided Repair of Behavioral Dependency Breaks

Dependency upgrades can break downstream projects without changing the library interface. Such behavioral breaking changes are difficult for developers to fix, because the failing test does not always point to the root API, the upstream API that causes the break. Existing LLM-based repair methods obtain evidence for th...

Jun-Tao Chen, Ting-Ting Bi, Yan-Lin Wang et al. · 0 citations
Review Open access Sep 2026

CodeMergeR: A Shiny‐Based Application for Codelist Integration

ABSTRACT Objective To describe CodeMergeR, an open‐source R shiny application developed within the VAC4EU network for the standardization, cleaning, and integration of individual concept codelists into a master file for real‐world evidence (RWE) studies. Materials and Methods CodeMergeR was designed to process codelist...

V. Hoxhaj, J. Riera-Arnau, Sima Mohammadi et al. · 0 citations
Review Open access Sep 2026

Can LLMs Detect and Refactor Test Smells in Performance Tests?

Performance testing is essential to ensure that software meets its responsiveness and scalability requirements, and tools such as k6 are used to write performance test scripts that exercise these aspects in a structured and optimized way. Like any code, regardless of the programming language, k6 scripts are subject to...

Adelson Ornellas, Manoel Aranda, Márcio Ribeiro et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.