Linux Patched For Silent User-Space Data Loss Bug That's Existed Since 2023

Written by Michael Larabel in Linux Kernel on 14 September 2026 at 06:13 AM EDT. 1 Comment
LINUX KERNEL
Being merged after yesterday's Linux 7.3-rc3 release was an important fix for addressing a silent, user-space data loss bug that has existed in the kernel the past three years.

Reported at the beginning of the month was the bug and a small C program to reproduce the issue. If the kernel is running with transparent hugepages (THP) enabled and under cgroup limits, writes that happen after a MADV_FREE call could be completely lost.

This bug isn't hypothetical but has come up in production with at least users of the Polars data analytics library finding production data loss from this kernel bug. Triggering it requires the right mix of transparent hugepage usage, MADV_FREE usage, and heavy memory reclaim pressure. This patch fixes the bug and fortunately amounts to just one line of code changed.

The patch was merged as part of this week's x86/urgent merge. It's also marked for back-porting to the currently supported stable kernel series. The bug was introduced back in July 2023 and present in kernel releases since Linux 6.6.
Related News
About The Author

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.

Popular News This Week