Linux'x New Core MM Tree Ready With Numerous Fixes For "Nasty Long-Standing Bugs"
New to the Linux 7.4 kernel cycle is the Core MM tree as the route for herding some of the core memory management Linux kernel patches to the mainline kernel rather than it all going through Andrew Morton's "MM" tree. As the second pull request from this new kernel tree, a number of fixes were sent out today to address "nasty long-standing bugs" within the kernel...
Linux has introduced a new core memory management tree ahead of the release of version 7.4-rc2, addressing a multitude of long-standing issues. The majority of these fixes are stable-worthy, aimed at resolving persistent problems rather than addressing urgent concerns. While Anthropic reported most of the issues, others emerged during the refinement of proposed solutions and others were discovered on the mailing list.
Key enhancements include:
- Transparent Huge Page (THP) improvements
- Addressing Get User Pages (GUP) vulnerabilities
- Improving Kernel Samepage Merging (KSM)
- Enhancing userfaultfd handling
- Strengthening shared memory (shmem/tmpfs/memfd) protections
- Ensuring proper huge TLB (Translation Lookaside Buffer) management
The primary updates focus on:
- Preventing information leaks and out-of-bounds writes in GUP
- Preventing data loss in various memory management scenarios
- Resolving corruption and reference-counting errors in shared memory and THP mappings
- Fixing memory leaks, deadlocks, and unkillable loops affecting shmem swap handling
- Ensuring execution-seal enforcement for memfd
Additional adjustments are made to memory accounting, quota management, and userfaultfd registration. This comprehensive overhaul aims to bolster Linux's core memory management capabilities, solidifying the platform's reliability for users and developers alike.
Written by urgent.news from Phoronix's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.