Re: [PATCH 2/2] devres: Provide kmalloc_obj*-style API for devm_kmalloc

From: Danilo Krummrich

Date: Tue Oct 06 2026 - 17:55:27 EST


On 15.09.26 00:32, Kees Cook wrote:
> Mirroring the type-based allocation now in use for the kmalloc family of
> APIs, provide the same for the devm_kmalloc family of APIs. This will
> allow for future plumbing of type information (e.g. alignment) into the
> underlying allocations. This immediately gains type check on return
> values (instead of the prior "void *" return type).
>
> Signed-off-by: Kees Cook <kees@xxxxxxxxxx>
Reviewed-by: Danilo Krummrich <dakr@xxxxxxxxxx>