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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Fault Preservation and Repair in Linux Kernel C-to-Rust Translation

Elias Pukari
Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
preprint

Fault Preservation and Repair in Linux Kernel C-to-Rust Translation

Elias Pukari
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon