Linux 6.4 Kernel: Key Changes and How to Check Your Version
Linux 6.4 was released on 25 June 2023. See the main changes, such as Intel LAM, per-VMA locks and Rust additions, and how to check your kernel with uname.
The Linux 6.4 kernel was released on Sunday, 25 June 2023. It brought memory-management scalability work, new tracing and Kernel Samepage Merging controls, more Rust infrastructure, and support for several new SoCs. This article summarizes the main changes and shows how to check which kernel your system runs.
About the release
In his announcement, Linus Torvalds said the last week was mostly netfilter fixes, some memory-management reverts and a few tracing updates. He also noted that changes queued for 6.5 already made up most of the mail traffic.
The Kernel Newbies page for 6.4 is very long. I read only the first part of it, so the list below is a selection, not a complete changelog.
Key changes in the Linux 6.4 kernel
- Intel Linear Address Masking (LAM). Userspace can keep metadata in some pointer bits without masking them before use. The page names address sanitizers, JITs and VMs as likely users.
- Unprivileged PSI polling. Non-root tools can poll Pressure Stall Information (PSI).
- user_events. A remote-write ABI for user-space trace events. A program registers an address, a bit to flip when the event is enabled or disabled, and the size of the value.
- Per-process KSM control. Two new
prctloptions enable Kernel Samepage Merging for a whole process and query that setting, instead of relying only onmadvise(). - Per-VMA locks. Some memory operations no longer take
mmap_lock, which improves scalability in a number of scenarios. - Lazy TLB shootdown. Better scalability of context switching between user and kernel threads.
- BPF. Open-coded iterators, kptr RCU, shared ownership for local kptrs, and kptr support in more BPF maps.
- Rust. A
uapicrate,syncLock and Guard abstractions, and the pin-init API for pinned struct initialization. - io_uring. User-mapped provided buffer rings and multishot timeouts.
- Btrfs. The scrub code was rewritten, and directory-entry logging was reworked.
- EXT4. The multi-block allocator tracks inode preallocation extents in a red-black tree instead of a linked list.
- NFSD. Support for RPC-with-TLS (RFC 9289), using kTLS for the record layer.
- Security. SELinux’s runtime disable capability and the
checkreqprotfunctionality were removed. - Memory management. The SLOB allocator was removed.
- Hardware. New SoC and board support includes StarFive JH7110 (RISC-V), Apple M2, Qualcomm IPQ5332 and IPQ9574, and Allwinner T113-s.
Is 6.4 still supported?
Linux 6.4 was not a longterm (LTS) kernel. The kernel.org front page and releases page currently list 6.18, 6.12, 6.6, 6.1, 5.15 and 5.10 as longterm branches, and 6.4 appears on neither. The mainline kernel on the front page is 7.3.
If you still run a 6.4 kernel, check with your distribution whether it maintains its own updates for it. For how kernels get their support status, read how the kernel release cycle works. For currently supported longterm series, see Linux 6.12: key changes and LTS status and Linux 6.18: key changes and LTS status.
Check your running kernel
uname -r prints the release string of the kernel you booted.
uname -rTo see only the major and minor version:
uname -r | cut -d. -f1,2On a system running Linux 6.4 the second command prints:
6.4A container shares the host kernel, so the output reflects the host, not the container image. Distribution kernels may also add a suffix to the version string.
Sources
This article was drafted with AI assistance, fact-checked against the sources listed above and reviewed by a human editor before publication. Spotted an error? See our corrections policy.