linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] [GIT PULL] ftrace: Add more checks to ignore disabled functions
@ 2016-11-15 14:26 Steven Rostedt
  2016-11-15 14:26 ` [PATCH 1/2] ftrace: Ignore FTRACE_FL_DISABLED while walking dyn_ftrace records Steven Rostedt
  2016-11-15 14:26 ` [PATCH 2/2] ftrace: Add more checks for FTRACE_FL_DISABLED in processing ip records Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Steven Rostedt @ 2016-11-15 14:26 UTC (permalink / raw)
  To: linux-kernel
  Cc: Linus Torvalds, Ingo Molnar, Andrew Morton, Alexei Starovoitov


Linus,

Alexei discovered a race condition in modules failing to load that
can cause a ftrace check to trigger and disable ftrace. This is because
of the way modules are registered to ftrace. Their functions are
loaded in the ftrace function tables but set to "disabled" since
they are still in the process of being loaded by the module. After
the module is finished, it calls back into the ftrace infrastructure
to enable it. Looking deeper into the locations that access all the
functions in the table, I found more locations that should ignore
the disabled ones.

Please pull the latest trace-v4.9-rc5 tree, which can be found at:


  git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
trace-v4.9-rc5

Tag SHA1: 0f6a062b1a2a55e2c0f801514e9f8792e4339aef
Head SHA1: 546fece4eae871f033925ccf0ff2b740725ae915


Alexei Starovoitov (1):
      ftrace: Ignore FTRACE_FL_DISABLED while walking dyn_ftrace records

Steven Rostedt (Red Hat) (1):
      ftrace: Add more checks for FTRACE_FL_DISABLED in processing ip records

----
 kernel/trace/ftrace.c | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-15 14:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15 14:26 [PATCH 0/2] [GIT PULL] ftrace: Add more checks to ignore disabled functions Steven Rostedt
2016-11-15 14:26 ` [PATCH 1/2] ftrace: Ignore FTRACE_FL_DISABLED while walking dyn_ftrace records Steven Rostedt
2016-11-15 14:26 ` [PATCH 2/2] ftrace: Add more checks for FTRACE_FL_DISABLED in processing ip records Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).