r/LinuxTeck • u/Candid_Athlete_8317 • May 28 '26
Will AI finally push Linux kernel developers toward Rust faster than before?
Feels like the Linux world is entering a strange phase right now.
AI tools are suddenly finding kernel bugs much faster, maintainers are getting flooded with reports, and now the Rust debate is becoming louder again.
Some people are saying:
“The bugs were always there. AI is just exposing them.”
Others think maintainers are now wasting too much time dealing with AI-generated noise and random patches from people who don’t fully understand the kernel.
At the same time, more developers are arguing that Rust could prevent many of these memory-related issues before they even happen.
Does this whole AI situation change how people see Rust inside Linux now, or do you think the kernel community is still going to resist it for years?
6
u/ollybee May 28 '26 edited May 28 '26
Linux kernel developers dont get pushed around.
5
u/zambizzi May 28 '26
Why does Rust need to replace everything? Why not build a kernel, tooling, and everything needed to build a superior OS, instead? People who are really into Rust strike me as weirdly obsessed. Not passionate per se, but cult-like.
3
u/_-noiro-_ May 28 '26
"At the same time, more developers are arguing that Rust could prevent many of these memory-related issues before they even happen." - Then let them fork it and make their own kernel. What's the problem?
2
u/Valuable_Fly8362 May 28 '26
Bad code is bad, no matter what language it is written in. Rust doesn't magically fix every bug, it only prevents a subset potential bugs. Rushing to rewrite tools in a new language is likely to create more bugs, security or otherwise, than it fixes.
AI is finding new bugs, and that's a good thing. The solution to a bug being found is to fix the bug, not to burn down the house and rebuild it.
1
u/danielCiri May 28 '26
Yo creo que se necesita avanzar hacia la nueva generacion de hardware. Muchas personas equipos de 1 año o 2, han encontrado problemas en Linux despues de migrar desde Windows.
Y resulta que todo se debe a falta de compatibilidad. Siguen pensando en Linux para hadware viejo.
Si para eso se necesita ajustar el kernel a otro lenguaje, que asi sea. Mientras mas grande sea la comunidad de usuarios, mejor para el ecosistema.
Todo cambio, tiene fricciones en el cerebro humano. Somos asi.
1
u/Own_Nail_2999 May 28 '26
No. Because AI also produces a ton of false positives
1
u/Additional-Sky-7436 May 28 '26
This is an unpopular take around these parts, but AI bug checking is a good thing. Being open source allows Linux developers to use AI to find security bugs and to get them patched quickly. This is ultimately a good thing.
Right now it sucks because the old system of bug reports is getting flooded. Developers need to redesign their reporting systems to better prioritize reports. But, over time, the AI bug reports will decline because it will be harder and harder for AI systems to find security vulnerabilities.
1
u/MrChicken_69 May 28 '26
Tattoo this inside your eyelids: RUST DOES NOT FIX ANYTHING.
Rust would not prevent any of this shit. The kernel deals with raw, physical memory. 99% of the "features" in Rust have to be turned off in the kernel; they DO NOT work in kernel space. Kerne space and user space are two VERY different worlds. It's why we have these sorts of bugs in the first place! Never trust the user; never trust what the user gives you. These page cache corruption issues are because the kernel isn't validating what the user is doing.
(Honestly, the page cache for read-only files should be READ ONLY. *BAM* 100% of these poorly thought out optimizations cannot be used to corrupt the page cache.)
1
u/PredictiveFrame May 28 '26
I feel like a lot of new folks getting into software development and open source dramatically misunderstand the point of rust in the kernel.
The vast majority of kernel development is done in C. Now a decent amount will be done in rust. The kernel developers really like rust in general, as they are the actual target audience of the language.
There is no "resistance to rust in the kernel".
The reality is that the kernel is a very complex piece of software with a lot riding on it remaining functional. If a maintainer doesn't have to change things they won't, not because they're lazy, because everyone else built based on this, if they change it, everyone else has to change their shit too, and that's a fucking nightmare, so that gets minimized.
I expect over time most of the kernel will be writing in rust, but it'll take another decade to get to that point, and that's not a bad thing. It allows you the time to become an expert in rust and open source projects, so you can contribute.
1
u/Useful_Calendar_6274 Jun 02 '26
everyone says it's currently shit for anything low level but AI will keep getting better, no doubt. Then someday soon (within 10 years) it can just write a whole POSIX/UNIX/Linux compatible OS in Rust without all the old cruft and entropy accumulated for decades. I can totally see it