Fault Preservation and Repair in Linux Kernel C-to-Rust Translation
This preprint examines whether LLM-generated C-to-Rust translations preserve or repair seeded defects. We introduced one defect into each of five Linux v7.3 library files. For each file, two Opus 5.5 sessions received a fidelity prompt and one received a repair-permitted prompt. We compared each Rust submission with both the defect-seeded C supplied to the model and the original C. All ten fidelity submissions matched seeded C on the differential tests, and eight reports identified the seeded defect. Three of five repair-permitted submissions matched original C across the evaluatedchecks. The other two differed from original C on calls where both C references agreed. In a follow-up on Linux v7.4-rc2, three Rust translations of the ECDSA X9.62 signature-format adapter matched C on direct and independently authored held-out comparisons in ordinary and KASAN builds. Bothbuilds exercised the adapter directly. The standard kernel public-key caller was outside their configurations. The supplementary files give the comparison counts for both experiments. Claude agents generated the Stage 13 translations and ran those experiments. AI agents also generated the ECDSA translations. Codex assisted with manuscript preparation, figures, and cross-checking thearchived measurements.
Authors
- Elias Pukari (ORCID: https://orcid.org/0009-0005-4523-4147)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.5281/zenodo.24630378
- Primary Topic
- Software Engineering Research
- Type
- preprint