lkml.org 
[lkml]   [2022]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] ftrace: Fix use-after-free for dynamic ftrace_ops
From
Date


On 2022/11/3 11:24, Steven Rostedt wrote:
> 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.
>
> ;-)
>

Yes. There we have the DYNAMIC check.

> -- Steve
>
> .
>

\
 
 \ /
  Last update: 2022-11-03 04:39    [W:0.149 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site