Linus Torvalds on Rust alloc failures
lore.kernel.org
lore.kernel.org
Note that all of this, as far as I know, has been fully addressed. As Linus says in the email, he’s asking questions. The Rust compiler does not insert hidden allocations, for example.
“Of course! What happens here is that we use, for the moment, `alloc`, which is part of the Rust standard library. However, we will be customizing/rewriting `alloc` as needed to customize its types (things like `Box`, `Vec`, etc.) so that we can do things like pass allocation flags, ensure we always have fallible allocations, perhaps reuse some of the kernel data structures, etc.
Cheers, Miguel”