In Linux-Next nucleus branch added code for developing drivers in Rust

In the Linux-Next branch, on the basis of which the release of the Linux kernel 5.13 will be formed, Included Initial set of components for developing device drivers in the RUST language. Separately published Documentation on the use of RUST In the Linux kernel and Example kernel module with character device driver in Rust. The Linux-Next branch usually includes a code ready for adopting in the following cycle of changes in the kernel, but so far I will definitely not be clear whether the RUST support is accepted by Linus Torvaldem in Linux 5.13, since the code has not been reviewed by a wide range of developers.

Support for the development of Linux kernel drivers in the language of Rust was actively discussed last year, including with the participation of Linus Torvalds, which did not exclude such an opportunity. The idea also supported Greg Croa Hartman (Greg Kroah-Hartman), which is responsible for supporting the stable branch of the Linux kernel. Using RUST to develop drivers will allow with minimal efforts to create safe and better drivers who are eliminated from problems such as referring to the memory area after its release, deregistration of zero pointers and output beyond the buffer borders.

/Media reports.