News › linux
By Zayden R., September 6, 2026
The Linux 7.3-rc2 release sees a significant transition as kmalloc calls are converted to kmalloc_obj in over 600 lines of code, enhancing code clarity and future-proofing the kernel.
In a notable development for kernel developers, Linux 7.3-rc2 introduces a sweeping change by transitioning a substantial number of kmalloc calls to the newer kmalloc_obj functions. This change, orchestrated by Linux developer Kees Cook, involves modifying over 600 lines of code across hundreds of files, streamlining memory allocation processes within the kernel.
The kmalloc_obj family of functions, introduced in Linux 7.0, offers several advantages over the traditional kmalloc approach. By eliminating the need for sizeof and type name in memory allocations, these functions provide cleaner syntax and enforce assignment types more strictly, thus not returning a void pointer but a type-specific pointer. This is a solid improvement for developers who value code simplicity and safety.
Cook utilized a Coccinelle-powered script to automate this transition, ensuring that previously unconverted kmalloc usage is now aligned with the newer standard. This move not only simplifies the code but also opens up opportunities for future enhancements such as alignment-aware allocations and additional security hardening.
For those managing Linux systems or developing kernel modules, this update means a more robust framework for memory allocations. The transition could lead to better performance and reduced bugs related to memory mismanagement. As the kernel continues to evolve, such changes underscore the community's commitment to refining and future-proofing Linux.
The implications of this change are technical but significant. Developers should review their codebases for compatibility with the new kmalloc_obj functions and consider adopting similar practices in their projects to stay aligned with upstream developments. This is a proactive step towards a more efficient and secure Linux kernel.