Metraipolis › archive › dc_776e6ef4190a

TyPatch: Transforming Patches into Typestate Rules for Kernel Bug Detection — arXiv:2609.13728

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.13728
License (as archived)
CC0-1.0
Archived
2026-10-15T22:50:41.012Z
SHA-256 of the archived text
f4db51f3763059b5be53460c9a736905ce2db3f7d4896456ecf22d60e06e44c6
Stable URL of this page
https://metraipolis.com/documento/dc_776e6ef4190a

How to cite

TyPatch: Transforming Patches into Typestate Rules for Kernel Bug Detection — arXiv:2609.13728 — arXiv (en), https://arxiv.org/abs/2609.13728 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_776e6ef4190a (Metraipolis archive dc_776e6ef4190a, sha256 f4db51f3763059b5be53460c9a736905ce2db3f7d4896456ecf22d60e06e44c6)
BibTeX
@misc{dc776e6ef4190a,
  title = {TyPatch: Transforming Patches into Typestate Rules for Kernel Bug Detection — arXiv:2609.13728},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.13728},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_776e6ef4190a; sha256 f4db51f3763059b5be53460c9a736905ce2db3f7d4896456ecf22d60e06e44c6},
  year = {2026}
}

Archived text

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

Historical Linux kernel patches capture defect knowledge that applies beyond their original repair sites. Recent work has shown that large language models (LLMs) can generate static-analysis checkers from historical patches and use them to uncover new kernel bugs. However, complete-checker generation requires the model both to recover the defect semantics expressed by a patch and to implement sophisticated program-analysis machinery, including object tracking, alias analysis, path-state maintenance, and interprocedural propagation. Coupling these responsibilities in a single end-to-end code-generation task can turn a simple defect rule into an unstable and expensive analyzer-implementation problem. To address this problem, we present TyPatch, which decouples patch-specific defect semantics from analyzer implementation. An LLM translates each patch into a typestate rule specifying its tracked object, actions, guards, transitions, and violations. A shared backend then executes these rules, binding their actions to program events, tracking object identity across aliases, propagating typestate along program paths, and producing reports for all rules. On Linux v6.16, TyPatch finds 559 distinct bugs, 121 of which have been confirmed by kernel developers. In a matched 38-patch comparison with the state-of-the-art complete-checker construction workflow, TyPatch uses 88.3-90.1% fewer generation tokens, while its initial report pools achieve 3.42-14.95$\times$ the precision of those produced by that workflow.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-15 in cs.AI).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI); Cryptography and Security (cs.CR); Operating Systems (cs.OS).
Pagina del lavoro: https://arxiv.org/abs/2609.13728 — 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-15T22:29:03.546Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-15?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).