---
title: "Linus Torvalds Releases First AI-Generated Linux Kernel Patch: Synthetic Benchmark Shows 23x Speedup"
description: "Linus Torvalds has published the first AI-generated Linux kernel patch. The solution eliminates a long-standing cache contention problem and shows a 23x boost in a synthetic benchmark."
date: 2026-10-17T00:26:55.941Z
lang: en
url: https://xab.info/en/posts/linus-torvalds-releases-first-ai-linux-kernel-patch
tags: [linux-kernel, ai-development, linus-torvalds, open-source, performance, patch]
author: "Alexander Buran"
publisher: "XAB.info"
---

# Linus Torvalds Releases First AI-Generated Linux Kernel Patch: Synthetic Benchmark Shows 23x Speedup

![Penguin walking on snow in Antarctica surrounded by white winter landscapes](https://xab.info/media/2026/10/17/linus-torvalds-perviy-patch-linux-sozdannyi-s-pomoshhyu-ii/linus-torvalds-perviy-patch-linux-sozdannyi-s-pomoshhyu-ii-1.webp)

## Key Points

- Linus Torvalds has published the first Linux kernel patch created using a large language model
- The patch eliminates cache contention when multiple processes access a shared file simultaneously
- In a synthetic benchmark, the solution provides a 23x performance boost; real-world effects will be more modest
- Torvalds removed the requirement for developers to disclose AI usage when writing patches, equating AI to compilers and editors
- Around 2,000 CVE vulnerabilities are fixed in every Linux kernel release using AI tools

Linux project founder Linus Torvalds has published the first kernel development patch created with the assistance of a large language model. The solution aims to address a long-standing issue of excessive cache contention that occurs when multiple processes access the same file simultaneously. According to Torvalds himself, in a synthetic benchmark, the proposed solution delivers a 23-fold performance increase, although in real-world conditions the effect will be significantly more modest. Nevertheless, as the developer clarified, at the scale of server systems where such load scenarios constantly occur, the difference promises to be tangible.

### A Problem That Could Not Be Solved for Years

Cache contention during simultaneous access by multiple processes to a shared file is one of those issues that periodically resurfaces in Linux kernel discussions. The scenario is typical when working with shared libraries, databases, or web servers: dozens and hundreds of processes try to read the same memory pages, and the system wastes resources resolving conflicts. According to the source, attempts to solve the problem were made repeatedly, but none of the proposed options became universal or was accepted into the main tree. Torvalds, by his own admission, prepared his own version back in 2024 and has been using it on his personal laptop since then, but it never made it to public release. The turning point was the decision to "try to tackle this task properly with the help of AI."

### A Shift in Position: From Skepticism to a Tool

Torvalds' attitude toward AI-written code has not been static: over the past few months, he has repeatedly changed the focus of his statements. In May 2026, he sharply criticized neural network-generated bug reports, which he said clogged the incoming message stream and hindered normal work on the kernel. However, by July, his stance had shifted: Torvalds announced his intention to strictly suppress attacks by AI opponents within the community, emphasizing that new development tools often handle tasks better than humans and help identify elementary errors. A key step was lifting the obligation for patch authors to report whether they used AI when writing code: such tools are now equated with standard development tools, such as compilers and text editors.

### The Scale of AI's Impact on the Linux Kernel

Statistics cited in the context of the patch publication demonstrate how deeply AI has already penetrated the kernel development process. In the Linux kernel alone, about 2,000 vulnerabilities (CVEs) are eliminated with each release, and a significant portion of this work is done using automated tools. In parallel, developers have begun phasing out support for legacy hardware drivers, as it is in these that a disproportionately high number of vulnerabilities are discovered. Under these conditions, a patch created using a language model and having passed the community's rigorous review procedure looks less like an experiment and more like a logical stage in the evolution of the development process.

### What This Means for the Community

The publication of the first "AI patch" in the main Linux kernel tree is a symbolic event. The Linux kernel is traditionally considered one of the most conservative projects in the open-source world: every byte of code goes through multi-stage reviews, and Torvalds himself is known for his intolerance of substandard solutions. The fact that a patch created with the participation of a neural network passed this filter and was accepted means that for the community, AI has ceased to be an "alien" tool. At the same time, Torvalds maintains his characteristic caution: he himself stipulates the 23-fold increase in the synthetic benchmark as an upper bound that does not reflect real-world operation. But for server infrastructures where cache contention is a daily norm, even a modest percentage performance increase translates into measurable resource savings and reduced latency.

## Fact-Check & Sources

- [Линус Торвальдс выпустил первый патч для Linux, написанный с ИИ — синтетический тест показал ускорение в 23 раза window-new](https://3dnews.ru/1150054/linus-torvalds-vipustil-perviy-patch-dlya-linux-napisanniy-s-ii-sinteticheskiy-test-pokazal-uskorenie-v-23-raza) - Primary source. All key facts: 23x boost, cache contention problem, Torvalds' stance, 2,000 CVEs per release, lifting the AI disclosure requirement.
- [Производительность в 23 раза выше: Линус Торвальдс выпустил первый патч, созданный с помощью ИИ](https://itc.ua/news/proyzvodytelnost-v-23-raza-vyshe-lynus-torvalds-vypustyl-pervyj-patch-sozdannyj-s-pomoshhyu-yy/) - Confirms the 23x boost and the essence of the patch (cache contention when accessing a single file).
- [Линус Торвальдс выпустил Linux 7.2-rc3 с патчами для Dreamcast и RISC-V](https://overclockers.ru/blog/matvey_id442851/show/259665/Linus-Torval-ds-vypustil-Linux-7-2-rc3-s-patchami-dlya-Dreamcast-i-RISC-V) - Подтверждено по источнику overclockers.ru
- [«Отец» Linux возненавидел нейросети. Они спамят кривыми отчетами и не дают разрабатывать ядро](https://www.cnews.ru/news/top/2026-05-18_otets_linux_voznenavidel_nejroseti) - Confirms Torvalds' early (May 2026) critical stance on AI reports, which aligns with the narrative of a changing position.

## FAQ

### What exactly does Torvalds' new patch do?

The patch eliminates the problem of excessive cache contention that occurs when multiple processes access the same file simultaneously. This is a typical situation when working with shared libraries, databases, or web servers.

### How realistic is the 23-fold performance boost?

Torvalds himself clarifies that the 23x boost is the result of a synthetic benchmark. In real-world conditions, the effect will be significantly more modest, though at the scale of server systems the difference promises to be noticeable.

### Are Linux kernel developers required to disclose if they used AI?

No. According to Torvalds, patch authors are no longer required to report the use of AI when writing code. Such tools are now equated with standard development tools like compilers and text editors.

### When did Torvalds first prepare this patch?

Torvalds prepared his own version of the solution back in 2024 and used it on his own laptop. He decided to publish it publicly in the development tree recently, after deciding to "try to tackle the task properly with the help of AI."