linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Make fprobe + rethook immune to recursion
@ 2023-05-16  7:18 Ze Gao
  2023-05-16  7:18 ` [PATCH v2 1/4] rethook: use preempt_{disable, enable}_notrace in rethook_trampoline_handler Ze Gao
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Ze Gao @ 2023-05-16  7:18 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu
  Cc: Albert Ou, Alexander Gordeev, Alexei Starovoitov, Borislav Petkov,
	Christian Borntraeger, Dave Hansen, Heiko Carstens,
	H. Peter Anvin, Ingo Molnar, Palmer Dabbelt, Paul Walmsley,
	Sven Schnelle, Thomas Gleixner, Vasily Gorbik, x86, linux-kernel,
	linux-riscv, linux-s390, linux-trace-kernel, bpf, Conor Dooley,
	Jiri Olsa, Yonghong Song, Ze Gao

Hi all,

This is the 2nd version of patch series to fix the ftrace rethook recursion problem.

v1: https://lore.kernel.org/linux-trace-kernel/cover.1684120990.git.zegao@tencent.com/T/                                 +++#md4c0bae6a6cae28dadf2a2c6105ff140b35fddea

As Steven suggested, this version removes unnecessary notrace annotations from fprobe
and rethook functions from v1 [PATCH 2,3,4/4] and replaces with makefile changes to filter
out compiler flags which ftrace depends upon for rethook related objects.

Ze Gao (4):
  rethook: use preempt_{disable, enable}_notrace in
    rethook_trampoline_handler
  fprobe: make fprobe_kprobe_handler recursion free
  fprobe: add recursion detection in fprobe_exit_handler
  rehook, fprobe: do not trace rethook related functions

 arch/riscv/kernel/probes/Makefile |  2 +
 arch/s390/kernel/Makefile         |  1 +
 arch/x86/kernel/Makefile          |  1 +
 kernel/trace/fprobe.c             | 72 ++++++++++++++++++++++++-------
 kernel/trace/rethook.c            |  4 +-
 5 files changed, 63 insertions(+), 17 deletions(-)

-- 
2.40.1


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

end of thread, other threads:[~2023-05-17  4:52 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-16  7:18 [PATCH v2 0/4] Make fprobe + rethook immune to recursion Ze Gao
2023-05-16  7:18 ` [PATCH v2 1/4] rethook: use preempt_{disable, enable}_notrace in rethook_trampoline_handler Ze Gao
2023-05-16  7:18 ` [PATCH v2 2/4] fprobe: make fprobe_kprobe_handler recursion free Ze Gao
2023-05-16  9:15   ` Peter Zijlstra
2023-05-16  9:35     ` Ze Gao
2023-05-16  9:18   ` Peter Zijlstra
2023-05-16  9:47     ` Ze Gao
2023-05-16  9:51       ` Ze Gao
2023-05-16 16:03       ` Masami Hiramatsu
2023-05-17  1:54         ` Ze Gao
2023-05-17  2:54           ` Masami Hiramatsu
2023-05-17  3:10             ` Ze Gao
2023-05-17  3:25               ` Steven Rostedt
2023-05-17  3:51                 ` Masami Hiramatsu
2023-05-17  4:51                 ` Ze Gao
2023-05-16  7:18 ` [PATCH v2 3/4] fprobe: add recursion detection in fprobe_exit_handler Ze Gao
2023-05-16  7:18 ` [PATCH v2 4/4] rehook, fprobe: do not trace rethook related functions Ze Gao
2023-05-16 14:20   ` Steven Rostedt
2023-05-17  2:00     ` Ze Gao
2023-05-16 16:05   ` Masami Hiramatsu
2023-05-16 21:42 ` [PATCH v2 0/4] Make fprobe + rethook immune to recursion Jiri Olsa

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).