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



Leslie West heads for the sticks, to Providence, Rhode Island and
tries to hide behind a beard. No good. There are still too many people
and too many stares, always taunting, always smirking. He moves to the
outskirts of town. He finds a place to live -- huge mansion, dirt cheap,
caretaker included. He plugs in his guitar and plays as loud as he wants,
day and night, and there's no one to laugh or boo or even look bored.
Nobody's cut the grass in months. What's happened to that caretaker?
What neighborhood people there are start to talk, and what kids there are
start to get curious. A 13 year-old blond with an angelic face misses supper.
Before the summer's end, four more teenagers have disappeared. The senior
class president, Barnard-bound come autumn, tells Mom she's going out to a
movie one night and stays out. The town's up in arms, but just before the
police take action, the kids turn up. They've found a purpose. They go
home for their stuff and tell the folks not to worry but they'll be going
now. They're in a band.
-- Ira Kaplan