public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] ftrace: prevent ftrace modifications while being kprobe'd
@ 2008-06-21 18:17 Abhishek Sagar
  2008-06-23 20:15 ` Ingo Molnar
  0 siblings, 1 reply; 6+ messages in thread
From: Abhishek Sagar @ 2008-06-21 18:17 UTC (permalink / raw)
  To: Steven Rostedt, Ingo Molnar; +Cc: Thomas Gleixner, LKML

Hi Steven/Ingo,

These patches address the problem of kprobe registration interfering with
dynamic ftrace. A kprobe registered on an mcount call-site can modify that
address multiple times during its duration of probing. At the same time,
ftrace may simultaneously modify these locations. This could be fatal
especially if ftrace modifies the call-site during a kprobe registration
on it (between arch_prepare_kprobe and arch_arm_kprobe in __register_kprobe
to be more precise). So as a "fix", I've disabled any updates on the mcount
call-site while it's being kprobe'd.

--
Regards,
Abhishek Sagar

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

end of thread, other threads:[~2008-07-03 12:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-21 18:17 [PATCH 0/4] ftrace: prevent ftrace modifications while being kprobe'd Abhishek Sagar
2008-06-23 20:15 ` Ingo Molnar
2008-06-24  3:29   ` Abhishek Sagar
2008-06-26 12:33     ` Ingo Molnar
2008-06-26 17:21       ` Abhishek Sagar
2008-07-03 12:49         ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox