Linus Torvalds’s signed Linux kernel tag says he used modern LLM tools to understand and refactor hard-to-follow assoc_array code after Nils Ollrogge reported a bug. Torvalds says a user-space test harness confirmed that bug and found three more, all dating to the library’s 2013 introduction. Phoronix reports the fixes were not yet merged at the time of its article.
A notable real-world example of an LLM supporting expert maintenance work: Torvalds says it helped him make obscure kernel code easier to understand, while a user-space test harness confirmed a reported bug and surfaced three more. The useful takeaway is a workflow—use the model to aid comprehension and refactoring, then test and review—rather than evidence that AI-generated kernel code is reliable on its own. The fixes were reported as not yet merged, and the supplied evidence does not independently establish how the bugs were found or whether all fixes are correct.
In a signed Linux kernel tag, Linus Torvalds said he used modern LLM tools to make hard-to-follow assoc_array code easier to understand after Nils Ollrogge reported a bug. Torvalds said a user-space test harness confirmed that bug and found three more, dating to the library’s 2013 introduction; Phoronix reported the changes had not yet been merged when it covered the tag. This is a concrete example of LLM assistance with expert code comprehension and maintenance, not proof that AI-generated kernel code is reliable on its own. The reported findings and fixes have not been independently verified in the supplied evidence, and their later review and merge status remain unresolved. The newly observed report about a race in a separate page-cache patch does not resolve those questions.
now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 1130h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
| source | object | author | score | comments |
| 🟠 reddit | Linus Torvalds Used AI To Make Code Decipherable & Uncovered More Bugs singularity Retrieved article excerptOpen article · Retrieved 2026-10-12T11:24:09.725569+00:00 # Linus Torvalds "Did What I Preach", Used AI To Make Code Decipherable & Uncovered More Bugs
Written by [Michael Larabel](https://www.michaellarabel.com/) in [Linux Kernel](https://www.phoronix.com/linux/Linux+Kernel) on 12 October 2026 at 06:03 AM EDT. [3 Comments](https://www.phoronix.com/forums/node/1663145)
LINUX KERNEL
After using [Claude Code to draft code to help make a fundamental improvement to the Linux kernel](https://www.phoronix.com/news/Linus-Torvalds-Claude-Code), Linux creator Linus Torvalds continued using AI this weekend and talking up its benefits. Beyond generating initial patches and a test program for that noted I/O enhancement, he separately talked up using AI/LLMs for making patches more decipherable to understand in the process the AI noted more long-standing bugs within the Linux kernel.
With the [delayed Linux 7.3-rc7 release](https://www.phoronix.com/news/Linux-7.3-rc7-Released), in addition to that "noref-filemap-read-with-llm" Git branch that appeared within Linus Torvalds' source tree, an "assoc-array-fixes" Git tag also appeared there on Sunday. Linus explained in that Git tag message that he "did what I preach" and used modern LLM tools to make sense of patches that were hard for him to follow. LLMs were used to confirm the original bug in question as well as having found three other bugs that existed in the code for more than the past decade.
Linus Torvalds wrote in the [assoc-array-fixes Git tag](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tag/?h=assoc-array-fixes):
> "Nils Ollrogge reported a bug in the assoc\_array library and had a patch to fix it too, but that code was too obscure for me to follow, so I did what I preach: use modern LLM tools to help make sense of it all.
>
>
> So this is an LLM-assisted branch which makes the code more readable by splitting up some of the larger and hard-to-read functions. The code was then run through a test harness in user space, which not only confirmed the bug Nils reported, but found three other bugs too - all going back to the very first commit adding this library back in 2013."
The Linux assoc\_array code is used for the kernel's associative array implementation.
Linus Torvalds Git message
The patches haven't yet been merged to the master branch but presumably will be punted off for the upcoming Linux 7.4 merge window.
Linus Torvalds is continuing to be more vocal about his AI/LLM usage and promoting its benefits as a tool for Linux kernel development.
[3 Comments](https://www.phoronix.com/forums/node/1663145) | PointmanW | 1155 | 211 |
| 🟧 echo.other ⭐ | Annotated, PGP-signed git tag "assoc-array-fixes" (tagger Linus Torvalds <[email protected]>, 2026-10-11 19:54:56 UTC / 12:54 PD | Linus Torvalds | — | — |
| 🟧 hn | (Linus Torvalds) I did what I preach: use LLMs to help make sense of the code | theanonymousone | 4 | 1 |
| 🟧 hn | Linus Torvalds used Claude Code to rewrite how Linux reads cached files | bookofjoe | 17 | 12 |
| 🟠 reddit | Linux founder Linus Torvalds says AI is a “gateway drug” into programming — but cautions about using AI for “serious” work artificial | masiroo | 85 | 32 |
| 🟠 reddit | Claude news roundup (Oct 13): Torvalds drafts a kernel patch with Claude Code, Epic tells devs "no more hand-written code" ClaudeAI | reactornewbie | 37 | 1 |
| 🟧 hn | Linus Torvalds "Did What I Preach" Used AI to Make Code Decipherabl, Find Bugs | raybb | 10 | 0 |
| 🟧 hn | Torvalds "unwilling to work without an LLM" at Kernel Maintainers Summit | zzzeek | 5 | 2 |
| 🟧 hn | Linus Torvalds's first LLM-assisted patch series | janvdberg | 124 | 110 |
| 🟧 hn | Linus Torvalds let Claude Code fix the Linux page cache. reviewers found a race | shinjitsu | 3 | 0 |
| 🟧 hn | Linus Torvalds on AI contribution rules | Wingy | 7 | 0 |
| 🟧 hn | Linus Torvalds: "banning AI is stupid and so are you" | majorchord | 12 | 20 |
| 🟧 hn | Linus Torvalds on "don't use AI for X" | thatslast | 15 | 5 |
| 🟧 hn | Re: [PATCH] docs: remove Assisted-by references – Linus Torvalds | lladnar | 3 | 0 |
| 🟠 reddit | Linux creator, Linus Torvalds, says anti-AI rules are "idiotic." (Absolute god-tier take.) singularity | Anen-o-me | 340 | 45 |
| 🟧 hn | Torvalds use Claude for bottleneck fix, but race discovered | PaulDavisThe1st | 17 | 1 |
| 🟠 reddit | Linus Torvalds posts his first AI-assisted patch to the Linux kernel, synthetic test clocks 23x performance leap — the bossman makes use of AI tooling himself after issuing clear pro-AI directives singularity | theimposingshadow | 351 | 34 |
| 🟧 hn | Linus Torvalds posts his first AI-assisted patch to the Linux kernel | CharlesW | 3 | 1 |
| 🟧 hn | Linus Torvalds let Claude Code fix the Linux page cache. Reviewers found a race | GloVin | 6 | 3 |