Torvalds posts first AI-assisted Linux patch
2026-10-16 · Tom's Hardware
Linux creator Linus Torvalds has posted his first LLM-assisted kernel patch in a development branch. It addresses an old problem: heavy cache contention when many CPUs read the same file, a pattern seen with shared libraries, databases and web servers. Several developers have tried to fix it over the years with mixed results.
Torvalds posted his own draft in early 2024 and has run it on his laptop since. He recently decided to "try to actually solve this thing using an LLM." He reports a 23x improvement in a dedicated synthetic benchmark but stresses that no real load will see those figures; server workloads would likely benefit more than desktops.
The move fits his increasingly pro-tooling stance within the kernel's review-heavy process. Last July he said an automated code-review tool the team uses outperforms humans and catches basic mistakes. The team is also changing policy so patch authors no longer need to disclose AI tool use; Torvalds likens LLMs to compilers or editors and expects people to understand what they submit.
There is a downside: AI agents are good at spotting common vulnerability patterns, which made the Linux security mailing list "unmanageable" earlier this year. The kernel fixes around 2,000 CVEs per release and is being pushed to drop old hardware drivers that attract many reports despite tiny install bases.