Messages in this thread | | | Date | Wed, 2 Nov 2022 23:24:37 -0400 | From | Steven Rostedt <> | Subject | Re: [PATCH v2] ftrace: Fix use-after-free for dynamic ftrace_ops |
| |
On Wed, 2 Nov 2022 23:23:34 -0400 Steven Rostedt <rostedt@goodmis.org> wrote:
> I think you misunderstood me. What I was suggesting was to get rid of > the ftrace_enabled check. The DYNAMIC part is most definitely needed. > > if (!command) { > if (ops->flags & FTRACE_OPS_FL_DYNAMIC) > goto out; > return 0; > }
Nevermind, I forgot that the out is before the DYNAMIC check.
;-)
-- Steve
| |