<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/linux-7-3-rc2-transitions-more-kmalloc-calls-to-the-superior-kmalloc-obj-hzqtjubhr" -->

---
title: Linux 7.3-rc2 Transitions More kmalloc Calls To The...
description: Linux 7.3-rc2 pulls in a tree-wide conversion, run by kernel developer Kees Cook using a Coccinelle script, migrating remaining kmalloc() calls to the newer...
canonical: https://daily.dev/posts/linux-7-3-rc2-transitions-more-kmalloc-calls-to-the-superior-kmalloc-obj-hzqtjubhr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Linux 7.3-rc2 Transitions More kmalloc Calls To The Superior kmalloc_obj | daily.dev
og:description: Linux 7.3-rc2 pulls in a tree-wide conversion, run by kernel developer Kees Cook using a Coccinelle script, migrating remaining kmalloc() calls to the newer...
og:url: https://daily.dev/posts/linux-7-3-rc2-transitions-more-kmalloc-calls-to-the-superior-kmalloc-obj-hzqtjubhr
og:image: https://api.daily.dev/og/posts/hzqTJUbhr.png
og:image:alt: Linux 7.3-rc2 Transitions More kmalloc Calls To The Superior kmalloc_obj
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Linux 7.3-rc2 Transitions More kmalloc Calls To The Superior kmalloc_obj

**[Phoronix](https://daily.dev/sources/phoronix)** · 2 min read · 1 upvotes · 0 comments

## Summary

Linux 7.3-rc2 pulls in a tree-wide conversion, run by kernel developer Kees Cook using a Coccinelle script, migrating remaining kmalloc() calls to the newer kmalloc_obj() family of functions. The change touches hundreds of files and over 600 lines of code. kmalloc_obj(), introduced in Linux 7.0, removes the need for sizeof() and explicit type names, enforces correct assignment types instead of returning void*, and enables internal type introspection that opens the door to future alignment-aware allocation and type-sensitive hardening.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.phoronix.com/news/Linux-7.3-rc2-kmalloc-obj>

## Questions this post answers

### What is kmalloc_obj() in the Linux kernel and how does it differ from kmalloc()?

kmalloc_obj() is a type-aware memory allocation helper introduced in Linux 7.0 that replaces common idioms like kmalloc(sizeof(*ptr), gfp). It eliminates the need for sizeof() and type names, enforces correct assignment types by returning a pointer to the allocated type rather than void*, and enables internal type introspection for future alignment-aware and hardening improvements.

_Kernel developers tracking allocator API changes can follow kmalloc_obj adoption details on daily.dev._

### What changed in the Linux 7.3-rc2 kernel regarding kmalloc calls?

Linux 7.3-rc2 includes a tree-wide merge, run by developer Kees Cook using a Coccinelle-powered script, that converts additional kmalloc() allocations to the kmalloc_obj() family of functions. The change touches hundreds of files and over 600 lines of code, covering kmalloc usage missed in earlier conversion passes since kmalloc_obj was introduced.

_Developers upgrading kernel trees can track allocator refactors like this one on daily.dev._

## Similar posts on daily.dev

- [Linux 7.2 Slab Changes Include More Performance Optimizations](https://daily.dev/posts/linux-7-2-slab-changes-include-more-performance-optimizations-bocjrdbbh) · Phoronix · 0 upvotes · 0 comments
- [Two Very Exciting Memory Management Optimizations Going Into Linux 7.3](https://daily.dev/posts/two-very-exciting-memory-management-optimizations-going-into-linux-7-3-scfdylb6r) · Phoronix · 1 upvotes · 0 comments

---

Tags: [#linux](https://daily.dev/tags/linux), [#c](https://daily.dev/tags/c)

[View this post on daily.dev](https://daily.dev/posts/linux-7-3-rc2-transitions-more-kmalloc-calls-to-the-superior-kmalloc-obj-hzqtjubhr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Linux 7.3-rc2 Transitions More kmalloc Calls To The Superior kmalloc_obj","url":"https://daily.dev/posts/linux-7-3-rc2-transitions-more-kmalloc-calls-to-the-superior-kmalloc-obj-hzqtjubhr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/linux-7-3-rc2-transitions-more-kmalloc-calls-to-the-superior-kmalloc-obj-hzqtjubhr"},"datePublished":"2026-09-06T10:35:00.067Z","dateModified":"2026-10-29T02:14:11.481Z","description":"Linux 7.3-rc2 pulls in a tree-wide conversion, run by kernel developer Kees Cook using a Coccinelle script, migrating remaining kmalloc() calls to the newer...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3a3239d95bedb06fcc52f396b5e15885?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3a3239d95bedb06fcc52f396b5e15885?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Phoronix","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Phoronix","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6a26ba379dd64932830aa0c9803dd7ee","url":"https://daily.dev/sources/phoronix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/linux-7-3-rc2-transitions-more-kmalloc-calls-to-the-superior-kmalloc-obj-hzqtjubhr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux,c","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Phoronix","item":"https://daily.dev/sources/phoronix"},{"@type":"ListItem","position":3,"name":"Linux 7.3-rc2 Transitions More kmalloc Calls To The Superior kmalloc_obj"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/linux-7-3-rc2-transitions-more-kmalloc-calls-to-the-superior-kmalloc-obj-hzqtjubhr#faq","mainEntity":[{"@type":"Question","name":"What is kmalloc_obj() in the Linux kernel and how does it differ from kmalloc()?","acceptedAnswer":{"@type":"Answer","text":"kmalloc_obj() is a type-aware memory allocation helper introduced in Linux 7.0 that replaces common idioms like kmalloc(sizeof(*ptr), gfp). It eliminates the need for sizeof() and type names, enforces correct assignment types by returning a pointer to the allocated type rather than void*, and enables internal type introspection for future alignment-aware and hardening improvements. Kernel developers tracking allocator API changes can follow kmalloc_obj adoption details on daily.dev."}},{"@type":"Question","name":"What changed in the Linux 7.3-rc2 kernel regarding kmalloc calls?","acceptedAnswer":{"@type":"Answer","text":"Linux 7.3-rc2 includes a tree-wide merge, run by developer Kees Cook using a Coccinelle-powered script, that converts additional kmalloc() allocations to the kmalloc_obj() family of functions. The change touches hundreds of files and over 600 lines of code, covering kmalloc usage missed in earlier conversion passes since kmalloc_obj was introduced. Developers upgrading kernel trees can track allocator refactors like this one on daily.dev."}}]}
```

