IBM Engineer Has Been Exploring Possible Rust Modules For GRUB
Written by Michael Larabel in GNU on 24 September 2021 at 02:50 PM EDT. 10 Comments
GNU --
IBM engineer Daniel Axtens presented at this week's Linux Plumbers Conference on the prospects of using the Rust programming language for creating modules for the GRUB2 boot-loader.

The proposal is not about rewriting GRUB2 in Rust or transitioning it in any large part to Rust, but allowing GRUB2 modules to be created in Rust if so desired by developers. Similar to the growing number of other projects adopting Rust, the motivation is on the prospects of safer code compared to C.

Given the widespread use of GRUB and being an important part of the Linux boot process and the growing security emphasis there from UEFI SecureBoot to measured boot to TrenchBoot and many other secure/trusted-booting efforts, it makes sense to use Rust in some areas.


Daniel's presentation did note that roughly 40% of recent GRUB CVE security vulnerabilities related to memory (un)safety issues.

There still are many open questions and design items as well as whether the GRUB2 development community at large wants to embrace Rust support for modules, but given the trend with other open-source projects, it wouldn't be a surprise to see this materialize.

See the presentation below and the slide deck.

Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week