2026-11-26 15:48 UTC

Torvalds says LLM-assisted refactoring and tests exposed three long-standing kernel bugs

state: significantheat: lowuncertainty: mediumrelevance: highlinux-kernel-ai-adoption ai-assisted-systems-programming kernel-maintenance-workflowsLinus TorvaldsNils Ollrogge

What is this?

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.

Why it matters

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.

Current assessment

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.

Measured heat

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

How the heat travelled

10-10 13:00⭐ origin echo-reconstructedAnnotated, PGP-signed git tag "assoc-array-fixes" (tagger Linus Torvalds <[email protected]>, 2026-10-11 19:54:56 UTC / 12:54 PD
Linus Torvalds on other (echo) · attributed from reddit.post.1x3yeti
—
10-12 10:34first on r/singularity · published · +45.6hLinus Torvalds Used AI To Make Code Decipherable & Uncovered More Bugs
PointmanW
—
10-12 11:42first on hacker news · published · +46.7h(Linus Torvalds) I did what I preach: use LLMs to help make sense of the code
theanonymousone
—
10-12 22:07first on r/artificial · published · +57.1hLinux founder Linus Torvalds says AI is a “gateway drug” into programming — but cautions about using AI for “serious” work
masiroo
—
10-12 23:37first on r/ClaudeAI · published · +58.6hClaude news roundup (Oct 13): Torvalds drafts a kernel patch with Claude Code, Epic tells devs "no more hand-written code"
reactornewbie
—
10-12 10:34amplified on r/singularity 👑reddit.post.1x3yeti
PointmanW
peak 1157 · 213 comments · 46% of case engagement
10-12 11:42amplified on hacker newshn.story.50054932
theanonymousone
peak 4 · 1 comments · 0% of case engagement
10-12 20:06amplified on hacker newshn.story.50062224
bookofjoe
peak 17 · 12 comments · 2% of case engagement
10-12 22:07amplified on r/artificialreddit.post.1x4fgi1
masiroo
peak 88 · 32 comments · 4% of case engagement
10-12 23:37amplified on r/ClaudeAIreddit.post.1x4hfmg
reactornewbie
peak 39 · 1 comments · 1% of case engagement
10-13 07:55amplified on hacker newshn.story.50068210
raybb
peak 10 · 0 comments · 1% of case engagement
12 more amplifiers in ainews.case_chain
10-12 11:20our radar first saw it · +46.3hdiscovery anchor: reddit.post.1x3yeti—
10-12 20:39reached heat=high · +55.6h · via ledger——

Evidence (19) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 redditLinus Torvalds Used AI To Make Code Decipherable & Uncovered More Bugs
singularity
Retrieved article excerpt

Open 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)
PointmanW1155211
🟧 echo.other ⭐Annotated, PGP-signed git tag "assoc-array-fixes" (tagger Linus Torvalds <[email protected]>, 2026-10-11 19:54:56 UTC / 12:54 PDLinus Torvalds——
🟧 hn(Linus Torvalds) I did what I preach: use LLMs to help make sense of the codetheanonymousone41
🟧 hnLinus Torvalds used Claude Code to rewrite how Linux reads cached filesbookofjoe1712
🟠 redditLinux founder Linus Torvalds says AI is a “gateway drug” into programming — but cautions about using AI for “serious” work
artificial
masiroo8532
🟠 redditClaude news roundup (Oct 13): Torvalds drafts a kernel patch with Claude Code, Epic tells devs "no more hand-written code"
ClaudeAI
reactornewbie371
🟧 hnLinus Torvalds "Did What I Preach" Used AI to Make Code Decipherabl, Find Bugsraybb100
🟧 hnTorvalds "unwilling to work without an LLM" at Kernel Maintainers Summitzzzeek52
🟧 hnLinus Torvalds's first LLM-assisted patch seriesjanvdberg124110
🟧 hnLinus Torvalds let Claude Code fix the Linux page cache. reviewers found a raceshinjitsu30
🟧 hnLinus Torvalds on AI contribution rulesWingy70
🟧 hnLinus Torvalds: "banning AI is stupid and so are you"majorchord1220
🟧 hnLinus Torvalds on "don't use AI for X"thatslast155
🟧 hnRe: [PATCH] docs: remove Assisted-by references – Linus Torvaldslladnar30
🟠 redditLinux creator, Linus Torvalds, says anti-AI rules are "idiotic." (Absolute god-tier take.)
singularity
Anen-o-me34045
🟧 hnTorvalds use Claude for bottleneck fix, but race discoveredPaulDavisThe1st171
🟠 redditLinus 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
theimposingshadow35134
🟧 hnLinus Torvalds posts his first AI-assisted patch to the Linux kernelCharlesW31
🟧 hnLinus Torvalds let Claude Code fix the Linux page cache. Reviewers found a raceGloVin63

Interpretation history

Decision trace