Google revealed that it supports the development of OS components by the system programming language “Rust” in the “Android open source project”, but also supports adoption in Linux kernel development in order to reduce security vulnerabilities doing. In April, the company explained that Rust would bring a memory-safe guarantee to the “Android” operating system, which has traditionally been written in C and C ++. Instead of rewriting millions of lines of existing code in Rust, the company wants to adopt Rust in the development of new Android code.
What Torvalds thinks of Rust’s whereabouts in Linux, and now we’re looking at the Linux kernel that underlies Android. As ZDNet reported in March, Linux kernel developers mainly write new code in Rust instead of rewriting the entire kernel, which is mostly written in C with over 30 million lines. I’m looking for something to describe. Wedson Almeida Filho of the Android team said, “We believe Rust is ready to join C as a working language for implementing the kernel. The number of potential bugs and security vulnerabilities in privileged code. In addition to helping to reduce it, it will work well with the core kernel to maintain its performance characteristics. ” Filho believes that the density of memory safety bugs in the Linux kernel is low due to the quality of code and code review standards. However, memory safety bugs still occur frequently. The Android security team usually considers kernel vulnerabilities to be severe. Google has developed an example driver called “semaphore” to show the benefits that Rust brings to Linux kernel developers. “We want to emphasize how Rust can help developers. For example, at compile time, you can prevent or significantly reduce the possibility of introducing new bugs, while maintaining flexibility and overhead. Linux kernel developer Miguel Ojeda published an RFC on the Linux mailing list on April 14th with suggestions for a second language for the kernel and Rust. I’m writing about Linux kernel bugs described in. Google’s Android team also participates in the “Rust for Linux” group launched by Ojeda. “We know that incorporating new major languages into the kernel comes with enormous costs and risks,” Ojeda said. “The effort is distributed and the knowledge needed to contribute to parts of the kernel is needed. There is a possibility that it will increase. ” “Most importantly, the introduction of a new language makes it very difficult to replace modules written in that language if support is discontinued later. But even with that in mind, We believe the benefits of using Rust outweigh the costs at this point, “he said. According to the Linux-related website Phoronix, Linus Torvalds, the creator of the Linux kernel, has expressed concern about Rust. “Overall, I don’t hate (the idea),” he said. “It’s fundamentally problematic to panic with a runtime error.” Filho says Rust is new to the kernel, but it has the opportunity to improve processes and documentation. Rust, which just reached version 1.0 in 2015, is gaining in popularity among developers. Launched in February, the Rust Foundation is backed by Amazon Web Services (AWS), Google, Microsoft, and Mozilla. Shane Miller, AWS Senior Engineering Manager, was elected as the foundation’s first chairman.