[GIT PULL] probes: Fixes for 6.4-rc1

From: Google
Date: Thu May 18 2023 - 09:45:09 EST


Hi Linus,

Probes fixes for 6.4-rc1:

- Initialize 'ret' local variables on fprobe_handler() to fix the smatch
warning. With this, fprobe function exit handler is not working
randomly.

- Fix to use preempt_enable/disable_notrace for rethook handler to
prevent recursive call of fprobe exit handler (which is based on
rethook)

- Fix recursive call issue on fprobe_kprobe_handler().

- Fix to detect recursive call on fprobe_exit_handler().

- Fix to make all arch-dependent rethook code notrace.
(the arch-independent code is already notrace)


Please pull the latest probes-fixes-v6.4-rc1 tree, which can be found at:


git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
probes-fixes-v6.4-rc1

Tag SHA1: edaa9b59161d819661ea96a97850d9aaf6d43bdc
Head SHA1: 571a2a50a8fc546145ffd3bf673547e9fe128ed2


Masami Hiramatsu (Google) (1):
tracing: fprobe: Initialize ret valiable to fix smatch error

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
rethook, 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 | 73 +++++++++++++++++++++++++++++++--------
kernel/trace/rethook.c | 4 +--
5 files changed, 64 insertions(+), 17 deletions(-)


--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>