Thread (6 messages) 6 messages, 2 authors, 2022-11-03

Re: [PATCH v2] ftrace: Fix use-after-free for dynamic ftrace_ops

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2022-11-03 03:24:52
Also in: lkml

On Wed, 2 Nov 2022 23:23:34 -0400
Steven Rostedt [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help