VOOZH about

URL: https://thenewstack.io/how-ai-helps-maintain-the-linux-kernel/

⇱ Linux Kernel Maintainers Get Some Help from AI - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-07-04 07:00:06
Linux Kernel Maintainers Get Some Help from AI
AI / Linux / Security

Linux Kernel Maintainers Get Some Help from AI

Like any other novice engineer intern, LLMs have been put to work in the Linux kernel core development community doing the drudgery no one else has time to do.
Jul 4th, 2025 7:00am by Joab Jackson
👁 Featued image for: Linux Kernel Maintainers Get Some Help from AI
Sasha Levin, Open Source Summit 2025.

Meet AUTOSEL, a Linux maintainer that helps keep the kernel stable.

AUTOSEL is a script, one that uses a Large Language Model (LLM) to complete its task.

It does a thankless job, one loathed by all kernel maintainers, that of backporting patches.

Backporting patches is a “very tedious and frustrating process” that “doesn’t scale,” said NVIDIA Distinguished Software Engineer Sasha Levin, in a talk at the Open Source Summit. The presentation focused on how AI is starting to be used in the Linux kernel community to help keep up with the Herculean tasks of maintaining the Linux kernel.

It may not be writing exciting new features for the open source operating system kernel yet, but AI has excelled in tasks that are mind-numbingly repetitive yet still necessary. In other words, AI is already making the lives of Linux kernel developers easier, said Levin, who helps maintain the Linux Kernel Stable and LTS trees.

Patch Inspection

As the world’s single largest open source project, the Linux kernel gets updated and upgraded … a lot.

The pace has remained constant: As many as 10,000 new patches have landed in the mainline kernel over a 10-week period.

Stable and Long-Term Support (LTS) kernel maintainers usually review around 100 patches per day, every day, including weekends and holidays.

Only a few, about 5-10, turn out to be suitable for backporting.

Levin’s AUTOSEL, written in Rust, takes a first pass at incoming commits, looking for similarities across submitted commits and past backporting decisions, and suggesting only those to human committers to seem to be worthy of closer review.

AUTOSEL is built from multiple LLMs, with each LLM used for a particular strength, as well as for cross-validation to reduce errors and hallucinations.

For each commit, the tool creates mathematical representations (or “embeddings”) of the text that preserve semantic meaning for every commit in the kernel’s history, making them easily comparable.

For human maintainers, the tools cuts down the number of commits that humans have to review. It even explains its reasoning in an email.

Know Your Tools

Like any other tool, the value of an LLM corresponds to how well it is understood by it user.

You can think of Large Language Models as the next generation of compilers, providing developers with a jump in productivity, Levin said. They act like “massive state machines,” though what is unusual about them is that they perform state transitions in a probabilistic, rather than deterministic, manner.

They are good at matching patterns given a huge number of parameters and an input provided by a user. A “temperature” parameter controls how probabilistic the LLM is, or how liberally it interprets its material.

Other Uses

And like any other technology, LLMs are first being tested in minor tasks.

LLMs excel at “small, well-defined tasks.” Levin said.

One such use is code generation and refactoring. Tightly-defined bug fixes, or converting code to other forms, such as standard APIs, are good tasks.

For the 6.15 kernel release, Levin had an LLM write a patch to convert the open-coded hash table implementation to a standard API.

Linux kernel 6.16 included git-resolve. This tool resolves incomplete or incorrect commit IDs, a nagging issue for core developers, though not one that occurs often enough to spend a lot of time manually writing a tool to figure out which commit an incomplete SHA-1 is actually connected to.

It took Levin all of 20 minutes to work with the LLM to create the tool.

It would take an engineer about half a day to create such a tool, making it not worth the effort given the relative rarity of the issue it addressed. Plus the LLM did a lot of extra credit: It created a set of self-tests and even documentation, which a human engineer would have done begrudgingly if at all.

There’s no end of clean-up tasks that could be done with the kernel, Levin said. An LLM could help non-native English speakers write descriptive commit messages.

CVE Classification

Another tedious chore is classifying security vulnerabilities (CVEs), a task that the Linux kernel community took on in 2024.

The work involves inspecting commits to see if they address security issues.

Originally, a set of “hacky Bash scripts” was written to help.

LLMs were used to replace the scripts with a set of far more refined tools written in Rust, which included a full set of testing tools and documentation.

Using AUTOSEL as a launching point, a CVE classifier uses LLMs to identify commits that address security issues, and then goes on to check the vulnerability hasn’t already addressed in a previous patch. This is an overwhelming task for humans, given the 40 million lines of code that make up the Linux kernel.

LLMs can understand the semantic meaning of the commits, which provides for a far more comprehensive matching capability. A Retrieval Augmented Generation (RAG) cycle pulls in the kernel’s development history and documentation (e.g., Git repositories) to minimize hallucinations.

The LLMs effectively act as AI agents, Levin noted. They can run git commands, such as git blame, directly against the code repository to learn from the history of the kernel development itself.

In summary, AI has thus far helped Linux scale its maintenance efforts, while enhancing consistency and reducing manual labor for tedious tasks.

TRENDING STORIES
Joab Jackson is a senior editor for The New Stack, covering cloud native computing and system operations. He has reported on IT infrastructure and development for over 30 years, including stints at IDG and Government Computer News. Before that, he...
Read more from Joab Jackson
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.