Metraipolis › archive › dc_cbd52349e6e6

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

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.03734
License (as archived)
CC0-1.0
Archived
2026-10-31T12:43:29.870Z
SHA-256 of the archived text
bb037a5093f318dc780930e66af3d2a8f79bc5d7769e871a8933c0ec77151de9
Stable URL of this page
https://metraipolis.com/documento/dc_cbd52349e6e6

How to cite

We Must Have Missed This Comment: Detecting and Repairing Stale Function References in Linux Kernel Comments — arXiv:2608.03734 — arXiv (en), https://arxiv.org/abs/2608.03734 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_cbd52349e6e6 (Metraipolis archive dc_cbd52349e6e6, sha256 bb037a5093f318dc780930e66af3d2a8f79bc5d7769e871a8933c0ec77151de9)
BibTeX
@misc{dccbd52349e6e6,
  title = {We Must Have Missed This Comment: Detecting and Repairing Stale Function References in Linux Kernel Comments — arXiv:2608.03734},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.03734},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_cbd52349e6e6; sha256 bb037a5093f318dc780930e66af3d2a8f79bc5d7769e871a8933c0ec77151de9},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.03734. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-05 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.03734 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-31T12:33:04.224Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-05?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).