Engineering

Linux 7.4-rc5: io_uring DMA-BUF, ext4 iomap & Record-Merge Internals

Linux 7.4-rc5 landed on November 29, 2026 inside the largest merge window in kernel history (~19,700 commits). Here is how io_uring DMA-BUF zero-copy NVMe I/O, ext4 buffered iomap, and 55 BPF hardening fixes reshape the kernel's I/O and stability profile.

By 0xScorPionSon

8 min read

Linux 7.4-rc5: io_uring DMA-BUF, ext4 iomap & Record-Merge Internals

Linux 7.4-rc5 io_uring DMA-BUF and ext4 iomap Kernel I/O Architecture

Executive Summary

On November 29, 2026, Linus Torvalds tagged Linux 7.4-rc5, describing it as "Another huge rc" in a development cycle that already opened with the largest merge window in Linux kernel history at roughly 19,671 to 19,700 commits—surpassing Linux 7.3's prior record of 16,267 (LWN.net, Nov 30, 2026; TecAdmin, Nov 23, 2026). While much of the late-cycle churn stems from AI/LLM-assisted error-path fixes and a controversial ext4 pull request, Linux 7.4 introduces substantial I/O and systems-engineering upgrades: DMA-BUF support in the io_uring I/O path for NVMe block devices up to 4 GB, an opt-in buffered iomap path for ext4, a Rust-only Android Binder driver, and 55 BPF hardening patches in 7.4-rc5 alone (Phoronix, Oct 27, 2026; LWN.net, Nov 30, 2026).

Early benchmarking on a System76 Thelio Prime (AMD Ryzen 7 9800X3D, Samsung 9100 PRO 1TB PCIe Gen4 NVMe, Ubuntu 26.10) comparing Linux 7.3 stable against Linux 7.4 Git shows clear gains in FIO io_uring sequential read/write and random write workloads alongside higher TCP throughput and lower sockperf latency, while CPU-bound workloads like Blender and kernel compilation remain unchanged (Phoronix, Nov 29, 2026).

Evidence Confidence Assessment: Confidence in the commit logs, subsystem changes, and 7.4-rc5 patch counts is high, as they are verified directly against Linus Torvalds' LKML announcement on LWN.net. Confidence in final production performance and stability is partial: Linux 7.4 remains at release candidate 5 (targeting stable release around December 20 or December 27, 2026), and the Phoronix preview article reports directional I/O and networking gains qualitatively without publishing raw MB/s or microsecond tables in the text.


The Bottleneck & Scale Constraints

1. CPU Copy Overhead in Accelerator-to-NVMe I/O

Modern GPU, AI inference, and high-throughput media pipelines routinely stream multi-gigabyte datasets between NVMe storage and device memory. Traditionally, even asynchronous io_uring paths routed block-device data through host CPU-managed memory buffers before transferring them to accelerators, wasting memory bandwidth and CPU cycles on redundant copies (Phoronix, Oct 27, 2026).

2. Divergent Filesystem Buffered I/O Implementations

While XFS and Btrfs already share the kernel's modern iomap infrastructure for buffered I/O, ext4 historically maintained its own older buffered I/O code path. Maintaining parallel filesystem page-cache and extent-mapping logic creates engineering friction and prevents ext4 from automatically inheriting iomap-level optimizations (TecAdmin, Nov 23, 2026).

3. Maintainer Bandwidth Under AI-Generated Patch Volume

Linux 7.4 exposes an operational scaling constraint inside kernel engineering itself: an influx of AI/LLM-assisted bug-fix patches targeting rare error paths. In 7.4-rc5, Torvalds noted there were "a lot of small fixes for error paths etc. Things those LLM's are so good at catching, and that seldom triggers in reality"—while also removing the legacy staging: vme_user driver in part because it had become a recurring magnet for AI-generated bug reports, and adding Willem de Bruijn to networking maintainers to help absorb review load (LWN.net, Nov 30, 2026; Phoronix, Nov 30, 2026).


Inside the Solution: Architecture & Internals

Zero-Copy io_uring With Registered DMA-BUF Buffers

Led by Pavel Begunkov through eleven rounds of patch review, Linux 7.4 adds DMA-BUF support to the io_uring I/O path for raw NVMe PCIe block devices (Phoronix, Oct 27, 2026). Linux's DMA-BUF framework lets distinct drivers—most commonly GPUs, media engines, and NICs—share hardware memory buffers without CPU copies.

In Linux 7.4, files opt in via a new file operation that creates and maps a dmabuf (supporting buffers up to 4 GB in size), passing it through the I/O stack via a new iterator type with request counting, lifetime management, and invalidation hooks. From user space, the dmabuf plugs directly into io_uring's existing registered-buffer model (IORING_OP_READ_FIXED and IORING_OP_WRITE_FIXED):

flowchart LR
    APP["User-Space App / Runtime"] -->|"Submit SQE: IORING_OP_READ_FIXED"| RING["io_uring Ring (Registered dmabuf, up to 4 GB)"]
    RING -->|"New Iterator + Lifetime Tracking"| NVME["NVMe PCIe Block Driver"]
    NVME -->|"Direct Zero-Copy DMA"| DMABUF["Shared DMA-BUF Device Memory (GPU / Accelerator)"]
    NVME -.->|"Bypassed in Registered DMA-BUF Path"| CPU["Host CPU Bounce / Copy Path"]

Late-Cycle Hardening in 7.4-rc5 (io_uring, BPF & Filesystems)

The 7.4-rc5 shortlog illustrates how maintainers are tightening edge cases before stable release (LWN.net, Nov 30, 2026):

  • io_uring & Poll Correctness: Chris Mason and Jens Axboe landed 12 io_uring fixes covering recvmsg retry buffer restoration (cmsg and msg_name), RCU-deferred ring freeing, blocking O_PATH files in io_uring/filetable, and holding timeout_lock across link cancellation. Linus Torvalds also added WQ_FLAG_POLL_EXCLUSIVE so eventpoll and io_uring/poll do not falsely claim strict exclusivity for EPOLLEXCLUSIVE.
  • BPF Verifier & Capability Gates: Alexei Starovoitov merged 55 BPF commits in 7.4-rc5, including CAP_PERFMON enforcement for kfuncs that leak pointers or touch tasks, stream reads, pinned maps with special fields, and insn_array memory access, alongside nospec emissions after stack-writing calls/atomics, arena TLB flushes, and XDP packet-slice bounds checks.
  • Storage & Memory Management: Filipe Manana landed 13 btrfs fixes (covering concurrent sync direct I/O write races and zstd workspace reclaim use-after-free), while Daejun Park and Hamza Mahfooz addressed ext4 fast-commit replay validation and unwritten extent zeroing.
Subsystem / Area Key Change in Linux 7.4 / 7.4-rc5 Engineering Impact
io_uring & Poll DMA-BUF registered buffers (up to 4 GB, NVMe); 12 rc5 fixes + WQ_FLAG_POLL_EXCLUSIVE Eliminates CPU copies for device-backed I/O; hardens recvmsg retry, ring RCU freeing, and EPOLLEXCLUSIVE semantics
ext4 & btrfs Opt-in buffered iomap path in ext4; rc5 fast-commit & selftest fixes; 13 btrfs fixes Unifies ext4 toward iomap; resolves btrfs direct I/O write races and zstd workspace reclaim UAF
BPF & Security 55 BPF commits from Alexei Starovoitov in 7.4-rc5 Enforces CAP_PERFMON gates on kernel-pointer/stream kfuncs, nospec emissions, arena TLB flushes, and XDP slice bounds
Rust & Drivers Android Binder IPC is now Rust-only; staging: vme_user deleted; LLVM Profi disabled for Clang AutoFDO Drops legacy C Binder maintenance; removes unmaintained 1980s VME staging code generating noisy AI reports

Sources: LWN.net (Nov 30, 2026), Phoronix (Nov 30, 2026), Phoronix (Oct 27, 2026), and TecAdmin (Nov 23, 2026).


Verified Results, Benchmarks & Post-Mortem Lessons

Phoronix System76 Thelio Prime I/O & Networking Findings

Testing Linux 7.3 stable against Linux 7.4 Git on a System76 Thelio Prime (Ryzen 7 9800X3D, Samsung 9100 PRO 1TB NVMe, Ubuntu 26.10), Michael Larabel observed a clear split between I/O-bound and CPU-bound workloads (Phoronix, Nov 29, 2026):

  • Storage (io_uring via FIO): Sequential read, sequential write, and random write performance using the io_uring engine all improved noticeably on Linux 7.4 Git compared to Linux 7.3 stable.
  • Networking (xfr, Ethr, Sockperf): Loopback TCP throughput (xfr, Ethr) trended higher alongside lower sockperf latency ping-pong times, consistent with Phoronix's observations on other Linux 7.4 test systems.
  • Compute-Bound Workloads: Pure CPU workloads—including Blender (Junkshop CPU-only), timed Linux kernel defconfig compilation, ClickHouse, PostgreSQL (500 clients, scaling factor 100), Pogocache, and Stockfish—showed no significant performance shift between 7.3 and 7.4 on the Ryzen 7 9800X3D.

Late-Cycle Stability & Driver Friction

Testing 7.4-rc5 also surfaced two practical cautions for engineers evaluating pre-release kernels:

  1. Out-of-Tree GPU Driver Lag & Nouveau GSP Failure: On the Thelio Prime's NVIDIA GeForce RTX 5060 Ti, the proprietary NVIDIA driver did not yet support Linux 7.4 Git, and the open-source Nouveau driver failed to initialize the GPU System Processor (GSP) on both Linux 7.3 and 7.4, requiring nomodeset to boot with display output (Phoronix, Nov 29, 2026).
  2. Late ext4 Churn & Selftest Noise: A large late ext4 pull request (94 commits including ext4 selftest fixes) drew sharp pushback from Linus Torvalds on development-branch hygiene, underscoring why teams should retest ext4 workloads thoroughly before adopting 7.4 in production (LWN.net, Nov 30, 2026).

Practical Takeaways for Your Stack

  1. Pin Production Fleet Plans to Linux 7.3 (Expected LTS) Until 7.4 Stabilizes: Linux 7.4 stable is projected for December 20 or December 27, 2026 (if an rc8 is required), whereas kernel maintainers have pointed to Linux 7.3 as the stable/LTS planning baseline (TecAdmin, Nov 23, 2026).
  2. Evaluate io_uring DMA-BUF for AI/Media NVMe Pipelines: If your inference or media-processing stack copies large tensors or frames between NVMe SSDs and GPU memory, test Linux 7.4's IORING_OP_READ_FIXED / IORING_OP_WRITE_FIXED DMA-BUF path on staging hardware to measure host-memory bandwidth savings.
  3. Audit ext4 iomap Opt-In and Legacy Staging Dependencies: Because ext4 buffered iomap is opt-in and vme_user has been deleted in 7.4-rc5, verify that neither your hardware drivers nor filesystem mount options rely on removed staging interfaces, and run your own FIO/PostgreSQL regression suite before upgrading.
  4. Update BPF & io_uring Tooling: If you run custom eBPF observability or io_uring event loops, review 7.4-rc5's CAP_PERFMON capability checks on kernel-pointer kfuncs and EPOLLEXCLUSIVE / io_uring poll semantics (LWN.net, Nov 30, 2026).

Frequently Asked Questions

What does DMA-BUF support in io_uring actually enable in Linux 7.4? It allows applications to register a hardware-shared dmabuf (up to 4 GB in size) as an io_uring fixed buffer and execute IORING_OP_READ_FIXED or IORING_OP_WRITE_FIXED directly against raw NVMe PCIe block devices, eliminating intermediate host CPU memory copies (Phoronix, Oct 27, 2026).

Why was the Linux 7.4 merge window and 7.4-rc5 unusually large? Linux 7.4-rc1 closed a record merge window of roughly 19,671 to 19,700 commits (up from 16,267 in Linux 7.3), and subsequent release candidates—including 7.4-rc5—remained large due to a surge of AI/LLM-assisted error-path fixes, 55 BPF hardening commits, and ext4 selftest updates (LWN.net, Nov 30, 2026; TecAdmin, Nov 23, 2026).

Does Linux 7.4 improve CPU-bound performance or only I/O and networking? In Phoronix's testing on an AMD Ryzen 7 9800X3D desktop comparing Linux 7.3 stable to Linux 7.4 Git, gains were concentrated in io_uring storage I/O and TCP/sockperf networking, while CPU-only benchmarks such as Blender, kernel compilation, and Stockfish showed no meaningful change (Phoronix, Nov 29, 2026).

When is the final Linux 7.4 kernel expected to release? If the cycle follows the standard seven-RC schedule, Linux 7.4 stable is projected for around December 20, 2026, shifting to December 27, 2026 if an eighth release candidate (rc8) is needed (TecAdmin, Nov 23, 2026; Phoronix, Nov 30, 2026).

Is Rust required to build Linux 7.4, and what happened to Android Binder? Android's Binder IPC driver is now Rust-only in Linux 7.4, meaning systems enabling the Binder driver require Rust toolchain support, while general kernel builds without Rust-dependent drivers continue to compile with standard C toolchains (TecAdmin, Nov 23, 2026).


Sources

  1. LWN.net / Linux Kernel Mailing List (Primary Release Announcement & Shortlog, Nov 30, 2026): Linux 7.4-rc5 by Linus Torvalds — Article
  2. Phoronix (Secondary Kernel Benchmark Report, Nov 29, 2026): Linux 7.4's I/O Performance Gains Shown On The System76 Thelio Prime by Michael Larabel — Article
  3. Phoronix (Secondary Release Coverage, Nov 29–30, 2026): Linux 7.4-rc5 Released: "Another Huge RC" With All The AI Activity by Michael Larabel — Article
  4. Phoronix (Secondary Kernel Storage Internals, Oct 27, 2026): Linux 7.4 Introduces DMA-BUF Support To I/O Path With IO_uring by Michael Larabel — Article
  5. TecAdmin (Secondary Release Preview, Nov 23, 2026): Linux 7.4 Kernel Preview: Record Merge Window, Rust Binder & ext4 iomap — Article

More on Engineering

Tell us what is not working

A thirty-minute call, no deck and no obligation. You will leave with a straight answer about whether this is worth building - including if that answer is no.

Start a project

Direct line

hello@codebumble.net
Dhaka, Bangladesh  :   local timeCalls in English or Bangla