News: 0001634555

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

The Linux Kernel Working On A Rust-Based Untrusted Data API

([Linux Kernel] 2 Hours Ago Rust Untrusted Data API)


One of the newest interfaces being worked on for the Rust programming language support within the Linux kernel is an Untrusted Data API for data received into the kernel from user-space.

For further enhancing the security of the Linux kernel from Rust code, an Untrusted Data API has been in development for being able to explicitly mark data received from user-space or other external data. As such data should first be validated/sanitized before making use of it within the kernel to prevent any security issues or bugs, the new API introduces a new wrapper type for marking said data as untrusted.

[1]This patch provides the basic API and documentation that explains this untrusted data API usage and reasoning. Open-source developer Benno Lossin is the one leading the effort on this new API.

In addition, the added is a new [2]validate trait and functions for validating the untrusted data. The initial user of this untrusted data API is the [3]I/O vector "IOV" code .

Greg Kroah-Hartman has queued these Rust API patches into a new [4]"untrusted" branch of driver-core.git . With the addition beginning to make its way into one of these formal code branches, we'll see if this Untrusted Data API is deemed ready and works its way soon into the driver-core next branch soon where it could potentially premiere in the upcoming Linux v7.2 merge window.



[1] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=untrusted&id=3937bad8a8bf2e5d7fc3e11b4ed1aae21df71b02

[2] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=untrusted&id=4de2ce9189dcc45103f39fcc3e55eb1d792cf51b

[3] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=untrusted&id=5c11ce62dbed212b07778355dba1f280f07687db

[4] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/log/?h=untrusted



"OK, now let's look at four dimensions on the blackboard."
-- Dr. Joy