Re: [PATCH] mm/slub: Revert "mm: Aggressive slab merging heuristics"

From: Adrian Garcia Casado

Date: Fri Apr 10 2026 - 19:14:39 EST


On Fri, 10 Apr 2026 18:45:22 -0700, Linus Torvalds wrote:
> The so-called "AI optimizations" for SLUB merging are completely broken.
> They ignore hardware cache-line alignment requirements on x86_64, leading
> to silent memory corruption and eventual kernel panics under heavy load.

I can confirm this revert saves the system from the SLUB corruption introduced by the AI-generated patch.

Applied cleanly on top of v7.0-rc7. Compiled and running on Fedora (x86_64).
I have stress-tested the memory allocator with heavy gaming workloads (Euro Truck Simulator 2 via Wine 11 / fsync) which previously triggered the out-of-bounds writes and stuttering.

The system is now rock solid. No kernel panics, no memory corruption, and frametimes are perfectly stable. The Antigravity slop is gone.

Ready for the final 7.0 release tomorrow.

Tested-by: Adrian Garcia Casado <adriangarciacasado42@xxxxxxxxx>