News for hackers. Stuff that matters.
Re:The kernel has 6 separate ASN.1 parsers by nynx on Friday March 19, 2021 @10:33AM (#26513780)
Okay, yeah that wouldn't go over well. Despite that, i think it makes sense to replace very dangerous sections of the kernel with a safer implementation. Parsers are very difficult to make safe in C.
Re:The kernel has 6 separate ASN.1 parsers by vlovich123 on Friday March 19, 2021 @11:05AM (#26514159)
Actually it went over fine [1]. Rust support in the Linux kernel however is still very nascent, & only suitable for drivers. The reason is that rustc only supports the more popular systems (hence drivers for that system are suitable). There's work ongoing to expand the utility of Rust in the kernel on multiple fronts, but for something like this that's built on all platforms, it might take longer. ASN.1 & other crypto format parsers are ripe for being rewritten in Rust & no one would really blink an eye I think (provided the other pieces of support are available to support all the architectures Linux does).

[1] https://lwn.net/Articles/829858/