Google unveils Sashiko AI review tool for Linux kernel
Mon, 23rd Nov 2026 (Yesterday)
Google has outlined how Sashiko, an open-source code review system for the Linux kernel, works. The tool has been donated to the Linux Foundation.
Built by Google AI & Infrastructure, Sashiko reviews patches sent to public Linux kernel mailing lists, where maintainers manually handle large volumes of proposed changes. Linux spans more than 35 million lines of code, and more than 85,000 changes are accepted each year, according to Google.
Sashiko uses Gemini models to examine patches, search surrounding code and test whether suspected bugs are supported by evidence in the code base. The software separates finding possible defects from verifying them, with specialist review passes focused on areas including control flow, resource lifetimes, locking and security.
The approach is intended to address a problem that has become more visible as developers use AI tools to generate more code. Maintainers face a growing number of plausible but flawed submissions, as well as AI-generated security reports that are inaccurate or duplicate earlier findings, Google said.
Review burden
Kernel maintainers still rely heavily on manual inspection to spot memory leaks, deadlocks, race conditions and security bugs before changes are merged. Automated build tools and fuzzers can catch crashes and build errors, but they do not replace human review.
Sashiko now completes about 1,200 reviews a day across more than 100 kernel mailing lists, according to Google. It sends review emails only to mailing lists whose maintainers have opted in, and more than 70 lists have done so.
Developers have also engaged directly with the reports. More than 1,500 kernel developers have replied on public mailing lists, Google said, and that feedback has been used to refine prompts and the system's verification process.
Impact claims
Google linked Sashiko to more than 2,000 mainline Linux kernel commits and more than 500 official Linux kernel CVEs this year. Those references span drivers, networking, graphics processing units, memory management, virtualisation and core kernel code.
The company also pointed to release data suggesting fewer bugs are reaching mainline releases. Across the 18 kernel releases before Sashiko, an average of 3.4% of merged commits needed a follow-up fix within 60 days, according to Google. Since the tool's rollout, that figure has fallen to 2.8% in Linux 7.1 and 2.2% in Linux 7.2.
Google cautioned that several factors can affect release-to-release trends and said it could not attribute the full decline to Sashiko alone. Even so, it said the pattern was encouraging.
A clean Sashiko review also appears to correlate with lower risk, Google said. Across 21,500 tracked mainline commits, patches that received a clean review needed a follow-up fix within 60 days only 0.9% of the time. For patches merged despite a critical warning, the figure was 7.6%.
How it works
The review process starts by gathering code around a proposed change, including modified functions, structure definitions and direct callers. A planning stage then decides which specialist checks are needed and how much reasoning budget to assign to each.
Up to seven specialist sessions run in parallel, each looking at a single class of issue. Each session produces a list of concerns and a list of candidate concerns that were investigated and ruled out.
A lead verifier then audits both lists. Clear bugs that can be shown directly in the code move forward, while uncertain cases are passed to separate verification agents for individual examination across call sites.
Google said the final report is written in the style of a human maintainer raising questions on a Linux mailing list. The service is run publicly by Google for patches sent to public kernel mailing lists, with prompts, tool calls, reasoning steps and ruled-out bugs visible in the open.
Open development
More than 100 contributors, including kernel maintainers and engineers, have helped improve Sashiko and its prompts, Google said. Some engineers also run local or private versions so patches can be checked before they are sent to maintainers.
Google tested the system against a benchmark of nearly 1,000 historical Linux kernel bugs that had passed expert human review before later being fixed. On that benchmark, Sashiko using Gemini 4 Carbon detected 75.8% of the bugs that human reviewers had missed, the company said.
Linus Torvalds has commented publicly on the system's usefulness in kernel development. “As you say, Sashiko tends to be quite good. Even when it flags something unnecessarily and there's no actual problem, there's likely to be a reason for the question. And we've seen some truly stellar reports too. Things that are deep and subtle, and the AI is 100% correct. So anybody who thinks that all AI is slop is in denial about the current state,” Torvalds said.
In a separate comment on trust and AI-generated patches, Torvalds said: “Now, I think the other side of AI - and this is where Sashiko comes in - is that it basically does end up being a tool that can then increase the trust in the patch. So AI giveth, and AI taketh away. But the basic issue shouldn't be AI per se, it should be that notion of 'trust'.”