probes: Fixes for 6.4-rc1
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(-)
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>
The pull request you sent on Thu, 18 May 2023 22:44:09 +0900:
The pull request you sent on Thu, 18 May 2023 22:44:09 +0900:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.gitprobes-fixes-v6.4-rc1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/2d1bcbc6cd703e64caf8df314e3669b4786e008a
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html