Re: [regression] tracing: kmemleak warning in allocate_cmdlines_buffer()

From: Steven Rostedt
Date: Wed Feb 14 2024 - 11:21:07 EST


On Wed, 14 Feb 2024 17:30:40 +0200
Kalle Valo <kvalo@xxxxxxxxxx> wrote:

> Although the patch didn't apply for me as in my tree the functions are
> in kernel/trace/trace.c. I don't know what happened so as a quick hack I
> just manually added the three lines to my version of trace.c. Let me
> know if there's a git tree or branch you would like me to test, I can do
> that easily.

I sent out a v2 that should apply and I added your Tested-by tag. But you
may want to verify that it does indeed still work, as I decided to swap the
order of adding kmemleak_alloc() with the memset(), so it's not exactly the
same.

Thanks,

-- Steve