Linking Patchwork with Sashiko?
Subsystems (3)
Quoted 16 lines · Steven Rostedt
Quoted 14 lines · On Tue, 21 Jul 2026 21:25:09 +0300 Laurent Pinchart wrote:
We've long known that we can't win if we treat security as a game of whack-a-mole. Kees Cook and others have for years spent large mounts of time and energy into securing the kernel by closing classes of vulnerabilities. We've accepted a second programming language for kernel development that should make memory-related bugs impossible in the first place. In a less disruptive way, switching from C89 to C11 has enabled features likes
__free()that help make the code base safer.Do we need to act on security issues reported by LLMs ? For the time being, surely. Is that enough ? No way. It's even more important today than it used to be to make whole classes of bugs impossible in the first place. The good news for people interested in that development is there's lots of work to be done all across the kernel :-)
Quoted 7 lines
Quoted 4 lines
Touting AI reviews as the solution to the security problem LLMs generated in the first place without massively investing in kernel hardening is in my opinion the real "putting our heads in the sand" here.
Who said the two are mutually exclusive? I believe there is still a large effort in hardening the kernel.
I certainly hope so :-)
Quoted 11 lines
AI reviews is totally agnostic to that
effort. Roman said at LSF/MM/BPF that he's the only one working on Sashikio at Google. Yes, Google is investing billions (if not trillions) of dollars into AI, but that has nothing to do with the Linux kernel. Roman has simply tapped into that effort to allow the Linux kernel to take advantage of that investment.It really sounds like you want companies to move effort from AI into the Linux kernel hardening. If Google did that, all it would do is move Roman from working on Sashiko to working on hardening the kernel. I think Roman is doing a hell of a lot more for the Linux kernel by staying with Sashiko!
As you said, it's not mutually exclusive. I'm sure Google has other kernel developers than Roman.
Signature · 3 lines
Regards, Laurent Pinchart
Steven Rostedt
maintainerQuoted 2 lines · On Wed, 22 Jul 2026 01:46:42 +0300 Laurent Pinchart…
As you said, it's not mutually exclusive. I'm sure Google has other kernel developers than Roman.
Yes, but they are focused on everything AI and not the Linux kernel. It's the main reason I left Google.
-- Steve
Quoted 7 lines · Laurent Pinchart
Quoted 4 lines
It really sounds like you want companies to move effort from AI into the Linux kernel hardening. If Google did that, all it would do is move Roman from working on Sashiko to working on hardening the kernel. I think Roman is doing a hell of a lot more for the Linux kernel by staying with Sashiko!
As you said, it's not mutually exclusive. I'm sure Google has other kernel developers than Roman.
Google has contributed to various kernel hardening efforts; consider the work of Kees Cook and Jann Horn. And while I have my differences with syzbot and oss-fuzz team, those are also security-related projects that have helped improve the open source ecosystem.
And earlier this year, the number of companies including Anthropic, Amazon Web Services (AWS), GitHub, Google, Google DeepMind, Microsoft, and OpenAI contributed a total of $12.5 million dollars to the Open Source Security Foundation[1].
Could all of these companies contributed more? Perhaps, especially given how much the entire Tech Industry has invested in building new Data Center. But it's always been part of the Open Source model that companies are free to choose how much an in what areas they will contribute dollars or engineer time. In practice, the "Stone Soup" has worked pretty well over the past few decades, even if we wished that Facebook had invested more of their profits from their Social Media empire to Linux development; or Amazon or Microsoft investing more of their profits for their varius lines of business towards Free and Open Source projects; or if Netflix had contributed more of Brendan Gregg's time towards improving tooling around BPF.
Personally, I'm much happier being grateful for the amount of time and effort we've gotten from Brendan Gregg, or Omar Sandoval on drgn, as opposed to stamping my feet and asking, "why didn't they and their company contribute *more*"?
Cheers,
- Ted
Quoted 5 lines · Laurent Pinchart
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
It's not clear to me that the SFC document is particularly applicable for the use of LLM's beyond the use case of generating code which is contributed to FOSS projects.
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen-AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
Quoted 2 lines
I expect maintainers who want to act on sashiko reviews to triage and verify them first before bothering authors
As a maintainer, I don't believe I should be forced to rephrase a Sashiko report just because a patch author "outright rejects" LLM's. For that matter, I don't believe I'm obliged to accept patches from someone who forces me to do extra work because they refuse to look at Sashiko reviews....
How do we balance the needs and time of maintainers with patch authors? I don't think it's obvious that we *MUST* bend over backwards to oblige the needs of all patch authors.
Regards,
- Ted
Quoted 10 lines · On Tue, 14 Jul 2026 23:54:43 -0400 "Theodore Tso" <[email protected]> wrote:
Quoted 5 lines · Laurent Pinchart
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
It's not clear to me that the SFC document is particularly applicable for the use of LLM's beyond the use case of generating code which is contributed to FOSS projects.
Agreed: the document there is about AI-generated code ("Generative AI"), not about patch review.
Quoted 15 lines
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen-AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
Quoted 8 lines
Quoted 2 lines
I expect maintainers who want to act on sashiko reviews to triage and verify them first before bothering authors
As a maintainer, I don't believe I should be forced to rephrase a Sashiko report just because a patch author "outright rejects" LLM's. For that matter, I don't believe I'm obliged to accept patches from someone who forces me to do extra work because they refuse to look at Sashiko reviews....
As a maintainer, I won't be doing extra work repeating reviews from LLM (or from any other bot): if the patch is not ok and there is a report already explaining why, I would simply tag the patch as "changes needed" on patchwork, letting patchwork bot to inform the author about the status change without any further explanation.
As an author, if I submit a patch, I have the right to receive all reviews, either done by a human or by a bot. This shouldn't be something that an e-mail policy should be restricting.
I don't care if a bot uses LLM or not: a review is a review: if it is right, my duty as an author is to fix the code; if the review turns to be wrong, I have the right to argue against it.
Quoted 3 lines
How do we balance the needs and time of maintainers with patch authors? I don't think it's obvious that we *MUST* bend over backwards to oblige the needs of all patch authors.
Finding the right balance is indeed tricky, but Linux should come first. As Linus mentioned, AI is clearly an useful tool. Maintainers should use it wisely.
On my view, a good balance would be if Sashiko would have support in the future to have an opt-out mechanism, replacing the reply_to_author e-mail policy from:
https://github.com/sashiko-dev/sashiko/blob/main/sashiko.dev/email_policy.toml
The rationale is that it should not be up to maintainers to decide that authors will be explicitly excluded from patch reviews.
With an opt-out mechanism, authors can be warned at the opt-out interface that maintainers may still to use Sashiko reviews as they wish.
-
See, the above is *my view*. Other media developers have different views. That's why we agreed to start receiving Sashiko reviews at [email protected] with reply_to_author disabled for linux-media.
Thanks,
Mauro
Quoted 12 lines · Mauro Carvalho Chehab
Quoted 9 lines · On Tue, 14 Jul 2026 23:54:43 -0400 "Theodore Tso" <[email protected]> wrote:
Quoted 7 lines · Laurent Pinchart
I believe we should follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).
[1]
https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
Quoted 6 lines
Quoted 3 lines
It's not clear to me that the SFC document is particularly applicable for the use of LLM's beyond the use case of generating code which is contributed to FOSS projects.
Agreed: the document there is about AI-generated code ("Generative AI"), not about patch review.
In a narrow construction, possibly. But broadly it seems to be a charter for the rights of people to ignore AI absolutely and how they should interact with people who use it: that does have applicability to AI reviews.
Quoted 11 lines
Quoted 11 lines
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen-AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
Quoted 4 lines
Quoted 4 lines
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
I think it's simpler than that: The contributor doesn't get to approve the tools the maintainer uses to assess and apply patches. If there's AI in there and the contributor is an AI luddite, then the patch doesn't get applied (i.e. your right to ignore AI stops when it infringes others' right to use it).
Regards,
James
Quoted 13 lines · James Bottomley
Quoted 12 lines · Mauro Carvalho Chehab
Quoted 10 lines · On Tue, 14 Jul 2026 23:54:43 -0400 "Theodore Tso" wrote:
Quoted 5 lines · Laurent Pinchart
I believe we should follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).
[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
It's not clear to me that the SFC document is particularly applicable for the use of LLM's beyond the use case of generating code which is contributed to FOSS projects.
Quoted 7 lines
Quoted 2 lines
Agreed: the document there is about AI-generated code ("Generative AI"), not about patch review.
In a narrow construction, possibly. But broadly it seems to be a charter for the rights of people to ignore AI absolutely and how they should interact with people who use it: that does have applicability to AI reviews.
That is my understanding too. I think the industry broadly defines "generative AI" as LLM-based tools that generate content traditionally produced by humans (text and code in this case). I think this applies to reviews. It does not mean one has to agree with the SFC recommandations of course.
Quoted 16 lines
Quoted 11 lines
Quoted 11 lines
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen-AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
Quoted 4 lines
Quoted 4 lines
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
Quoted 5 lines
I think it's simpler than that: The contributor doesn't get to approve the tools the maintainer uses to assess and apply patches. If there's AI in there and the contributor is an AI luddite, then the patch doesn't get applied (i.e. your right to ignore AI stops when it infringes others' right to use it).
I don't think anyone instructed any maintainer to stop using those tools to assess patches.
On a side note, I find the formulation "contributor *is* an AI luddite" gets close to an ad hominem attack. I assume it wasn't your intention. Given how heated this topic is, focussing on people's actions instead of their nature could help making the discussion more productive (if that's at all possible on a mailing list).
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 3 lines · Laurent Pinchart
Quoted 2 lines · James Bottomley
Quoted 1 line · Mauro Carvalho Chehab
On Tue, 14 Jul 2026 23:54:43 -0400 "Theodore Tso" wrote:
[...]
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
Quoted 16 lines
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen- AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
Quoted 8 lines
Quoted 5 lines
I think it's simpler than that: The contributor doesn't get to approve the tools the maintainer uses to assess and apply patches. If there's AI in there and the contributor is an AI luddite, then the patch doesn't get applied (i.e. your right to ignore AI stops when it infringes others' right to use it).
I don't think anyone instructed any maintainer to stop using those tools to assess patches.
Well, AI replies to patches were the discussion. That is part of a maintainer assessment (at least if sashiko replies with a problem to SCSI patches I ignore the patch until the submitter either fixes the issue or explains why it is wrong).
Quoted 5 lines
On a side note, I find the formulation "contributor *is* an AI luddite" gets close to an ad hominem attack. I assume it wasn't your intention. Given how heated this topic is, focussing on people's actions instead of their nature could help making the discussion more productive (if that's at all possible on a mailing list).
It's a common and neutral dictionary term to mean someone opposed to change:
https://www.dictionary.com/browse/luddite
If we avoid all words which originally had negative origins because the origins might cause offence to some, you'll find a long list of everyday words:
https://www.mentalfloss.com/language/words/13-words-changed-negative-positive-or-vice-versa
Although I personally would love to support banning the word "Dude" in silicon valley on grounds of original negative connotation ...
Regards,
James
Quoted 42 lines · James Bottomley
Quoted 3 lines · Laurent Pinchart
Quoted 2 lines · James Bottomley
Quoted 1 line · Mauro Carvalho Chehab
On Tue, 14 Jul 2026 23:54:43 -0400 "Theodore Tso" wrote:
[...]
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
Quoted 16 lines
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen- AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
Quoted 8 lines
Quoted 5 lines
I think it's simpler than that: The contributor doesn't get to approve the tools the maintainer uses to assess and apply patches. If there's AI in there and the contributor is an AI luddite, then the patch doesn't get applied (i.e. your right to ignore AI stops when it infringes others' right to use it).
I don't think anyone instructed any maintainer to stop using those tools to assess patches.
Well, AI replies to patches were the discussion. That is part of a maintainer assessment (at least if sashiko replies with a problem to SCSI patches I ignore the patch until the submitter either fixes the issue or explains why it is wrong).
Quoted 5 lines
On a side note, I find the formulation "contributor *is* an AI luddite" gets close to an ad hominem attack. I assume it wasn't your intention. Given how heated this topic is, focussing on people's actions instead of their nature could help making the discussion more productive (if that's at all possible on a mailing list).
Quoted 4 lines
It's a common and neutral dictionary term to mean someone opposed to change:
It was the conjunction with *is* in that formulation that triggered me (and before anyone sends a meme involving Bill Clinton: pleast don't). It puts people in boxes and that doesn't help discussions. But we're digressing, I don't think this is worth debating here.
Quoted 8 lines
If we avoid all words which originally had negative origins because the origins might cause offence to some, you'll find a long list of everyday words:
https://www.mentalfloss.com/language/words/13-words-changed-negative-positive-or-vice-versa
Although I personally would love to support banning the word "Dude" in silicon valley on grounds of original negative connotation ...
:-D
Signature · 3 lines
Regards, Laurent Pinchart
Hi Ted,
Quoted 15 lines · Theodore Tso
Quoted 5 lines · Laurent Pinchart
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
It's not clear to me that the SFC document is particularly applicable for the use of LLM's beyond the use case of generating code which is contributed to FOSS projects.
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Quoted 5 lines
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen-AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
I think this is a bit of an extreme example that does not reflect the rationale for the SFC recommandations. Note recommendation 3, which states
"FOSS projects should not shun contributors who choose to use LLM-gen-AI systems"
I hold personal opinions on what I consider is or isn't ethical in this context, and I also understand that ethical principles have a personal dimension. Within the boundaries of the rules of our community, people should be entitled to have different opinions. I don't think anyone is seriously trying to *force* the whole kernel community to ban usage of generative AI (believing in chances of complete success would be a bit foolish at this time), not even the people having the most extreme moral compasses pointing towards that direction.
Quoted 4 lines
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
My interpretation (which conveniently matches my opinion) is that developers should not be forced to directly *use* generative AI tools, and should not be forced to *process* unfiltered output of those tools.
What does this translate to in practice ? I will need to sleep over it for at least a few nights to formulate it clearly. I know that I (along numerous other people) have strong negative feelings if forced to justify myself against unchecked output of an LLM-based review bot, or to review patches where the submitter has clearly not invested substantial time in making the contributions as good as they can. When this happens with human reviewers or developers, they lose trust points and end up being ignored. I don't want to be forced to hold LLMs in higher regards than that.
If you use generative AI to detect issues, find an actionable comment after careful verification and tell me why you find it actionable, I will treat it as a review from Ted Ts'o. I may think your moral compass isn't tuned as mine, but I can still hold you in high regard despite differences in opinions. I certainly wouldn't ignore a serious security issue you would report in that way.
If you start letting obvious false positives through your filter, or significantly more false positives, then my trust in your reviews and skills as a maintainer will diminish over time. The same would apply if you started rambling nonsensically on your own. Occasional mistakes will likely have little impact as we all make mistakes, especially if you acknowledged such mistakes.
What this does *not* mean to me is creating an environment where we pretend those technologies don't exist. The "put your head in the sand" comment from Linus elsewhere in this thread is a bit of a mischaracterization. To his defence, discussions on this topic on kernel mailing lists have been quite heated and prone to mischaracterization.
I have talked with multiple people across the whole spectrum from neutral to very negative opinions about generative AI. One thing that struck me is how a large number of those people feel they're not allowed to express any opinion that is not strongly pro-AI. Maybe listening to each other could be a good first step towards better understanding. I hope we as a community share enough common values to consider important for everybody to feel heard.
On a side note, I have submitted a BoF proposal on this topic for the OSS Europe conference (quite ironically, in the AI track). The goal is to give a place for the people who feel the community only listens to the pro-AI voices and rejects all other opinions. I don't know if it will be accepted.
Quoted 5 lines
Quoted 2 lines
I expect maintainers who want to act on sashiko reviews to triage and verify them first before bothering authors
As a maintainer, I don't believe I should be forced to rephrase a Sashiko report just because a patch author "outright rejects" LLM's.
I don't think I have called for that. What I believe is that triaging LLM reviews should not be forced onto contributors.
Quoted 3 lines
For that matter, I don't believe I'm obliged to accept patches from someone who forces me to do extra work because they refuse to look at Sashiko reviews....
Flipping the argument, should contributors be obliged to do extra work that make them feel diminished as a human ? I'm talking here about justifying themselves against LLM arguments that have not been analyzed by a maintainer first.
Quoted 3 lines
How do we balance the needs and time of maintainers with patch authors? I don't think it's obvious that we *MUST* bend over backwards to oblige the needs of all patch authors.
Does the above bring some clarification to this question, or at least useful examples to continue a constructive discussion ?
Signature · 3 lines
Regards, Laurent Pinchart
Hi Laurent!
Quoted 47 lines · Laurent Pinchart
Quoted 15 lines · Theodore Tso
Quoted 5 lines · Laurent Pinchart
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
It's not clear to me that the SFC document is particularly applicable for the use of LLM's beyond the use case of generating code which is contributed to FOSS projects.
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Quoted 5 lines
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen-AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
I think this is a bit of an extreme example that does not reflect the rationale for the SFC recommandations. Note recommendation 3, which states
"FOSS projects should not shun contributors who choose to use LLM-gen-AI systems"
I hold personal opinions on what I consider is or isn't ethical in this context, and I also understand that ethical principles have a personal dimension. Within the boundaries of the rules of our community, people should be entitled to have different opinions. I don't think anyone is seriously trying to *force* the whole kernel community to ban usage of generative AI (believing in chances of complete success would be a bit foolish at this time), not even the people having the most extreme moral compasses pointing towards that direction.
Quoted 4 lines
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
My interpretation (which conveniently matches my opinion) is that developers should not be forced to directly *use* generative AI tools, and should not be forced to *process* unfiltered output of those tools.
Quoted 9 lines
What does this translate to in practice ? I will need to sleep over it for at least a few nights to formulate it clearly. I know that I (along numerous other people) have strong negative feelings if forced to justify myself against unchecked output of an LLM-based review bot, or to review patches where the submitter has clearly not invested substantial time in making the contributions as good as they can. When this happens with human reviewers or developers, they lose trust points and end up being ignored. I don't want to be forced to hold LLMs in higher regards than that.
I'm not sure I understand here. Do you say you have moral issues if you should read unchecked LLM output? Or is it just that you find noise / signal ratio too bad with LLM output so you find it a waste of your time (and thus feel badly if you were forced to waste this time)? Or something else?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I expect maintainers who want to act on sashiko reviews to triage and verify them first before bothering authors
As a maintainer, I don't believe I should be forced to rephrase a Sashiko report just because a patch author "outright rejects" LLM's.
I don't think I have called for that. What I believe is that triaging LLM reviews should not be forced onto contributors.
Frankly, so far I see the issue with LLM review similarly as a dillema we used to have with checkpatch. It was finding some sensible issues but often the suggestions were also misleading. So some people just found it a waste of time and ignored it, other people didn't accept patches if it didn't pass checkpatch.
I guess nobody can really force contributors to read LLM reviews but OTOH if you see LLM review keeps finding real issues in the work of some contributor and you as a maintainer have to go and filter them for the contributor (instead of contributor doing this work on their own), then you naturally reduce priority of such contributions because it is more work for you as a maintainer to deal with them...
Quoted 8 lines
Quoted 3 lines
For that matter, I don't believe I'm obliged to accept patches from someone who forces me to do extra work because they refuse to look at Sashiko reviews....
Flipping the argument, should contributors be obliged to do extra work that make them feel diminished as a human ? I'm talking here about justifying themselves against LLM arguments that have not been analyzed by a maintainer first.
You write here about "feeling diminished" or "justifying themselves" and I'm not sure I get it. If you get a complaint from some CI running checkpatch or say coverity which is bogus (or perhaps correct?), do you also feel diminished or needing to justify? I just don't see how LLMs are different here... And just to be sure: I'm genuinely trying to understand your position because so far I don't understand it.
For example when I get Sashiko feedback for my patches, I just ignore the comments I find bogus and address those that I find to the point in the next revision. If I see Sashiko found something fundamental, I'll also reply to the thread to notify human reviewers that I'll have to do a larger rewrite so they don't have to waste human time with reviewing this version of the patches.
Honza
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Quoted 1 line · Jan Kara
Hi Laurent!
Hi Jan :-)
Quoted 58 lines · Laurent Pinchart
Quoted 47 lines · Theodore Tso
Quoted 15 lines · Laurent Pinchart
Quoted 5 lines
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
It's not clear to me that the SFC document is particularly applicable for the use of LLM's beyond the use case of generating code which is contributed to FOSS projects.
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Quoted 5 lines
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen-AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
I think this is a bit of an extreme example that does not reflect the rationale for the SFC recommandations. Note recommendation 3, which states
"FOSS projects should not shun contributors who choose to use LLM-gen-AI systems"
I hold personal opinions on what I consider is or isn't ethical in this context, and I also understand that ethical principles have a personal dimension. Within the boundaries of the rules of our community, people should be entitled to have different opinions. I don't think anyone is seriously trying to *force* the whole kernel community to ban usage of generative AI (believing in chances of complete success would be a bit foolish at this time), not even the people having the most extreme moral compasses pointing towards that direction.
Quoted 4 lines
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
My interpretation (which conveniently matches my opinion) is that developers should not be forced to directly *use* generative AI tools, and should not be forced to *process* unfiltered output of those tools.
Quoted 9 lines
What does this translate to in practice ? I will need to sleep over it for at least a few nights to formulate it clearly. I know that I (along numerous other people) have strong negative feelings if forced to justify myself against unchecked output of an LLM-based review bot, or to review patches where the submitter has clearly not invested substantial time in making the contributions as good as they can. When this happens with human reviewers or developers, they lose trust points and end up being ignored. I don't want to be forced to hold LLMs in higher regards than that.
Quoted 5 lines
I'm not sure I understand here. Do you say you have moral issues if you should read unchecked LLM output? Or is it just that you find noise / signal ratio too bad with LLM output so you find it a waste of your time (and thus feel badly if you were forced to waste this time)? Or something else?
I feel that justifying myself against generative AI hallucinations that are blindly trusted by maintainers makes me feel diminished as a human.
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
Depending on one's beliefs, this can be easy to brush off, but such incidents can easily make you question your value in a community where maintainers would by default trust sashiko over an experienced developer.
Quoted 15 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I expect maintainers who want to act on sashiko reviews to triage and verify them first before bothering authors
As a maintainer, I don't believe I should be forced to rephrase a Sashiko report just because a patch author "outright rejects" LLM's.
I don't think I have called for that. What I believe is that triaging LLM reviews should not be forced onto contributors.
Frankly, so far I see the issue with LLM review similarly as a dillema we used to have with checkpatch. It was finding some sensible issues but often the suggestions were also misleading. So some people just found it a waste of time and ignored it, other people didn't accept patches if it didn't pass checkpatch.
Quoted 6 lines
I guess nobody can really force contributors to read LLM reviews but OTOH if you see LLM review keeps finding real issues in the work of some contributor and you as a maintainer have to go and filter them for the contributor (instead of contributor doing this work on their own), then you naturally reduce priority of such contributions because it is more work for you as a maintainer to deal with them...
I understand the problem. That leads to the next question though: what will happen when developers will have to pay for those tools ? Will people who don't want to pay OpenAI, Anthropic or any of the similar companies with dubious ethics be treated as second-class kernel contributors and be deprioritized ?
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
For that matter, I don't believe I'm obliged to accept patches from someone who forces me to do extra work because they refuse to look at Sashiko reviews....
Flipping the argument, should contributors be obliged to do extra work that make them feel diminished as a human ? I'm talking here about justifying themselves against LLM arguments that have not been analyzed by a maintainer first.
Quoted 5 lines
You write here about "feeling diminished" or "justifying themselves" and I'm not sure I get it. If you get a complaint from some CI running checkpatch or say coverity which is bogus (or perhaps correct?), do you also feel diminished or needing to justify? I just don't see how LLMs are different here...
No, I don't get the same feeling. This is due to multiple factors. One of them is due to the more deterministic nature of those tools. I know a build failure from the 0day bot is a build failure. I know what warnings from checkpatch can be ignored in a given subsystem. I know that I can reply to some reported issues saying they're false positives and won't be asked for a full justification. I know that the tool will not deploy language aimed at convincing me to accept bogus findings. I know what patterns of false positives to expect. More importantly, I know maintainers will not blindly side with the tool against me by default.
Another factor that of course plays here is not having the same kind of ethical concerns regarding static analyzers or build bots.
Quoted 2 lines
And just to be sure: I'm genuinely trying to understand your position because so far I don't understand it.
That shows through the way you're asking questions, I really appreciate it.
Quoted 6 lines
For example when I get Sashiko feedback for my patches, I just ignore the comments I find bogus and address those that I find to the point in the next revision. If I see Sashiko found something fundamental, I'll also reply to the thread to notify human reviewers that I'll have to do a larger rewrite so they don't have to waste human time with reviewing this version of the patches.
Some maintainers have said they expect authors to justify themselves for all the false positives.
To be honest, I expect that some authors are already gaming all this by using generative AI to write convincing explanations to dismiss comments as false positives, even when they're not, and I don't expect most maintainers would notice.
Signature · 3 lines
Regards, Laurent Pinchart
On Wed, 2026-07-15 at 23:28 +0300, Laurent Pinchart wrote:
[...]
Quoted 5 lines
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
We can definitely do maintainer education if you point me (or the TAB) at the thread. Sashiko as a tool can absolutely get things wrong so, as maintainers, we do need to accept a reasoned answer that shows the review is wrong.
Regards,
James
Quoted 8 lines · James Bottomley
On Wed, 2026-07-15 at 23:28 +0300, Laurent Pinchart wrote:
[...]Quoted 5 lines
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
Quoted 4 lines
We can definitely do maintainer education if you point me (or the TAB) at the thread. Sashiko as a tool can absolutely get things wrong so, as maintainers, we do need to accept a reasoned answer that shows the review is wrong.
I've shared this with the person who reported the issue to me, as I don't know if they're comfortable discussing it publicly.
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 9 lines · Laurent Pinchart
Quoted 8 lines · James Bottomley
On Wed, 2026-07-15 at 23:28 +0300, Laurent Pinchart wrote:
[...]Quoted 5 lines
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
Quoted 7 lines
Quoted 4 lines
We can definitely do maintainer education if you point me (or the TAB) at the thread. Sashiko as a tool can absolutely get things wrong so, as maintainers, we do need to accept a reasoned answer that shows the review is wrong.
I've shared this with the person who reported the issue to me, as I don't know if they're comfortable discussing it publicly.
I'd suggest to report these issues as github issue in the sashiko repository or as an email to the sashiko@ mailing list (or email me privately). Or the best, send me a pull request with a fix. It's not _always_ addressable, but in many cases it is. But obviously it's not gonna be fixed if it's a hidden knowledge.
Thank you!
Quoted 7 lines · On Wed, 15 Jul 2026 16:36:42 -0400 James Bottomley…
On Wed, 2026-07-15 at 23:28 +0300, Laurent Pinchart wrote:
[...]Quoted 5 lines
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
I saw the same more than once in the past where humans did about the same by assuming a previous implementation of some code.
Quoted 4 lines
We can definitely do maintainer education if you point me (or the TAB) at the thread. Sashiko as a tool can absolutely get things wrong so, as maintainers, we do need to accept a reasoned answer that shows the review is wrong.
As already pointed on this thread, the author is the one that has more time to dedicate to his proposed changes. A simply reply to a Sashiko's email telling that the referenced code there was an hallucination would be enough for maintainers to ignore such particular issue.
Thanks,
Mauro
Steven Rostedt
maintainerQuoted 2 lines · On Wed, 15 Jul 2026 23:28:08 +0300 Laurent Pinchart…
I feel that justifying myself against generative AI hallucinations that are blindly trusted by maintainers makes me feel diminished as a human.
I like to read the Sashiko reviews and look for issues with it. This is why I *want* the email to the mailing list. It's so much easier to reply to the Sashiko review in an email and point out where it's just wrong and point out what I want the author of the patch to fix.
I've been using the "copy" icon to paste the reviews in emails back to the author[*].
Quoted 5 lines
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
This looks to me as a issue with a maintainer needing to be educated about AI tooling. Just like I get AI slop and need to tell people the AI is wrong, we need to look at maintainers to keep them from getting lazy and just accepting what the AI review says.
-- Steve
[*] Roman, the paste from the copy icon appears to remove blank lines.
This makes the output difficult to read as everything is bunched together. I typically go through and manually add back those blank lines. Is this a known issue? Can it be fixed?
Of course, if I now have Sashiko replying to the tracing mailing list, I may not need to use that feature anymore.
Quoted 27 lines · Steven Rostedt
Quoted 2 lines · On Wed, 15 Jul 2026 23:28:08 +0300 Laurent Pinchart…
I feel that justifying myself against generative AI hallucinations that are blindly trusted by maintainers makes me feel diminished as a human.
I like to read the Sashiko reviews and look for issues with it. This is why I *want* the email to the mailing list. It's so much easier to reply to the Sashiko review in an email and point out where it's just wrong and point out what I want the author of the patch to fix.
I've been using the "copy" icon to paste the reviews in emails back to the author[*].
Quoted 5 lines
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
This looks to me as a issue with a maintainer needing to be educated about AI tooling. Just like I get AI slop and need to tell people the AI is wrong, we need to look at maintainers to keep them from getting lazy and just accepting what the AI review says.
-- Steve
Quoted 7 lines
[*] Roman, the paste from the copy icon appears to remove blank lines.
This makes the output difficult to read as everything is bunched together. I typically go through and manually add back those blank lines. Is this a known issue? Can it be fixed?Of course, if I now have Sashiko replying to the tracing mailing list, I may not need to use that feature anymore.
I've created https://github.com/sashiko-dev/sashiko/issues/327 to track this issue. I'm not sure if it's Sashiko or browser/OS's handling of the paste buffer, but I'll take a look.
Thanks!
Quoted 18 lines · Steven Rostedt
Quoted 2 lines · On Wed, 15 Jul 2026 23:28:08 +0300 Laurent Pinchart wrote:
I feel that justifying myself against generative AI hallucinations that are blindly trusted by maintainers makes me feel diminished as a human.
I like to read the Sashiko reviews and look for issues with it. This is why I *want* the email to the mailing list. It's so much easier to reply to the Sashiko review in an email and point out where it's just wrong and point out what I want the author of the patch to fix.
I've been using the "copy" icon to paste the reviews in emails back to the author[*].
Quoted 4 lines
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
Quoted 4 lines
This looks to me as a issue with a maintainer needing to be educated about AI tooling. Just like I get AI slop and need to tell people the AI is wrong, we need to look at maintainers to keep them from getting lazy and just accepting what the AI review says.
Putting the responsibility of proving that the issue is real on the maintainers (or other reviewers in the subsystem who would be happy to have that role) would solve this.
Quoted 8 lines
[*] Roman, the paste from the copy icon appears to remove blank lines.
This makes the output difficult to read as everything is bunched together. I typically go through and manually add back those blank lines. Is this a known issue? Can it be fixed?Of course, if I now have Sashiko replying to the tracing mailing list, I may not need to use that feature anymore.
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 11 lines · On Wed, 15 Jul 2026 23:28:08 +0300 Laurent Pinchart…
Quoted 10 lines
Quoted 4 lines
Flipping the argument, should contributors be obliged to do extra work that make them feel diminished as a human ? I'm talking here about justifying themselves against LLM arguments that have not been analyzed by a maintainer first.
You write here about "feeling diminished" or "justifying themselves" and I'm not sure I get it. If you get a complaint from some CI running checkpatch or say coverity which is bogus (or perhaps correct?), do you also feel diminished or needing to justify? I just don't see how LLMs are different here...
Quoted 4 lines
No, I don't get the same feeling. This is due to multiple factors. One of them is due to the more deterministic nature of those tools. I know a build failure from the 0day bot is a build failure. I know what warnings from checkpatch can be ignored in a given subsystem.
Not quite true: smatch is not deterministic: it depends on a database it builds from previous runs.
https://github.com/error27/smatch/blob/master/Documentation/smatch.rst#using-smatch
Quoted 3 lines
I know that I can
reply to some reported issues saying they're false positives and won't be asked for a full justification.
Just like any bot review, there's no need to justify obvious things, but the way to make reviewers/maintainers aware of false positives is to reply. That's how our process have been working all those years.
Thanks,
Mauro
Hi Laurent!
Quoted 65 lines · Laurent Pinchart
Quoted 58 lines · Jan Kara
Quoted 47 lines · Laurent Pinchart
Quoted 15 lines · Theodore Tso
Quoted 5 lines · Laurent Pinchart
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
It's not clear to me that the SFC document is particularly applicable for the use of LLM's beyond the use case of generating code which is contributed to FOSS projects.
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Quoted 5 lines
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen-AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
I think this is a bit of an extreme example that does not reflect the rationale for the SFC recommandations. Note recommendation 3, which states
"FOSS projects should not shun contributors who choose to use LLM-gen-AI systems"
I hold personal opinions on what I consider is or isn't ethical in this context, and I also understand that ethical principles have a personal dimension. Within the boundaries of the rules of our community, people should be entitled to have different opinions. I don't think anyone is seriously trying to *force* the whole kernel community to ban usage of generative AI (believing in chances of complete success would be a bit foolish at this time), not even the people having the most extreme moral compasses pointing towards that direction.
Quoted 4 lines
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
My interpretation (which conveniently matches my opinion) is that developers should not be forced to directly *use* generative AI tools, and should not be forced to *process* unfiltered output of those tools.
Quoted 9 lines
What does this translate to in practice ? I will need to sleep over it for at least a few nights to formulate it clearly. I know that I (along numerous other people) have strong negative feelings if forced to justify myself against unchecked output of an LLM-based review bot, or to review patches where the submitter has clearly not invested substantial time in making the contributions as good as they can. When this happens with human reviewers or developers, they lose trust points and end up being ignored. I don't want to be forced to hold LLMs in higher regards than that.
Quoted 5 lines
I'm not sure I understand here. Do you say you have moral issues if you should read unchecked LLM output? Or is it just that you find noise / signal ratio too bad with LLM output so you find it a waste of your time (and thus feel badly if you were forced to waste this time)? Or something else?
Quoted 7 lines
I feel that justifying myself against generative AI hallucinations that are blindly trusted by maintainers makes me feel diminished as a human.
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
OK, but here the cause of your feelings seem to be more the behavior of the maintainer, not Sashiko's review as such? If that's the case, I can totally understand that but I also think solution isn't ignoring Sashiko or forcing maintainers to filter its output but rather talking to the maintainer to treat Sashiko output sensibly. And yes, we all need to figure out what works and what does not...
Quoted 22 lines
Quoted 15 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I expect maintainers who want to act on sashiko reviews to triage and verify them first before bothering authors
As a maintainer, I don't believe I should be forced to rephrase a Sashiko report just because a patch author "outright rejects" LLM's.
I don't think I have called for that. What I believe is that triaging LLM reviews should not be forced onto contributors.
Frankly, so far I see the issue with LLM review similarly as a dillema we used to have with checkpatch. It was finding some sensible issues but often the suggestions were also misleading. So some people just found it a waste of time and ignored it, other people didn't accept patches if it didn't pass checkpatch.
Quoted 6 lines
I guess nobody can really force contributors to read LLM reviews but OTOH if you see LLM review keeps finding real issues in the work of some contributor and you as a maintainer have to go and filter them for the contributor (instead of contributor doing this work on their own), then you naturally reduce priority of such contributions because it is more work for you as a maintainer to deal with them...
Quoted 5 lines
I understand the problem. That leads to the next question though: what will happen when developers will have to pay for those tools ? Will people who don't want to pay OpenAI, Anthropic or any of the similar companies with dubious ethics be treated as second-class kernel contributors and be deprioritized ?
That's a serious question which somewhat worries me as well. But at the same time it isn't an immediate problem for Sashiko (that's so far freely available to everybody) and I don't think asking maintainers to filter Sashiko output (or outright rejecting dealing with anything LLM related) helps this in any way.
Quoted 15 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
For that matter, I don't believe I'm obliged to accept patches from someone who forces me to do extra work because they refuse to look at Sashiko reviews....
Flipping the argument, should contributors be obliged to do extra work that make them feel diminished as a human ? I'm talking here about justifying themselves against LLM arguments that have not been analyzed by a maintainer first.
Quoted 5 lines
You write here about "feeling diminished" or "justifying themselves" and I'm not sure I get it. If you get a complaint from some CI running checkpatch or say coverity which is bogus (or perhaps correct?), do you also feel diminished or needing to justify? I just don't see how LLMs are different here...
Quoted 9 lines
No, I don't get the same feeling. This is due to multiple factors. One of them is due to the more deterministic nature of those tools. I know a build failure from the 0day bot is a build failure. I know what warnings from checkpatch can be ignored in a given subsystem. I know that I can reply to some reported issues saying they're false positives and won't be asked for a full justification. I know that the tool will not deploy language aimed at convincing me to accept bogus findings. I know what patterns of false positives to expect. More importantly, I know maintainers will not blindly side with the tool against me by default.
OK, understood. I think I've mostly addressed this above. The problem seems to be partly in the area of maintainer behavior and partly in finding an efficient way of dealing with / mitigating Sashiko's false reports.
Quoted 2 lines
Another factor that of course plays here is not having the same kind of ethical concerns regarding static analyzers or build bots.
I think I share some of the concerns but at the same time I don't find boycott (as in avoiding the technology) as an efficient way of dealing with the situation :). But I understand this is purely personal choice.
Quoted 9 lines
Quoted 6 lines
For example when I get Sashiko feedback for my patches, I just ignore the comments I find bogus and address those that I find to the point in the next revision. If I see Sashiko found something fundamental, I'll also reply to the thread to notify human reviewers that I'll have to do a larger rewrite so they don't have to waste human time with reviewing this version of the patches.
Some maintainers have said they expect authors to justify themselves for all the false positives.
I personally would find this annoying (so I don't enforce this in the stuff I maintain) but I guess it's about discussing with maintainers and improving the tooling to find out what works...
Quoted 4 lines
To be honest, I expect that some authors are already gaming all this by using generative AI to write convincing explanations to dismiss comments as false positives, even when they're not, and I don't expect most maintainers would notice.
Possibly. I have personal experience with authors feeding my review comments to AI and pasting me the answer :).
Honza
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Hi Jan,
Quoted 69 lines · Jan Kara
Quoted 68 lines · Laurent Pinchart
Quoted 58 lines · Jan Kara
Quoted 47 lines · Laurent Pinchart
Quoted 15 lines · Theodore Tso
Quoted 5 lines · Laurent Pinchart
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
It's not clear to me that the SFC document is particularly applicable for the use of LLM's beyond the use case of generating code which is contributed to FOSS projects.
Things get a lot more complicated when we're considering the use of LLM's to (a) review code, (b) automate the analysis of a bug report or stack trace, or (c) automate backporting a patch to LTS kernel.
Quoted 5 lines
Consider the first recommendation, "The FOSS community should support, not just tolerate, those who outright reject LLM-gen-AI systems." If someone rejects LLM-gen-AI systems, and the LTS kernel contains patches which are automated backported, and they object, are we bound to forswear the use of automated backport technologies?
I think this is a bit of an extreme example that does not reflect the rationale for the SFC recommandations. Note recommendation 3, which states
"FOSS projects should not shun contributors who choose to use LLM-gen-AI systems"
I hold personal opinions on what I consider is or isn't ethical in this context, and I also understand that ethical principles have a personal dimension. Within the boundaries of the rules of our community, people should be entitled to have different opinions. I don't think anyone is seriously trying to *force* the whole kernel community to ban usage of generative AI (believing in chances of complete success would be a bit foolish at this time), not even the people having the most extreme moral compasses pointing towards that direction.
Quoted 4 lines
What if someone reports a bug with a kernel stack trace, and someone uses an LLM agent to analyze their bug report and find a fix. What does it mean to "support somone who outright rejects the use of LLM-gen-AI systems" in that case?
My interpretation (which conveniently matches my opinion) is that developers should not be forced to directly *use* generative AI tools, and should not be forced to *process* unfiltered output of those tools.
Quoted 9 lines
What does this translate to in practice ? I will need to sleep over it for at least a few nights to formulate it clearly. I know that I (along numerous other people) have strong negative feelings if forced to justify myself against unchecked output of an LLM-based review bot, or to review patches where the submitter has clearly not invested substantial time in making the contributions as good as they can. When this happens with human reviewers or developers, they lose trust points and end up being ignored. I don't want to be forced to hold LLMs in higher regards than that.
Quoted 5 lines
I'm not sure I understand here. Do you say you have moral issues if you should read unchecked LLM output? Or is it just that you find noise / signal ratio too bad with LLM output so you find it a waste of your time (and thus feel badly if you were forced to waste this time)? Or something else?
I feel that justifying myself against generative AI hallucinations that are blindly trusted by maintainers makes me feel diminished as a human.
Quoted 7 lines
Quoted 4 lines
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
OK, but here the cause of your feelings seem to be more the behavior of the maintainer, not Sashiko's review as such?
I think it's both. Maintainer education will play a role, I'm sure of that. I foresee that overloaded maintainer will still be very tempted to trust sashiko's reviews by default, but you can call me pessimistic here.
The other aspect, less related to how maintainers react to the reviews, is also less related to sashiko in particular. I think there's a fundamental difference between receiving feedback from "regular" static analyzers compared to a machine that is made to express itself as a human. The 0day bot doesn't feel like it's trying to trick me. I would probably have different feelings if sashiko provided reviews in a more "machine" language.
Quoted 34 lines
If that's the case, I can totally
understand that but I also think solution isn't ignoring Sashiko or forcing maintainers to filter its output but rather talking to the maintainer to treat Sashiko output sensibly. And yes, we all need to figure out what works and what does not...Quoted 22 lines
Quoted 15 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I expect maintainers who want to act on sashiko reviews to triage and verify them first before bothering authors
As a maintainer, I don't believe I should be forced to rephrase a Sashiko report just because a patch author "outright rejects" LLM's.
I don't think I have called for that. What I believe is that triaging LLM reviews should not be forced onto contributors.
Frankly, so far I see the issue with LLM review similarly as a dillema we used to have with checkpatch. It was finding some sensible issues but often the suggestions were also misleading. So some people just found it a waste of time and ignored it, other people didn't accept patches if it didn't pass checkpatch.
Quoted 6 lines
I guess nobody can really force contributors to read LLM reviews but OTOH if you see LLM review keeps finding real issues in the work of some contributor and you as a maintainer have to go and filter them for the contributor (instead of contributor doing this work on their own), then you naturally reduce priority of such contributions because it is more work for you as a maintainer to deal with them...
Quoted 5 lines
I understand the problem. That leads to the next question though: what will happen when developers will have to pay for those tools ? Will people who don't want to pay OpenAI, Anthropic or any of the similar companies with dubious ethics be treated as second-class kernel contributors and be deprioritized ?
Quoted 5 lines
That's a serious question which somewhat worries me as well. But at the same time it isn't an immediate problem for Sashiko (that's so far freely available to everybody) and I don't think asking maintainers to filter Sashiko output (or outright rejecting dealing with anything LLM related) helps this in any way.
Sure, those are two separate issues. I think it needs to be considered now though, to avoid being cornered up later. This is one topic I wasn't initially planning to bring up, this mail thread has gone into lots of different and not fully expected directions.
Quoted 29 lines
Quoted 15 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
For that matter, I don't believe I'm obliged to accept patches from someone who forces me to do extra work because they refuse to look at Sashiko reviews....
Flipping the argument, should contributors be obliged to do extra work that make them feel diminished as a human ? I'm talking here about justifying themselves against LLM arguments that have not been analyzed by a maintainer first.
Quoted 5 lines
You write here about "feeling diminished" or "justifying themselves" and I'm not sure I get it. If you get a complaint from some CI running checkpatch or say coverity which is bogus (or perhaps correct?), do you also feel diminished or needing to justify? I just don't see how LLMs are different here...
Quoted 9 lines
No, I don't get the same feeling. This is due to multiple factors. One of them is due to the more deterministic nature of those tools. I know a build failure from the 0day bot is a build failure. I know what warnings from checkpatch can be ignored in a given subsystem. I know that I can reply to some reported issues saying they're false positives and won't be asked for a full justification. I know that the tool will not deploy language aimed at convincing me to accept bogus findings. I know what patterns of false positives to expect. More importantly, I know maintainers will not blindly side with the tool against me by default.
OK, understood. I think I've mostly addressed this above. The problem seems to be partly in the area of maintainer behavior and partly in finding an efficient way of dealing with / mitigating Sashiko's false reports.
Quoted 6 lines
Quoted 2 lines
Another factor that of course plays here is not having the same kind of ethical concerns regarding static analyzers or build bots.
I think I share some of the concerns but at the same time I don't find boycott (as in avoiding the technology) as an efficient way of dealing with the situation :). But I understand this is purely personal choice.
How to react to the situation is a personal choice indeed, but the need to react is more of an evidence than a choice for me. I know I would have trouble looking at myself in the mirror in the morning if I normalized funding companies behind those LLMs. It doesn't mean I can't respect someone who has a different opinion, and I think I can request respect too.
Quoted 14 lines
Quoted 9 lines
Quoted 6 lines
For example when I get Sashiko feedback for my patches, I just ignore the comments I find bogus and address those that I find to the point in the next revision. If I see Sashiko found something fundamental, I'll also reply to the thread to notify human reviewers that I'll have to do a larger rewrite so they don't have to waste human time with reviewing this version of the patches.
Some maintainers have said they expect authors to justify themselves for all the false positives.
I personally would find this annoying (so I don't enforce this in the stuff I maintain) but I guess it's about discussing with maintainers and improving the tooling to find out what works...
Quoted 7 lines
Quoted 4 lines
To be honest, I expect that some authors are already gaming all this by using generative AI to write convincing explanations to dismiss comments as false positives, even when they're not, and I don't expect most maintainers would notice.
Possibly. I have personal experience with authors feeding my review comments to AI and pasting me the answer :).
I'm sure most of us have. A personal favourite of mine is someone replying to a message where I asked them not to submit AI slop (we're talking about a patch in HTML form with each line of C code starting with a '•' character). The reply contained
| Kept it short and dignified. The second paragraph shows you absorbed the | lesson without being overly apologetic.
That author never appeared on the mailing list under the same identity after that.
Signature · 3 lines
Regards, Laurent Pinchart
Steven Rostedt
maintainerQuoted 7 lines · On Wed, 22 Jul 2026 01:43:28 +0300 Laurent Pinchart…
The other aspect, less related to how maintainers react to the reviews, is also less related to sashiko in particular. I think there's a fundamental difference between receiving feedback from "regular" static analyzers compared to a machine that is made to express itself as a human. The 0day bot doesn't feel like it's trying to trick me. I would probably have different feelings if sashiko provided reviews in a more "machine" language.
Or it could just end the email with:
"Deet-doot-dot, I am a bot."
;-)
-- Steve
Hi Laurent,
Quoted 8 lines · Laurent Pinchart
I feel that justifying myself against generative AI hallucinations that are blindly trusted by maintainers makes me feel diminished as a human.
No later than yesterday a friend of mine pointed me to a mail thread where sashiko referenced code that has never existed in the kernel, and the maintainer blindly trusted the comment and asked the patch author to fix that issue, seemingly doubling down when told the code didn't exist.
Quoted 4 lines
Depending on one's beliefs, this can be easy to brush off, but such incidents can easily make you question your value in a community where maintainers would by default trust sashiko over an experienced developer.
I think these ones will resolve by themselves as people get used to trusting the tool at different degrees. The mistake in my opinion is to see it as a tool, while LLMs are made to imitate humans. If you see it as a limited human that can tirelessly work and verify stuff, you can understand that it will sometimes bring some value in certain areas and not at all (or even be negative) in others. But just like we've had trolls or people with uneasy personalities in the past on the list that were also doing some work and whom some readers just learned to ignore or correct, here it might become exactly the same. Maybe sashiko itself will be tuned to speak less confidently to authors so that they don't take everything it says for granted. IMHO it's a matter of everyone adapting with a certain degree of trust/mistrust.
But I do respect (even if I don't share all of) the concerns you expressed regarding your beliefs and/or the impact of cost raises (that currently doesn't affect the tool). I'm only speaking for the point above about the possible social impact.
Willy
Quoted 3 lines · Laurent Pinchart
My interpretation (which conveniently matches my opinion) is that developers should not be forced to directly *use* generative AI tools, and should not be forced to *process* unfiltered output of those tools.
But maintaineres should be forced to process the output of those tools because the developers refuses to do that work? If someone refuses to use the unfiltered otuput of those tools, and their code *is* buggy, I may not have time to cater to these people. In which case, if I see that their code is reliably buggy, and they are refusing to look at the review from the LLM (or the zero-day kernel bot, or checkpatch.pl), I reserve the right to just start ignoring patches from those people.
Quoted 3 lines
I don't think I have called for that. What I believe is that triaging LLM reviews should not be forced onto contributors.
I don't believe that triaging LLM revoews should be forced onto the maintainers. Remember, the contributors outnumber the maintainers, so forcing more work on maintainers don't scale. One of the reasons why I was so excited for Sashiko is that it reduced the load on maintainers, while improving the quality of patch reviews.
Quoted 4 lines
Flipping the argument, should contributors be obliged to do extra work that make them feel diminished as a human ? I'm talking here about justifying themselves against LLM arguments that have not been analyzed by a maintainer first.
Nope; but I don't believe I'm obliged to accept contributions from people who feel that way....
- Ted
Quoted 4 lines · Theodore Tso
I don't believe that triaging LLM revoews should be forced onto the maintainers. Remember, the contributors outnumber the maintainers, so forcing more work on maintainers don't scale.
Indeed.
And even if a maintainer has the time to read carefully every AI comment on every patch, in an ideal world it would still be good to have the authors read them too, because then the chance of disregarding a true positive is lower.
After all, the authors are the ones that have the context of the patch since they just submitted it. That is, they are the best placed ones to filter feedback that arrives soon after the patch is sent, AI or not.
Of course, mistakes can happen, and there will be instances where a confused AI may confuse an author to change the code for the worse. But as long as we consider the result a net positive, it should be fine.
This is the position I gave Roman back then, and when we enabled "reply to author" in Sashiko, we did see authors engaging with the reports. That actually saves time for maintainers (and reviewers) in some cases.
In fact, at least one person asked about running Sashiko (or the prompts) on their end to get their patches "AI-clean" (to some degree) before sending them to the list. That is good -- it is like getting a patch lint-clean before submitting.
Cheers,
Miguel
Quoted 7 lines · Theodore Tso
Quoted 3 lines · Laurent Pinchart
My interpretation (which conveniently matches my opinion) is that developers should not be forced to directly *use* generative AI tools, and should not be forced to *process* unfiltered output of those tools.
But maintaineres should be forced to process the output of those tools because the developers refuses to do that work?
Maintainers (at least some of them) are the ones introducing a change in the process here. I feel there's some sort of sense of panic among a part of the kernel maintainers, or maybe such an acute burn out, that it justifies anyone with different opinions being treated as collateral damage.
Is there really no acceptable option beside forcing everybody to swallow the generative AI pill ? No option for people with ethics concern to be still considered part of the kernel community ? No option but complete surrender and pledging allegiance ? This is how I increasingly feel being treated, and I know I'm not alone.
Quoted 7 lines
If someone refuses to
use the unfiltered otuput of those tools, and their code *is* buggy, I may not have time to cater to these people. In which case, if I see that their code is reliably buggy, and they are refusing to look at the review from the LLM (or the zero-day kernel bot, or checkpatch.pl), I reserve the right to just start ignoring patches from those people.
Please, let's stop comparing generative AI with zero-day kernel bot or checkpatch. That's not a relevant comparison.
Quoted 6 lines
Quoted 2 lines
I don't think I have called for that. What I believe is that triaging LLM reviews should not be forced onto contributors.
I don't believe that triaging LLM revoews should be forced onto the maintainers. Remember, the contributors outnumber the maintainers, so forcing more work on maintainers don't scale.
I see many people claiming that LLMs drastically lower the review burden. Does it do so only marginally, is effort to triage reviews higher than the effort to write reviews in the first place ?
There's also an elephant in the room: beside paying for the tokens used by sashiko, I'm sure Google could also affort funding developers and maintainers to perform triage. That's a bit of a different question, but it does feel that two byproducts of sashiko useful for Google are to trick maintainers into forcing contributors to use generative AI, and to be seen as helping the community without having to address the core, long-term issue of underfunded maintainers.
Quoted 11 lines
One of the reasons why
I was so excited for Sashiko is that it reduced the load on maintainers, while improving the quality of patch reviews.Quoted 4 lines
Flipping the argument, should contributors be obliged to do extra work that make them feel diminished as a human ? I'm talking here about justifying themselves against LLM arguments that have not been analyzed by a maintainer first.
Nope; but I don't believe I'm obliged to accept contributions from people who feel that way....
You're not obliged to accept contributions from anyone until Linus forces you. That doesn't mean discriminating contributors based on their beliefs would be a good idea.
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 3 lines · Laurent Pinchart
Please, let's stop comparing generative AI with zero-day kernel bot or checkpatch. That's not a relevant comparison.
You are correct. The AI generated reports are usually much superior and more flexible.
They aren't just syntax highlighters or reporting "this doesn't build", they actually find real non-trivial problems.
Now, I'm not saying that one replaces the other. The zero-day bot finding things that don't even build or boot are great. That's a pretty hard and clear signal.
But the AI reports are often a lot better than checkpatch reports have been.
Those checkpatch reports have gone through years of trying to massage them into something that adds more value than pain - and I do think we're there now, but it really required that effort on the part of checkpatch maintainers.
And that's exactly the kind of effort we need for Sashiko and friends.
Because no, AI reports are not always great, but neither are human reviews. I see less useful reviews by humans where I go "did this person just try to get his name in the commit log, because that has no useful content".
I suspect you haven't used AI for programming. Try it. Try one of the *good* ones.
And I don't mean "use it for the kernel". Use it just for the fun of it. Find something you want to do, and just play with it.
The open models are getting pretty darn good too, but for a first trial without any real setup, one of the free tiers of the cloud ones is certainly the easiest way to just kick the tires.
Do it with something you find interesting, but not "important" - start small, and start with something you feel you probably wouldn't really waste your time on if it was just yourself, but where you have enough background knowledge that you can judge the output.
It's what I did, because I wanted to judge things based on real use, not on what others say (and sometimes the loudest ones do it for marketing reasons because they have stock that is tied to it).
You might find it enlightening, or at least interesting.
My own personal annoyance was how eager to please AI models tend to be at least by default. I understand why it happens, and that people like that subservient tone, but at least personally I was looking for more critical review of the code, not an AI that had been taught to say "You are entirely right" just to please people.
Linus
Hi Linus,
Quoted 44 lines · Linus Torvalds
Quoted 3 lines · Laurent Pinchart
Please, let's stop comparing generative AI with zero-day kernel bot or checkpatch. That's not a relevant comparison.
You are correct. The AI generated reports are usually much superior and more flexible.
They aren't just syntax highlighters or reporting "this doesn't build", they actually find real non-trivial problems.
Now, I'm not saying that one replaces the other. The zero-day bot finding things that don't even build or boot are great. That's a pretty hard and clear signal.
But the AI reports are often a lot better than checkpatch reports have been.
Those checkpatch reports have gone through years of trying to massage them into something that adds more value than pain - and I do think we're there now, but it really required that effort on the part of checkpatch maintainers.
And that's exactly the kind of effort we need for Sashiko and friends.
Because no, AI reports are not always great, but neither are human reviews. I see less useful reviews by humans where I go "did this person just try to get his name in the commit log, because that has no useful content".
I suspect you haven't used AI for programming. Try it. Try one of the *good* ones.
And I don't mean "use it for the kernel". Use it just for the fun of it. Find something you want to do, and just play with it.
The open models are getting pretty darn good too, but for a first trial without any real setup, one of the free tiers of the cloud ones is certainly the easiest way to just kick the tires.
Do it with something you find interesting, but not "important" - start small, and start with something you feel you probably wouldn't really waste your time on if it was just yourself, but where you have enough background knowledge that you can judge the output.
Quoted 5 lines
It's what I did, because I wanted to judge things based on real use, not on what others say (and sometimes the loudest ones do it for marketing reasons because they have stock that is tied to it).
You might find it enlightening, or at least interesting.
I've never (OK, not never, but not for some years now) that those tools have technical merits. That is not my point in this or other similar conversations.
I consider that, today, there's no ethical justification for the use of generative AI in FOSS development. That's a personal opinion, it will likely evolve with time (not entirely sure in which direction though, as the industry is hard to predict accurately), I don't expect everybody to agree, I'm not trying to change the opinion of the overall kernel community here, and I'm not asking for sashiko-enthousiastic maintainers or developers to stop using it.
What I'm asking is for the community to recognize there are people with ethical concerns, listen, and try to see if a reasonable middleground exists where some of those concerns could be addressed.
Because we all seem to like parallels, here's one that may or may not be better than comparing generative AI with checkpatch. There have been conscientious objectors probably for as long as humanity exists. They have been judged and treated differently over time, often harshly. In several countries today they can opt for a civilian service instead of being considered a deserter.
Now I'll let someone reply to this comparison and argue that those people are destroying the fabric of society :-)
Quoted 5 lines
My own personal annoyance was how eager to please AI models tend to be at least by default. I understand why it happens, and that people like that subservient tone, but at least personally I was looking for more critical review of the code, not an AI that had been taught to say "You are entirely right" just to please people.
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 3 lines · Laurent Pinchart
I consider that, today, there's no ethical justification for the use of generative AI in FOSS development.
So this is where the discussion ends.
As I mentioned, Linux has never been a social warrior project.
If you don't have technical reasons, you don't have reasons.
You can choose not to use AI, but that's your PERSONAL choice.
It has absolutely no impact on anybody else, and you should not expect it to have any.
Put another way: if you are vegetarian because you think meat is murder, that's perfectly fine. I know for a fact we have several vegan kernel developers, and I'm sure they have varied reasons for it. Maybe they just don't like the taste, maybe they have social or religious reasons for it. Lots of perfectly valid reasons, possibly driven by ethics.
But they don't expect the rest of the kernel community to become vegetarian because of their personal ethical standpoint, do they?
This is absolutely no different.
And yes, I feel very strongly about this, not because I feel strongly about AI per se, but because we have a long history interacting with the FSF.
They have their "ethical" reasons too, and use them as a weapon, and as a way to drive away sane people.
It's why Linux is *not* GNU/Linux, and why we call things "open source" instead of "Free Software".
So keep your ethics where they belong - in your personal life. Don't try to enforce your ethics on others.
Linus
Quoted 6 lines · Linus Torvalds
Quoted 3 lines · Laurent Pinchart
I consider that, today, there's no ethical justification for the use of generative AI in FOSS development.
So this is where the discussion ends.
You've cut the rest that says
I don't expect everybody to agree, I'm not trying to change the opinion of the overall kernel community here, and I'm not asking for sashiko-enthousiastic maintainers or developers to stop using it.
I think that's relevant.
Quoted 3 lines
As I mentioned, Linux has never been a social warrior project.
If you don't have technical reasons, you don't have reasons.
You have accepted
commit a5f526ecb075a08c4a082355020166c7fe13ae27
Author: Dan Williams <[email protected]> Date: Fri Jul 3 23:54:35 2020 -0700
CodingStyle: Inclusive Terminology
That commit shows the community can take ethical issues into consideration.
Quoted 12 lines
You can choose not to use AI, but that's your PERSONAL choice.
It has absolutely no impact on anybody else, and you should not expect it to have any.
Put another way: if you are vegetarian because you think meat is murder, that's perfectly fine. I know for a fact we have several vegan kernel developers, and I'm sure they have varied reasons for it. Maybe they just don't like the taste, maybe they have social or religious reasons for it. Lots of perfectly valid reasons, possibly driven by ethics.
Quoted 2 lines
But they don't expect the rest of the kernel community to become vegetarian because of their personal ethical standpoint, do they?
And I'm not either, cfr supra. What I'm asking is to not be forced to eat meat (in the metaphorical sense only).
Quoted 6 lines
This is absolutely no different.
And yes, I feel very strongly about this, not because I feel strongly about AI per se, but because we have a long history interacting with the FSF.
Quoted 8 lines
They have their "ethical" reasons too, and use them as a weapon, and as a way to drive away sane people.
It's why Linux is *not* GNU/Linux, and why we call things "open source" instead of "Free Software".
So keep your ethics where they belong - in your personal life. Don't try to enforce your ethics on others.
The mail thread has grown long, you may have missed the multiple places where I have explained - or tried to - that I'm not expecting the rest of the community to abide by my personal convictions.
Signature · 3 lines
Regards, Laurent Pinchart
Come on Laurent, don't be naive: pointing out Linus' contradictions won't move the conversation forward.
Because, when you look at the whole picture, his arguments and actions show deep coehernce with the Foundation's _political_ goals.
Quoted 13 lines · On Wed, 15 Jul 2026 23:13:01 +0300 Laurent Pinchart wrote:
Quoted 9 lines · Linus Torvalds
Quoted 3 lines · Laurent Pinchart
I consider that, today, there's no ethical justification for the use of generative AI in FOSS development.
So this is where the discussion ends.
[...]If you don't have technical reasons, you don't have reasons.
You have accepted
Quoted 8 lines
commit
a5f526ecb075a08c4a082355020166c7fe13ae27Author: Dan Williams <[email protected]> Date: Fri Jul 3 23:54:35 2020 -0700CodingStyle: Inclusive Terminology
That commit shows the community can take ethical issues into consideration.
The US "inclusiveness" ethical issue was instrumental to the Linux Foundation's marketing and to the narrations of its largest partners. After all, LF tagline is "Decentralized innovation. Built on trust."
[1] so they need a cheap narrative that make them look trustworthy.
On the other hand, legitimizing any of the several AI issues is a greet concern for the LF members [2] that includes companies such as Google, Meta, Microsoft and Anthropic that are collectively exposed for trillions of dollars over the AI bubble.
It's not that you must be "pro-AI", but if you are not, you will be countered or silenced in every influential technical spaces.
So neither inclusiveness or developers' alienation are relevant ethical issues in this list, just political tools or not.
Linus faithfully serves the interests of his employers, so no argument, either ethical, technical or whatever, really counts here whenever its effects could annoy them.
In fact, he already explained it clearly [3]:
Quoted 4 lines
Linux is not one of those anti-AI projects, and if somebody has issues with that, they can do the open-source thing and fork it.
Or just walk away.
Take this as a wise, friendly, suggestion.
If your goals and interests are not aligned with the goals and interests of Linux Foundation's Platinum and Gold members [2] (and I guess they are not, as several of them are even actively supporting a genocide right now), you should simply devote your skills to projects more aligned with your values and interests.
There are plenty of operating systems that need kernel hackers.
Giacomo
[1] https://www.linuxfoundation.org/
The frustrating part of this situation is how everyone arguing on both sides is right in some way.
1. The tools work, yes. This used to be up for debate until recently, but now it's clear that AI can enhance contributor *and* maintainer productivity in the kernel if used correctly.
2. On the other hand, it is also true that LLMs and derived tools are a comprehensive manifestation of the problems of the industry and there are valid ethical concerns regarding access discrimination, copyright, workload externalization, job loss, etc.
3. However, a "no AI used" policy is unenforcible. Many people would use these tools regardless without announcing it, which is the worse outcome. If we're transparent about our AI usage, then at least everyone is aware and can treat the affected code with the right level of scrutiny.
4. Moreover, a "no AI used" policy isn't the best thing to do technically, as AI has proven to be very useful to catch bugs, review code, and even write some new code. Some critical bugs that we could've caught with AI *will* slip under the radar if we refuse to use those tools, while bad actors will gladly use the newest models to find exploits.
Overall, even though I've been known as a great AI skeptic in the past, I'm with Linus on this issue. *Accepting and embracing AI may not be a desirable thing to do, but the alternative is even worse.*
- August
Quoted 4 lines · August Zeller
2. On the other hand, it is also true that LLMs and derived tools are a comprehensive manifestation of the problems of the industry and there are valid ethical concerns regarding access discrimination, copyright, workload externalization, job loss, etc.
Also, there are multiple ways that LLMs can be used, and questions about access discrimination, copyright, etc. are *different* if what we are talking about vibe coding versus code review.
The original question in this thread was *only* about Sashiko, which is a code review tool. Making general arguments about all LLM use cases is not helpful, and the policies that we might have for reviewing or teseting code might be **very** different compared to vibe coding. For example, copyright concerns simply don't apply.
Can we please avoid conflating all AI use cases? This leads to more heat rather than light.
- Ted
Quoted 18 lines · August Zeller
The frustrating part of this situation is how everyone arguing on both sides is right in some way.
1. The tools work, yes. This used to be up for debate until recently, but now it's clear that AI can enhance contributor *and* maintainer productivity in the kernel if used correctly.
2. On the other hand, it is also true that LLMs and derived tools are a comprehensive manifestation of the problems of the industry and there are valid ethical concerns regarding access discrimination, copyright, workload externalization, job loss, etc.
3. However, a "no AI used" policy is unenforcible. Many people would use these tools regardless without announcing it, which is the worse outcome. If we're transparent about our AI usage, then at least everyone is aware and can treat the affected code with the right level of scrutiny.
Quoted 6 lines
4. Moreover, a "no AI used" policy isn't the best thing to do technically, as AI has proven to be very useful to catch bugs, review code, and even write some new code. Some critical bugs that we could've caught with AI *will* slip under the radar if we refuse to use those tools, while bad actors will gladly use the newest models to find exploits.
I don't think there's much disagreement on all that. I'm not aware of anyone trying to get the kernel to adopt a "no AI" policy.
Quoted 3 lines
Overall, even though I've been known as a great AI skeptic in the past, I'm with Linus on this issue. *Accepting and embracing AI may not be a desirable thing to do, but the alternative is even worse.*
Signature · 3 lines
Regards, Laurent Pinchart
Ihor Solodrai
reviewerQuoted 4 lines · Laurent Pinchart
[...]
I expect maintainers who want to act on sashiko reviews to triage and verify them first before bothering authors, yes.
I can't help but chime in, because I find this opinion triggeringly unreasonable.
As of today, the problem is *not* "thoughtful experts are bombarded with low-quality feedback from llms", even though the experts might feel like that frequently.
The problem is that the mailing list is flooded with slop to varying degree depending on the subsystem. And review by humans, even with powerful AI tools at hand, doesn't scale [1][2].
And the argument "I didn't sign up for AI reviews" is weak. If you've sent a patch to the mailing list, and there are maintainer-sanctioned bot messages in response, you've already opted-in to receive them.
Yes, it is annoying. It's annoying in the same way a dozen nits on your patch from a human reviewer is annoying. But the contributors generally accept this, otherwise their patches don't land.
Your job as a contributor is to make sure the patch is "good enough" to land. Now, with ubiquitous AI tools, "good enough" means *at least* that the AI bots don't find real bugs.
Yes, assessing whether AI report is "real" is work, but it's not reasonable to push this work on already overwhelmed maintainers. And if AI is wrong, again it's the job of the author to convince the maintainers it's wrong.
I set up automated AI code reviews on BPF list using Chris Mason's prompts in the fall last year [3], before sashiko was developed. And originally we were very worried about the quality of the reviews.
Time has showed that we had to be more worried about the average quality of incoming patch instead.
[1] https://lore.kernel.org/bpf/CAADnVQKsM8iOGO3ZL3LgbWigOBBMrGbTYZ_k_Ktz=+cVkvRLXg@mail.gmail.com/
[2] https://lore.kernel.org/all/20260703-vfs-summer-jam-22b2edbbbc44@brauner/
[3] https://lore.kernel.org/all/[email protected]/
Quoted 6 lines
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
Quoted 9 lines · Ihor Solodrai
Quoted 4 lines · Laurent Pinchart
[...]
I expect maintainers who want to act on sashiko reviews to triage and verify them first before bothering authors, yes.
I can't help but chime in, because I find this opinion triggeringly unreasonable.
Quoted 7 lines
As of today, the problem is *not* "thoughtful experts are bombarded with low-quality feedback from llms", even though the experts might feel like that frequently.
The problem is that the mailing list is flooded with slop to varying degree depending on the subsystem. And review by humans, even with powerful AI tools at hand, doesn't scale [1][2].
I certainly agree with you that this is a large problem. I don't think we have a single problem though, but I can understand people who consider the problem you're discribing as more urgent to address.
Quoted 3 lines
And the argument "I didn't sign up for AI reviews" is weak. If you've sent a patch to the mailing list, and there are maintainer-sanctioned bot messages in response, you've already opted-in to receive them.
We're enabling bots on mailing lists that people are already subscribed to. But I don't think that's a very important argument here.
Quoted 2 lines
Yes, it is annoying. It's annoying in the same way a dozen nits on your patch from a human reviewer is annoying.
That I strongly disagree with. A humain reviewer sending a review with dozens of nits usually doesn't annoy me, and doesn't make me feel diminished as a human.
Quoted 11 lines
But the contributors
generally accept this, otherwise their patches don't land.Your job as a contributor is to make sure the patch is "good enough" to land. Now, with ubiquitous AI tools, "good enough" means *at least* that the AI bots don't find real bugs.
Yes, assessing whether AI report is "real" is work, but it's not reasonable to push this work on already overwhelmed maintainers. And if AI is wrong, again it's the job of the author to convince the maintainers it's wrong.
We disagree on this as well. This would force contributors to constantly justify their value against a machine that is known to produce a non-negligible quantity of nonsense. Furthermore, if those generative AI tools are as good as their supporters claim, the time they free for maintainers should outweight the need workload to triage the comments.
Quoted 16 lines
I set up automated AI code reviews on BPF list using Chris Mason's prompts in the fall last year [3], before sashiko was developed. And originally we were very worried about the quality of the reviews.
Time has showed that we had to be more worried about the average quality of incoming patch instead.
[1] https://lore.kernel.org/bpf/CAADnVQKsM8iOGO3ZL3LgbWigOBBMrGbTYZ_k_Ktz=+cVkvRLXg@mail.gmail.com/
[2] https://lore.kernel.org/all/20260703-vfs-summer-jam-22b2edbbbc44@brauner/
[3] https://lore.kernel.org/all/[email protected]/Quoted 5 lines
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
Signature · 3 lines
Regards, Laurent Pinchart
Ihor Solodrai
reviewerQuoted 4 lines · Laurent Pinchart
Quoted 3 lines · Ihor Solodrai
Quoted 1 line · Laurent Pinchart
[...]
Quoted 8 lines
Quoted 4 lines
Yes, assessing whether AI report is "real" is work, but it's not reasonable to push this work on already overwhelmed maintainers. And if AI is wrong, again it's the job of the author to convince the maintainers it's wrong.
We disagree on this as well. This would force contributors to constantly justify their value against a machine that is known to produce a non-negligible quantity of nonsense.
I know what you mean and I can relate. Going through walls of AI-generated paragraphs is not fun, to put it lightly.
However it seems that you are suggesting to simply delegate this work to maintainers, and I very much disagree with that approach (even though I'm not a maintainer myself).
I hope you're not saying "let's just not use AI", because that ship has sailed a while ago.
And if automated AI reviews are there, someone has to do the triage. AI can do the triage itself only to a limited degree. For example, there are instructions in review-prompts where AI checks whether an issue has already been discussed. But it will never be perfect.
I think it makes much more sense for the author of the patch to do the triage, as they have the best context of the work, and they are usually the most invested in their patch being merged in.
Quoted 3 lines
Furthermore, if those generative AI
tools are as good as their supporters claim, the time they free for maintainers should outweight the need workload to triage the comments.
Even if the AI tools were ~perfect with respect to code review, I think people would still be signing off patches and taking responsibility for them.
An imaginary perfect AI reviewer that maintainer can trust to land code without looking at it would essentially become an AI maintainer. Independent of whether you think it's possible, it hasn't happened yet, so we have to deal with imperfect AI in the meanwhile.
Quoted 17 lines
Quoted 16 lines
Quoted 1 line
I set up automated AI code reviews on BPF list using Chris Mason's
prompts in the fall last year [3], before sashiko was developed. And originally we were very worried about the quality of the reviews.
Time has showed that we had to be more worried about the average quality of incoming patch instead.
[1] https://lore.kernel.org/bpf/CAADnVQKsM8iOGO3ZL3LgbWigOBBMrGbTYZ_k_Ktz=+cVkvRLXg@mail.gmail.com/
[2] https://lore.kernel.org/all/20260703-vfs-summer-jam-22b2edbbbc44@brauner/
[3] https://lore.kernel.org/all/[email protected]/Quoted 5 lines
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
Quoted 12 lines · Ihor Solodrai
Quoted 10 lines · Laurent Pinchart
Quoted 4 lines · Ihor Solodrai
Yes, assessing whether AI report is "real" is work, but it's not reasonable to push this work on already overwhelmed maintainers. And if AI is wrong, again it's the job of the author to convince the maintainers it's wrong.
We disagree on this as well. This would force contributors to constantly justify their value against a machine that is known to produce a non-negligible quantity of nonsense.
Quoted 6 lines
I know what you mean and I can relate. Going through walls of AI-generated paragraphs is not fun, to put it lightly.
However it seems that you are suggesting to simply delegate this work to maintainers, and I very much disagree with that approach (even though I'm not a maintainer myself).
This is something that already happens with human written reviews, indeed I have a canned reply for one particular reviewer telling submitters it's OK to ignore them. It goes in both directions - it can be ignoring some issues or postponing them for later, or it can be making sure that there's input from particular people.
Quoted 3 lines
I think it makes much more sense for the author of the patch to do the triage, as they have the best context of the work, and they are usually the most invested in their patch being merged in.
It's not clear cut - untrustworthy tooling often causes problems, I'm fairly sure I'm seeing issues that are the result of submitters getting mislead by LLM reviews in a similar manner to some compiler warnings.
Ihor Solodrai
reviewerQuoted 20 lines · Mark Brown
Quoted 12 lines · Ihor Solodrai
Quoted 10 lines · Laurent Pinchart
Quoted 4 lines · Ihor Solodrai
Yes, assessing whether AI report is "real" is work, but it's not reasonable to push this work on already overwhelmed maintainers. And if AI is wrong, again it's the job of the author to convince the maintainers it's wrong.
We disagree on this as well. This would force contributors to constantly justify their value against a machine that is known to produce a non-negligible quantity of nonsense.
Quoted 6 lines
I know what you mean and I can relate. Going through walls of AI-generated paragraphs is not fun, to put it lightly.
However it seems that you are suggesting to simply delegate this work to maintainers, and I very much disagree with that approach (even though I'm not a maintainer myself).
Quoted 5 lines
This is something that already happens with human written reviews, indeed I have a canned reply for one particular reviewer telling submitters it's OK to ignore them. It goes in both directions - it can be ignoring some issues or postponing them for later, or it can be making sure that there's input from particular people.
My objection is to a suggested expectation for every review to be triaged by maintainers/reviewers *before* it's sent or the author engages with it.
I think the author should be the first one to engage, it's a feedback on their patch after all. And of course reviewers/maintainers are free to jump in whenever they can and feel it's necessary, and they do. Opt-in.
Quoted 8 lines
Quoted 4 lines
I think it makes much more sense for the author of the patch to do the triage, as they have the best context of the work, and they are usually the most invested in their patch being merged in.
It's not clear cut - untrustworthy tooling often causes problems, I'm fairly sure I'm seeing issues that are the result of submitters getting mislead by LLM reviews in a similar manner to some compiler warnings.
Yes, this is a valid point. I'm not arguing automated AI feedback is always good. This is why the triage is needed in the first place.
I think one small thing that may help with this is teaching contributors to not iterate on the revisions too quickly based solely on AI feedback. And also try to iterate with AI reviews off-list first.
But that's marginal. Fundamentally, a human has to read AI feedback on the patch in the end. I don't see a way around it, barring the singularity™.
Quoted 13 lines · Ihor Solodrai
Quoted 11 lines · Mark Brown
Quoted 3 lines · Ihor Solodrai
However it seems that you are suggesting to simply delegate this work to maintainers, and I very much disagree with that approach (even though I'm not a maintainer myself).
This is something that already happens with human written reviews, indeed I have a canned reply for one particular reviewer telling submitters it's OK to ignore them. It goes in both directions - it can be ignoring some issues or postponing them for later, or it can be making sure that there's input from particular people.
Quoted 7 lines
My objection is to a suggested expectation for every review to be triaged by maintainers/reviewers *before* it's sent or the author engages with it.
I think the author should be the first one to engage, it's a feedback on their patch after all. And of course reviewers/maintainers are free to jump in whenever they can and feel it's necessary, and they do. Opt-in.
OTOH I don't really want to have to not only look at whatever random tool is sending reports but also have to check replies from submitters for routine stuff, I already have a perfectly adequate supply of email. What I'm seeing is more at the level where I'm likely to want to provide some additional feedback to people, or where there's a lot of false reports to ignore. If people look themselves and take appropriate action then great, but it's not at the level of the build test bots.
Quoted 14 lines · Ihor Solodrai
Quoted 4 lines · Laurent Pinchart
Quoted 3 lines · Ihor Solodrai
Quoted 1 line · Laurent Pinchart
[...]
Quoted 8 lines
Quoted 4 lines
Yes, assessing whether AI report is "real" is work, but it's not reasonable to push this work on already overwhelmed maintainers. And if AI is wrong, again it's the job of the author to convince the maintainers it's wrong.
We disagree on this as well. This would force contributors to constantly justify their value against a machine that is known to produce a non-negligible quantity of nonsense.
Quoted 5 lines
I know what you mean and I can relate. Going through walls of AI-generated paragraphs is not fun, to put it lightly.
However it seems that you are suggesting to simply delegate this work to maintainers,
For authors who object to generative AI, yes. And most likely for junior developers too, see below.
Quoted 2 lines
and I very much disagree with that approach (even
though I'm not a maintainer myself).
I had noticed that :-)
Quoted 2 lines
I hope you're not saying "let's just not use AI", because that ship has sailed a while ago.
For the time being I'm not seeing this as a viable option in any way, so I'm not calling for it.
Quoted 9 lines
And if automated AI reviews are there, someone has to do the triage. AI can do the triage itself only to a limited degree. For example, there are instructions in review-prompts where AI checks whether an issue has already been discussed. But it will never be perfect.
I think it makes much more sense for the author of the patch to do the triage, as they have the best context of the work, and they are usually the most invested in their patch being merged in.
The discussion regarding enabling sashiko for the linux-media mailing list started with the question of whether or not authors should be CC'ed. This came from a consideration on the impact of false positives and other hallucinations on junior developers. They may have the best context of the work, but they are also most at risk of not questioning the validity of the reviews. A one-size-fits-them-all approach may not be good, which is why I think some sort of opt-in option could address many concerns. I don't expect immediate and universal enthousiasm though.
Quoted 7 lines
Quoted 3 lines
Furthermore, if those generative AI
tools are as good as their supporters claim, the time they free for maintainers should outweight the need workload to triage the comments.Even if the AI tools were ~perfect with respect to code review, I think people would still be signing off patches and taking responsibility for them.
My comment wasn't about signing off patches. I was questioning whether the time that sashiko saves for a maintainer is smaller, similar, or larger than the time it takes to triage the comments. If the tool saves maintainers from having to review some of the code, or from considering some classes of problems in their reviews, would triaging the comments come even close to the time saved ?
Quoted 21 lines
An imaginary perfect AI reviewer that maintainer can trust to land code without looking at it would essentially become an AI maintainer. Independent of whether you think it's possible, it hasn't happened yet, so we have to deal with imperfect AI in the meanwhile.
Quoted 16 lines
Quoted 16 lines
Quoted 1 line
I set up automated AI code reviews on BPF list using Chris Mason's
prompts in the fall last year [3], before sashiko was developed. And originally we were very worried about the quality of the reviews.
Time has showed that we had to be more worried about the average quality of incoming patch instead.
[1] https://lore.kernel.org/bpf/CAADnVQKsM8iOGO3ZL3LgbWigOBBMrGbTYZ_k_Ktz=+cVkvRLXg@mail.gmail.com/
[2] https://lore.kernel.org/all/20260703-vfs-summer-jam-22b2edbbbc44@brauner/
[3] https://lore.kernel.org/all/[email protected]/Quoted 5 lines
I believe we should
follow the first two recommendations of the Software Freedom Conservancy on using LLM-backed generative AI systems for FOSS contributions ([1]).[1] https://sfconservancy.org/llm-gen-ai/llm-backed-generative-ai-recommendations.html
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 2 lines · Laurent Pinchart
This came from a consideration on the impact of false positives and other hallucinations on junior developers.
You keep claiming that there is an awful lot of false positives and other hallucinations. That's an assertion that needs to be tested to make sure that we're not relying on a few pieces of anecdata. How does this compare with false positives and bogus recommendations from certain human reviewers?
After all, I can think of at *least* one human reviewer whose reviews are far worse than Sashiko's in false positives. That might or might not be the same person as the one Mark has said that he has a stock e-mail reply telling a junior developer that they should be free to ignore reviews from that particular human being. :-)
Each maintainer can decide how much they trust Shashiko reviews. At least for my subsystem, I haven't seen the hallucionations that you are continually citing, certainly not as a common case. I will note that even experienced human reviewers have occasionally flagged an issue, only to say, "my bad, you're right, it's fine" after a discussion with the patch author. And that's OK. When a human being makes a false positive criticism, no one responds with "I am feeling demeaned as a human being!" Perhaps we should be giving tool-generated reviews (whether it is via checkpatch or Sashiko) with a similar level of grace?
At least with tool-generated reviews, we can send bug reports asking that the tool can be improved. At least with one particular human reviewer that I have in mind, no attempts asking that person to improve their reviews hasn't been helpful.
Bottom line --- if you are making the claim the Sashiko reviews are rife with false positives, all I can say is <<Citation Needed>>.
- Ted
Le mercredi 15 juillet 2026 à 17:13 -0400, Theodore Tso a écrit :
Quoted 9 lines · Laurent Pinchart
Quoted 2 lines
This came from a consideration on the impact of false positives and other hallucinations on junior developers.
You keep claiming that there is an awful lot of false positives and other hallucinations. That's an assertion that needs to be tested to make sure that we're not relying on a few pieces of anecdata. How does this compare with false positives and bogus recommendations from certain human reviewers?
The difference is that it comes with a highly credible explanation, which takes a lot more time to solve. On my end, having spent the evening through quite an unusual amount of build tested AI review fixes, I'm starting to learn the common broken pattern, so I guess I'll get better at filtering.
In V4L2 m2m notably, there is a "job" in the background, which allow to safely (at least this is the theory) chain up work, and synchronize against pending work. But Sashiko (and other AI) seems to not get it and state with confidence and long explanation that the drivers are racy and should do X/Y/Z more on top (and never blames the framework).
This is why I recommended not forwarding the reviews to the linux media list just yet during the summit. Now, the tricky part will be to find time to try and help narrow this down, I never checked the implementation, but I suppose you can add more layers of prompts to force into looking deeper ?
Quoted 6 lines
After all, I can think of at *least* one human reviewer whose reviews are far worse than Sashiko's in false positives. That might or might not be the same person as the one Mark has said that he has a stock e-mail reply telling a junior developer that they should be free to ignore reviews from that particular human being. :-)
Hopefully I'm not in that list. We all make that mistake of being convincing in the wrong direction from time to time, with the difference that when we do, we usually offer some help, and try to be kind after that.
Quoted 11 lines
Each maintainer can decide how much they trust Shashiko reviews. At least for my subsystem, I haven't seen the hallucionations that you are continually citing, certainly not as a common case. I will note that even experienced human reviewers have occasionally flagged an issue, only to say, "my bad, you're right, it's fine" after a discussion with the patch author. And that's OK. When a human being makes a false positive criticism, no one responds with "I am feeling demeaned as a human being!" Perhaps we should be giving tool-generated reviews (whether it is via checkpatch or Sashiko) with a similar level of grace?
I'm not sure I'd call it an hallucination, it does looks racy on the surface. The tool simply lack bit of specialization. Its also something we observe with reference passing in GStreamer project, where the AI does a perfect job in Rust, where this is explicit in the language, and fail miserably in C where its all about knowing the conventions (both when reviewing and coding).
Quoted 5 lines
At least with tool-generated reviews, we can send bug reports asking that the tool can be improved. At least with one particular human reviewer that I have in mind, no attempts asking that person to improve their reviews hasn't been helpful.
And yes, I'd rather improve the tool then kill it. For me, I seconded the decision to not send emails to the linux media list, so we could gain some time. As its obvious that once its more visible, we'll start getting more and more of the build tested fix based on AI report made by people that don't even own the hardware to test their changes and are likely just interested in adding their name in the changelog.
Quoted 3 lines
Bottom line --- if you are making the claim the Sashiko reviews are rife with false positives, all I can say is <<Citation Needed>>.
cheers,
Nicolas
Quoted 6 lines · Nicolas Dufresne
In V4L2 m2m notably, there is a "job" in the background, which allow to safely (at least this is the theory) chain up work, and synchronize against pending work. But Sashiko (and other AI) seems to not get it and state with confidence and long explanation that the drivers are racy and should do X/Y/Z more on top (and never blames the framework).
Is there actually a race which is allowed by the framework? Or is Sashiko's proposed race actually not possible?
Or is it a case where it actually *is* racy, but it's something we really don't care about? I've seen this happen with KCSAN where technically it really *is* a data race, but it's actually not important --- so we just have to mark it with the data_race() macro[1].
[1] https://docs.kernel.org/dev-tools/lkmm/docs/access-marking.html
This sort of thing can happen any time we introduce a new tool, whether it's KCSAN or lockdep. It's not necesarily unique to AI reviews. In both AI and non-AI tools, we can have developers who fix the problem in the wrong way, or where the fix actually makes things worse than the putative "bug".
Quoted 5 lines
This is why I recommended not forwarding the reviews to the linux media list just yet during the summit. Now, the tricky part will be to find time to try and help narrow this down, I never checked the implementation, but I suppose you can add more layers of prompts to force into looking deeper ?
Has a bug been filed with the Shashiko folks? I can imagine any number of solutions, including adding comments in the source, or some kind of marker much like the data_race() macro to shut up KCSAN warnings, or __attribute__((unused)) to shut up gcc or Clang warnings. Yet another solution might be to add some kind of a AGENTS.md file in the explains why a particular construct is safe. Personally, I consider it to be the less desirable solution, since having something inline in the sources is likely to get out of sync with future code changes, and having the annotation in the sources will hopefully be useful to humans, not just AI bots.
But the exact solution is going to be very specific exact warning and why the AI bot thinks there is a problem when it really isn't.
- Ted
P.S. There was a recent thread[1] where using Clang's context analysis resulted in a false positive, and I think it's instructive to see how it was handled compared to false positives from Sashiko. We had a discussion, and the result was two pull requests to LLVM to avoid the false positive. There was no complaints about how the false positive somehow was demeaning to our humanity, or that we should be accomodate those people who want to ban the use of static analyzers. There is something about AI that seems to trigger a different sort of energy, for better or for worse.
Quoted 16 lines · On Wed, 15 Jul 2026 23:53:55 -0400 "Theodore Tso" <[email protected]> wrote:
Quoted 6 lines · Nicolas Dufresne
In V4L2 m2m notably, there is a "job" in the background, which allow to safely (at least this is the theory) chain up work, and synchronize against pending work. But Sashiko (and other AI) seems to not get it and state with confidence and long explanation that the drivers are racy and should do X/Y/Z more on top (and never blames the framework).
Is there actually a race which is allowed by the framework? Or is Sashiko's proposed race actually not possible?
Or is it a case where it actually *is* racy, but it's something we really don't care about? I've seen this happen with KCSAN where technically it really *is* a data race, but it's actually not important --- so we just have to mark it with the
data_race()macro[1].
Quoted 4 lines
[1] https://docs.kernel.org/dev-tools/lkmm/docs/access-marking.html
This sort of thing can happen any time we introduce a new tool, whether it's KCSAN or lockdep.
Lockdep warnings are particularly tricky and hard to fix. We did have false-positive lockdep warnings ("hallucinations") in the past at subsystem level, which took years and a lot of work to find better ways to fix them.
Quoted 4 lines
It's not necesarily unique to AI
reviews. In both AI and non-AI tools, we can have developers who fix the problem in the wrong way, or where the fix actually makes things worse than the putative "bug".
Very true.
Quoted 17 lines
Quoted 5 lines
This is why I recommended not forwarding the reviews to the linux media list just yet during the summit. Now, the tricky part will be to find time to try and help narrow this down, I never checked the implementation, but I suppose you can add more layers of prompts to force into looking deeper ?
Has a bug been filed with the Shashiko folks? I can imagine any number of solutions, including adding comments in the source, or some kind of marker much like the
data_race()macro to shut up KCSAN warnings, or __attribute__((unused)) to shut up gcc or Clang warnings. Yet another solution might be to add some kind of a AGENTS.md file in the explains why a particular construct is safe. Personally, I consider it to be the less desirable solution, since having something inline in the sources is likely to get out of sync with future code changes, and having the annotation in the sources will hopefully be useful to humans, not just AI bots.
Quoted 2 lines
But the exact solution is going to be very specific exact warning and why the AI bot thinks there is a problem when it really isn't.
Agreed.
Just like any tool, LLM can produce very wrong or very good results depending on how one uses it. I'm pretty much convinced that media needs a custom set of prompts to avoid it to report false positives and to make it point things that are more relevant to us.
Quoted 13 lines
- Ted
P.S. There was a recent thread[1] where using Clang's context analysis resulted in a false positive, and I think it's instructive to see how it was handled compared to false positives from Sashiko. We had a discussion, and the result was two pull requests to LLVM to avoid the false positive. There was no complaints about how the false positive somehow was demeaning to our humanity, or that we should be accomodate those people who want to ban the use of static analyzers. There is something about AI that seems to trigger a different sort of energy, for better or for worse.
Quoted 2 lines
Thanks,
Mauro
Le mercredi 15 juillet 2026 à 23:53 -0400, Theodore Tso a écrit :
Quoted 10 lines · Nicolas Dufresne
Quoted 6 lines
In V4L2 m2m notably, there is a "job" in the background, which allow to safely (at least this is the theory) chain up work, and synchronize against pending work. But Sashiko (and other AI) seems to not get it and state with confidence and long explanation that the drivers are racy and should do X/Y/Z more on top (and never blames the framework).
Is there actually a race which is allowed by the framework? Or is Sashiko's proposed race actually not possible?
Not that I'm aware of, as long as the driver follow the conventions. A typical occurrence of this is when Sashiko suggest that you should do an extra worker cancel after streamoff. The framework already ensure, through a job wait mechanism, that there is no more active tasks. This allow chaining this work across workers, and one really done with the task, the driver will call a function to finish the job.
Though, AI is also fed with code using the framework, but not the jobs. Venus and Iris from Qualcomm just leave the job running, and manually tear down and finish the job on streamoff. So when AI use that as example (or thinking model), they conclude defensive coding is needed. I bet that if Qualcomm Iris/Venus developer where to review other m2m they would provide similar reviews. But they will likely add words that show a certain level of uncertainty, very unlike Sashiko today.
What happens is that developers endup producing defensive code for cases that will never occur, but it can go as far as refactoring and putting in place extra mechanism that are simply duplicate of the existing framework. So we receive more complex code, with convincing comment that does not reflect any real-life scenarios.
Now its not a great mechanism, since its easy to "finish the job" and keep working, which can make the driver code run concurrently with a device_run() from another thread. And for multi-core drivers, its easy to forget that the framework does not protect anything concurrent inside your driver.
Sashiko is just not doing the teaching that is needed for new contributors, or for experienced developers handling slightly different type of HW with this "problematic" framework. So if someone up for designing something better and porting bunch of drivers, that person is very welcome!
Quoted 31 lines
Or is it a case where it actually *is* racy, but it's something we really don't care about? I've seen this happen with KCSAN where technically it really *is* a data race, but it's actually not important --- so we just have to mark it with the
data_race()macro[1].[1] https://docs.kernel.org/dev-tools/lkmm/docs/access-marking.html
This sort of thing can happen any time we introduce a new tool, whether it's KCSAN or lockdep. It's not necesarily unique to AI reviews. In both AI and non-AI tools, we can have developers who fix the problem in the wrong way, or where the fix actually makes things worse than the putative "bug".
Quoted 5 lines
This is why I recommended not forwarding the reviews to the linux media list just yet during the summit. Now, the tricky part will be to find time to try and help narrow this down, I never checked the implementation, but I suppose you can add more layers of prompts to force into looking deeper ?
Has a bug been filed with the Shashiko folks? I can imagine any number of solutions, including adding comments in the source, or some kind of marker much like the
data_race()macro to shut up KCSAN warnings, or __attribute__((unused)) to shut up gcc or Clang warnings. Yet another solution might be to add some kind of a AGENTS.md file in the explains why a particular construct is safe. Personally, I consider it to be the less desirable solution, since having something inline in the sources is likely to get out of sync with future code changes, and having the annotation in the sources will hopefully be useful to humans, not just AI bots.
Quoted 2 lines
But the exact solution is going to be very specific exact warning and why the AI bot thinks there is a problem when it really isn't.
I believe this have to start as a case by case. Perhaps if we could mark and tag these on the web UI, and once we have a good collection we might be able to see clearly. At the minute, its very all over the place, since we are getting some patch witch don't always cross-reference the reports, or may be reviewed by other AI. Its all very unclear and variable where and how the issue was identified in the first place. What we get is code, and sometimes wall of text. We need to organize ourself a bit more and have clear communication in this regard.
For the teaching aspect, that is too complicated for AI at the moment. You want this toned based on the submitter experience. There is judgment to be made.
With AI, I also keep a reserve on how much effort I put to fix things like that, as the models evolve really fast, this work might not be required in the next update.
Nicolas
Quoted 15 lines
- Ted
P.S. There was a recent thread[1] where using Clang's context analysis resulted in a false positive, and I think it's instructive to see how it was handled compared to false positives from Sashiko. We had a discussion, and the result was two pull requests to LLVM to avoid the false positive. There was no complaints about how the false positive somehow was demeaning to our humanity, or that we should be accomodate those people who want to ban the use of static analyzers. There is something about AI that seems to trigger a different sort of energy, for better or for worse.
Quoted 33 lines · Nicolas Dufresne
Le mercredi 15 juillet 2026 à 23:53 -0400, Theodore Tso a écrit :
Quoted 10 lines · Nicolas Dufresne
Quoted 6 lines
In V4L2 m2m notably, there is a "job" in the background, which allow to safely (at least this is the theory) chain up work, and synchronize against pending work. But Sashiko (and other AI) seems to not get it and state with confidence and long explanation that the drivers are racy and should do X/Y/Z more on top (and never blames the framework).
Is there actually a race which is allowed by the framework? Or is Sashiko's proposed race actually not possible?
Not that I'm aware of, as long as the driver follow the conventions. A typical occurrence of this is when Sashiko suggest that you should do an extra worker cancel after streamoff. The framework already ensure, through a job wait mechanism, that there is no more active tasks. This allow chaining this work across workers, and one really done with the task, the driver will call a function to finish the job.
Though, AI is also fed with code using the framework, but not the jobs. Venus and Iris from Qualcomm just leave the job running, and manually tear down and finish the job on streamoff. So when AI use that as example (or thinking model), they conclude defensive coding is needed. I bet that if Qualcomm Iris/Venus developer where to review other m2m they would provide similar reviews. But they will likely add words that show a certain level of uncertainty, very unlike Sashiko today.
What happens is that developers endup producing defensive code for cases that will never occur, but it can go as far as refactoring and putting in place extra mechanism that are simply duplicate of the existing framework. So we receive more complex code, with convincing comment that does not reflect any real-life scenarios.
Quoted 8 lines
Now its not a great mechanism, since its easy to "finish the job" and keep working, which can make the driver code run concurrently with a
device_run()from another thread. And for multi-core drivers, its easy to forget that the framework does not protect anything concurrent inside your driver.Sashiko is just not doing the teaching that is needed for new contributors, or for experienced developers handling slightly different type of HW with this "problematic" framework.
So I think here you need to teach Sashiko a bit. Submit a patch to
https://github.com/masoncl/review-prompts that creates kernel/subsystem/media.md and lists all fine points of the APIs and common pitfalls that driver writers are often fall into. That will steer Sashiko away from suggesting hallucinated or impossible to happen scenarios.
Thanks.
Signature · 1 line
Dmitry
Hi Ted,
Quoting Theodore Tso (2026-07-16 02:43:39)
Quoted 10 lines · Laurent Pinchart
Quoted 2 lines
This came from a consideration on the impact of false positives and other hallucinations on junior developers.
You keep claiming that there is an awful lot of false positives and other hallucinations. That's an assertion that needs to be tested to make sure that we're not relying on a few pieces of anecdata. How does this compare with false positives and bogus recommendations from certain human reviewers?
Quoted 6 lines
After all, I can think of at *least* one human reviewer whose reviews are far worse than Sashiko's in false positives. That might or might not be the same person as the one Mark has said that he has a stock e-mail reply telling a junior developer that they should be free to ignore reviews from that particular human being. :-)
That's actually a point against Sashiko. I can maintain a mental score of different humans, their past review comments and behaviour, and other contextual things like the time of day of their response.
It's really hard to do that with a bot like Sashiko, which can show two extremes (even in the same review):
1. Find insane(ly good) security bugs that other humans missed
2. Hallucinate code that doesn't exist, or give false positives goose-chases [1][2] that make sense if you read the code like prose, but miss key details or context
Which makes me extra cautious and thorough when going through LLM generated reviews compared to a human reviewer I trust.
Later in this thread you've equated Sashiko to static-analyzer tools instead of humans (which is a bit convenient).
IMO false positives are possible everywhere, but LLMs are unpredictable in a very different way compared to static-analysis tools *especially* because they can be quite good at finding some issues and are non-deterministic.
I can understand the appeal of using them to find security bugs or as extra "eye balls to make all bugs shallow". And I am not advocating AI as bad or to ban it. But I do think usage of LLMs through Sashiko may give us free reviews, but require brand new work of reviewing the reviews. And this new work will be a burden on experienced folks, not newcomers, who will simply believe the LLM output because it is (or sounds) smarter than them.
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
See the pm_rumtime_put() suggestions above. Some people started giving the same review comments after possibly seeing Sashiko comments.
But on deeper inspection it turned out to be a false-positive:
lore.kernel.org/all/178080367434.9570.8101421417305606672@freya
My point isn't that static-analysis tools can't make the same mistake, but that they're open source and fixable in a way that current architecture of LLM models isn't in general, other than giving it an ever-increasing prompt and hoping the random-number generator gods bless me when I need them to.
Thanks,
Jai
Quoted 11 lines
Each maintainer can decide how much they trust Shashiko reviews. At least for my subsystem, I haven't seen the hallucionations that you are continually citing, certainly not as a common case. I will note that even experienced human reviewers have occasionally flagged an issue, only to say, "my bad, you're right, it's fine" after a discussion with the patch author. And that's OK. When a human being makes a false positive criticism, no one responds with "I am feeling demeaned as a human being!" Perhaps we should be giving tool-generated reviews (whether it is via checkpatch or Sashiko) with a similar level of grace?
Quoted 8 lines
At least with tool-generated reviews, we can send bug reports asking that the tool can be improved. At least with one particular human reviewer that I have in mind, no attempts asking that person to improve their reviews hasn't been helpful.
Bottom line --- if you are making the claim the Sashiko reviews are rife with false positives, all I can say is <<Citation Needed>>.
PS: There is a separate issue of how LF is advocating closed-weights paid models trained on public data, just because it is free (as in beer) today for *them* because they're a big organization. That demotivates a lot of people (including me) who like working on open source projects because they're open to inspect and tinker with.
Unfortunately if the "my way or the highway" approach is pushed too much, the kernel might end up with a lot of free Gemini tokens but not many enthusiastic humans to use them :-)
I've personally stopped using closed-weights model for anything, but somehow now required to interact with one while working on the biggest open source project in the world?? Maybe LF hasn't gotten the memo on how good the open-weights models are these days, so I'll stop my whining here and wait for a few months ;-)
Quoted 2 lines
- Ted
Quoted 3 lines · Jai Luthra
IMO false positives are possible everywhere, but LLMs are unpredictable in a very different way compared to static-analysis tools *especially* because they can be quite good at finding some issues and are non-deterministic.
Syzbot reports (whether it is of a lockdep or WARN spat) are also non-determinstic. Even when it claims to have a reproducer, the reproducer is not neecessarily reliable. I think the difference is that we know what to expect with syzbot, and LLM reviews are new.
And as others have recently pointed out, there is a combination of very deep subtle, real bugs that humans would not or have not discovered --- and at the same time, hallucinations that aren't real. So it's been hard to calibrate whether or not a particular report from Sashiko is valid or not. But this is nothing new, and I would claim that it's not necessarily unique to LLM's.
Quoted 6 lines
I can understand the appeal of using them to find security bugs or as extra "eye balls to make all bugs shallow". And I am not advocating AI as bad or to ban it. But I do think usage of LLMs through Sashiko may give us free reviews, but require brand new work of reviewing the reviews. And this new work will be a burden on experienced folks, not newcomers, who will simply believe the LLM output because it is (or sounds) smarter than them.
Syzbot and oss-fuzz has been an extra burden on us as well. I suspect how much each tool impacts each subsystem varies, but I've had *way* more syzbot false positives (e.g., reports that don't conform to our threat models, such as reproducers using root privileges to modify the loop device out from under a file system being reported as a "security bug") than with Sashiko. But it seems pretty clear that each subsystem's experience has had different experiences with differnt tools.
Quoted 4 lines
My point isn't that static-analysis tools can't make the same mistake, but that they're open source and fixable in a way that current architecture of LLM models isn't in general, other than giving it an ever-increasing prompt and hoping the random-number generator gods bless me when I need them to.
Sashiko is open source as well, and there are a number of ways of fixing this, including adding annotations to the source code, etc.
Sure, figuring out prompts is tricky, but I'd argue so is making changes to Clang for its context analysis. Fortunately, there are people who are smarter than me in terms of their Clang-fu who have been improving Clang. Similarly, Roman and his team are working on improving Sashiko. I don't think anyone has said that kernel developers are responsible for changing the prompts (or changing syzbot, Coverity, etc.)
Cheers,
- Ted
Quoted 10 lines · Laurent Pinchart
Quoted 4 lines
Yes, assessing whether AI report is "real" is work, but it's not reasonable to push this work on already overwhelmed maintainers. And if AI is wrong, again it's the job of the author to convince the maintainers it's wrong.
We disagree on this as well. This would force contributors to constantly justify their value against a machine that is known to produce a non-negligible quantity of nonsense. Furthermore, if those generative AI tools are as good as their supporters claim, the time they free for maintainers should outweight the need workload to triage the comments.
I feel Sashiko and this whole AI world has created alot more work. It is not saving time at all. Now I have to go and read every Sashiko report to see if there is something important that normal review missed. I have fix all the drive by 'this is already broken' stuff it finds. We get way more patches than we did before. Now *everything* has to be looked at more skeptically if came from some AI slop. I get crazy real security reports that need special hand holding now that we never got before.
Even on the submitting side now I have to run patches through all kinds of AI tools to have a solid chance to navigate the new guantlet upstream.
We aren't saving time, or creating less work. My hope is we are creating better quality, higher security and less bugs.
Jason
Quoted 12 lines · Jason Gunthorpe
Quoted 10 lines · Laurent Pinchart
Quoted 4 lines
Yes, assessing whether AI report is "real" is work, but it's not reasonable to push this work on already overwhelmed maintainers. And if AI is wrong, again it's the job of the author to convince the maintainers it's wrong.
We disagree on this as well. This would force contributors to constantly justify their value against a machine that is known to produce a non-negligible quantity of nonsense. Furthermore, if those generative AI tools are as good as their supporters claim, the time they free for maintainers should outweight the need workload to triage the comments.
Quoted 8 lines
I feel Sashiko and this whole AI world has created alot more work. It is not saving time at all. Now I have to go and read every Sashiko report to see if there is something important that normal review missed. I have fix all the drive by 'this is already broken' stuff it finds. We get way more patches than we did before. Now *everything* has to be looked at more skeptically if came from some AI slop. I get crazy real security reports that need special hand holding now that we never got before.
I'd even go as far as questioning if the additional work is resulting in less time being spent on changes that would address classes of problems. There are many areas in the kernel where APIs are hard to use correctly. Improvements there (and I know there's ongoing work such as Kees' object allocator functions for instance) may pay off better than spending time discussing about one-time memory leaks in error paths of probe functions.
Quoted 6 lines
Even on the submitting side now I have to run patches through all kinds of AI tools to have a solid chance to navigate the new guantlet upstream.
We aren't saving time, or creating less work. My hope is we are creating better quality, higher security and less bugs.
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 11 lines · Laurent Pinchart
Quoted 8 lines · Jason Gunthorpe
I feel Sashiko and this whole AI world has created alot more work. It is not saving time at all. Now I have to go and read every Sashiko report to see if there is something important that normal review missed. I have fix all the drive by 'this is already broken' stuff it finds. We get way more patches than we did before. Now *everything* has to be looked at more skeptically if came from some AI slop. I get crazy real security reports that need special hand holding now that we never got before.
Quoted 7 lines
I'd even go as far as questioning if the additional work is resulting in less time being spent on changes that would address classes of problems. There are many areas in the kernel where APIs are hard to use correctly. Improvements there (and I know there's ongoing work such as Kees' object allocator functions for instance) may pay off better than spending time discussing about one-time memory leaks in error paths of probe functions.
Yeah, that's been one of the big issues I've noticed with people handling the LLM reviews poorly - people tend to end up with very tactical approachs for issues that are not at all tactical. Which is one of the symptoms of the stuff the LLMs generate themselves.
Quoted 12 lines · Jason Gunthorpe
Quoted 10 lines · Laurent Pinchart
Quoted 4 lines
Yes, assessing whether AI report is "real" is work, but it's not reasonable to push this work on already overwhelmed maintainers. And if AI is wrong, again it's the job of the author to convince the maintainers it's wrong.
We disagree on this as well. This would force contributors to constantly justify their value against a machine that is known to produce a non-negligible quantity of nonsense. Furthermore, if those generative AI tools are as good as their supporters claim, the time they free for maintainers should outweight the need workload to triage the comments.
Quoted 8 lines
I feel Sashiko and this whole AI world has created alot more work. It is not saving time at all. Now I have to go and read every Sashiko report to see if there is something important that normal review missed. I have fix all the drive by 'this is already broken' stuff it finds. We get way more patches than we did before. Now *everything* has to be looked at more skeptically if came from some AI slop. I get crazy real security reports that need special hand holding now that we never got before.
No, we are just becoming aware how awful our code actually is and how may issues have been overlooked by experienced developers and maintainers, not even talking about junior contributors.
So save all these "pre-existing issue" reports in todo/ and go over them when you have a chance.
Quoted 4 lines
Even on the submitting side now I have to run patches through all kinds of AI tools to have a solid chance to navigate the new guantlet upstream.
Yes, I experience the same. But that just shows that we are not perfect and prone to making mistakes.
Quoted 3 lines
We aren't saving time, or creating less work. My hope is we are creating better quality, higher security and less bugs.
I believe we are. Hopefully as we are fixing all these pre-existing issues we will be seeing less of them...
Thanks.
Signature · 1 line
Dmitry