The Linux Kernel Working on a Rust-Based Untrusted Data API

Bender1 pts0 comments

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

Articles & Reviews

News Archive

Forums

Premium Ad-Free<br>Contact

Popular Categories

Close

Articles & Reviews

News Archive

Forums

Premium

Contact

Categories

Computers Display Drivers Graphics Cards Linux Gaming Memory Motherboards Processors Software Storage Operating Systems Peripherals

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

Written by Michael Larabel in Linux Kernel on 19 May 2026 at 04:00 AM EDT. 1 Comment

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.

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 validate trait and functions for validating the untrusted data. The initial user of this untrusted data API is the I/O vector "IOV" code.

Greg Kroah-Hartman has queued these Rust API patches into a new "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 Comment

Tweet

OneXPlayer Configuration Driver Destined For Linux 7.2<br>Torvalds: AI Tools Great When Not Causing Unnecessary Pain & Pointless Make-Believe Work<br>Linux 7.1-rc4 Released With Many Fixes, New Documentation For Security/AI Topics<br>Linux Kernel Adds Documentation For What Qualifies As A Security Bug, Responsible AI Use<br>Linux 7.0.8 Released & LTS Kernels Updated For ssh-keysign-pwn<br>Linux's Latest Vulnerability Allows Reading Root-Owned Files By Unprivileged Users

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, LinkedIn, or contacted via MichaelLarabel.com.

OpenZFS 2.4.2 Released With Linux 7.0 Kernel Support, Many Bug Fixes<br>Wine Wayland Driver Merges Pointer Warp Support<br>AMD & Intel Roll Out New Linux Updates For Today's Patch Tuesday<br>FreeBSD 15.2 Will Aim For The Nice KDE Desktop Installation Experience<br>DXVK-NVAPI 0.9.2 Further Improves NVIDIA Integration For Steam Play Linux Gaming<br>Linux Scheduler Work Helping Boost Gaming Performance On Old "Potato" Hardware<br>IBM s390 Is The Latest Architecture Seeing Rust Linux Kernel Support<br>Fwupd 2.1.3 Brings Firmware Updating To Modular Smartphones

Linux 7.2 Will Fix The Intel P-State Driver For The New Bartlett Lake CPUs

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

OneXPlayer Configuration Driver Destined For Linux 7.2

More Intel Open-Source Projects Formally Sunset: BigDL Time Series Toolkit & Others

New Intel Xe Linux Graphics Driver Code Now Cites Multiple Crescent Island SKUs

Linux 7.2 Expected To Introduce "OPENAT2_REGULAR" To Avoid Tricking Secure Programs

Firefox 151 Now Available With Document Picture-in-Picture API

Linux AF_ALG Crypto Code Removing Zero-Copy Support Out Of Security Concerns

Torvalds: AI Tools Great When Not Causing Unnecessary Pain & Pointless Make-Believe Work

AMD's Lemonade SDK For AI Promotes macOS To GA Status, ROCm 7.13 Integrated

Phoronix Premium allows ad-free access to the site, multi-page articles on a single page, and other features while supporting this site's continued operations.

Linux 6.6 LTS To Linux 7.1 Bechmarks: Performance Up 13% On AMD Threadripper Over Three Years

ROCm 7.0.0 vs. ROCm 7.2.3 Performance On The AMD Radeon AI PRO R9700

GCC 16 Produces Faster Binaries Than GCC 15, Competitive Race With LLVM Clang 22

Running Four Intel Graphics Cards Under Linux On Ubuntu 26.04

Redesigned Thelio Major Elevates System76's All-AMD, Open-Source Linux Workstation

The mission at Phoronix since 2004 has centered around enriching the Linux hardware experience. In addition to supporting our site through advertisements, you can help by subscribing to Phoronix Premium. You can also contribute to Phoronix through tips/donations via PayPal or...

linux data kernel untrusted rust phoronix

Related Articles