Re:Linux Kernel Rust Code Sees Its First CVE Vulnerability
by anonnon on Wednesday December 17, 2025 @06:27PM
(#46307044)
> > Rust is is not a "silver bullet" that can solve all security problems, but it sure helps out a lot and will cut out huge swatches of Linux kernel vulnerabilities as it gets used more widely in our codebase.
Same thing is true about modern C++, and as an added bonus, it's far more straightforward to rewrite legacy C code into modern C++ than it is to rewrite it in Rust, and you can do so without compromising existing support for any architectures thanks to GCC (unlike Rust, which relies on LLVM-based rustc), yet there's still a baffling blanket ban on C++ in the kernel. I say "baffling," since it's unjustifiable on technical grounds, but it's easily explained as a mix of Linus by proxy (Greg) being too proud to walk back his infamous vituperative denunciation of the language (even though it's since evolved considerably), and Rust zealots being so numerous, motivated, organized, and also mentally and hormonally unstable enough that it's just not worth the effort to resist them. If C++ developers were the types to threaten self-harm when they didn't get their way, C++ would probably be in the kernel too.
Same thing is true about modern C++, and as an added bonus, it's far more straightforward to rewrite legacy C code into modern C++ than it is to rewrite it in Rust, and you can do so without compromising existing support for any architectures thanks to GCC (unlike Rust, which relies on LLVM-based rustc), yet there's still a baffling blanket ban on C++ in the kernel. I say "baffling," since it's unjustifiable on technical grounds, but it's easily explained as a mix of Linus by proxy (Greg) being too proud to walk back his infamous vituperative denunciation of the language (even though it's since evolved considerably), and Rust zealots being so numerous, motivated, organized, and also mentally and hormonally unstable enough that it's just not worth the effort to resist them. If C++ developers were the types to threaten self-harm when they didn't get their way, C++ would probably be in the kernel too.