Re: [PATCH 2/2] perf, ftrace: Fix use-after-free in __ftrace_ops_list_func()
From: Steven Rostedt
Date: Wed Mar 24 2021 - 21:15:41 EST
On Wed, 24 Mar 2021 21:11:23 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> And what you are saying is that we are not getting there, where the
> dynamically allocated perf ops is not set to be DYNAMIC?
>
> That should be set as DYNAMIC if the ops was allocated, and can later
> be freed. This code was written specifically to handle perf.
>
> Thus, NACK on the patch. I want to know exactly what went wrong instead
> of just saying "but the current interface unregister_ftrace_function()
> does not seem to guarantee this", let's actually fix the bug and not just paper over it!
Bah, I forgot to edit the claws-mail shortcut to disable "Ctrl-Enter"
to send the email, and went to hit Ctrl-L (to do the line wrapping) but
accidentally hit Ctrl-Enter instead, and sent this prematurely. And now
I forgot what else I was going to say. Sucks getting old.
-- Steve