Re: [resend PATCH] coccinelle: Add devm_kmalloc_objs conversion script

From: Kees Cook

Date: Mon Nov 02 2026 - 20:47:40 EST


On Mon, Nov 02, 2026 at 10:09:21AM +0100, Julia Lawall wrote:
> On Mon, 2 Nov 2026, Kees Cook wrote:
> > On November 1, 2026 3:51:53 PM PST, Julia Lawall <julia.lawall@xxxxxxxx> wrote:
> > >
> > >
> > >On Sun, 1 Nov 2026, Joe Perches wrote:
> > >
> > >> Like commit bdc5071d7f7b ("coccinelle: Add kmalloc_objs conversion script")
> > >> with commit 1c7bbaeed110 ("coccinelle: kmalloc_obj: Remove default GFP_KERNEL arg")
> > >>
> > >> Finds and converts sized devm_kmalloc-family of allocations into the typed
> > >> devm_kmalloc_obj-family of allocations.
> > >
> > >Applied
> >
> > Please don't send this. I already did this. See the PR I sent for rc1:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/log/?h=for-linus/v7.4-rc1/devm_kmalloc_obj
>
> Too late.

I don't want the rules duplicated, though. It should be a single set...

--
Kees Cook