Re:Simple Linux kernel memory corruption bug can lead to com...
by smoldesu on Wednesday October 20, 2021 @01:41PM
(#28933546)
The best possible outcome of allowing Rust in kernel code is being able to guarantee type safety, memory safety and perfect concurrency where it's applied. Those 3 pain points are where C fails right now, and it's part of the reason why scheduling on Linux feels 'worse' than Windows or even MacOS at times.
Re:Simple Linux kernel memory corruption bug can lead to com...
by ncmncm on Wednesday October 20, 2021 @02:39PM
(#28934386)
I.e., exactly what I just said, but longer.
Re:Simple Linux kernel memory corruption bug can lead to com...
by vlovich123 on Wednesday October 20, 2021 @08:53PM
(#28938899)
I think the point is that as Rust is able to tackle more parts of the kernel, existing code can start to be rewritten in it.
Rust would certainly not help in this instance, because nobody is writing pty handling code in Rust. I.e., using Rust in place B does not help with bugs in place A. Any expectation that Linux would get more secure if some new code were Rust is optimistic to the point of fantasy.
The best possible outcome of allowing Rust in kernel code is that the kernel would not become even more insecure as a result of the added Rust code. That would be good, by itself, even if not what we really want. But whether even that would be achieved in practice is still to be demonstrated.