by kramerger · 4y ago · 0 comments
I think this article is a very good demonstration of why Rust is not a silver bullet. It was created with userspace applications in mind and a system application is an entirely different beats.
Think about it this way: in C it is easy to shoot yourself in the foot. But in kernel space you can easily blow up the entire building.
This bug exists because it's exactly C-style code manipulating buffers using raw pointers without length instead of slices.
Almost nobody thinks Rust is a silver bullet, but eliminating memory-unsafety is an absolute good; the more of it we can get rid of in the kernel, the better off we'll be.