Merge tag 'probes-v6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull probes updates from Masami Hiramatsu: "Uprobes: - x86/shstk: Make return uprobe work with shadow stack - Add uretprobe syscall which speeds up the uretprobe 10-30% faster. This syscall is automatically used from user-space trampolines which are generated by the uretprobe. If this syscall is used by normal user program, it will cause SIGILL. Note that this is currently only implemented on x86_64. (This also has two fixes for adjusting the syscall number to avoid conflict with new *attrat syscalls.) - uprobes/perf: fix user stack traces in the presence of pending uretprobe. This corrects the uretprobe's trampoline address in the stacktrace with correct return address - selftests/x86: Add a return uprobe with shadow stack test - selftests/bpf: Add uretprobe syscall related tests. - test case for register integrity check - test case with register changing case - test case for uretprobe syscall without uprobes (expected to fail) - test case for uretprobe with shadow stack - selftests/bpf: add test validating uprobe/uretprobe stack traces - MAINTAINERS: Add uprobes entry. This does not specify the tree but to clarify who maintains and reviews the uprobes Kprobes: - tracing/kprobes: Test case cleanups. Replace redundant WARN_ON_ONCE() + pr_warn() with WARN_ONCE() and remove unnecessary code from selftest - tracing/kprobes: Add symbol counting check when module loads. This checks the uniqueness of the probed symbol on modules. The same check has already done for kernel symbols (This also has a fix for build error with CONFIG_MODULES=n) Cleanup: - Add MODULE_DESCRIPTION() macros for fprobe and kprobe examples" * tag 'probes-v6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: MAINTAINERS: Add uprobes entry selftests/bpf: Change uretprobe syscall number in uprobe_syscall test uprobe: Change uretprobe syscall scope and number tracing/kprobes: Fix build error when find_module() is not available tracing/kprobes: Add symbol counting check when module loads selftests/bpf: add test validating uprobe/uretprobe stack traces perf,uprobes: fix user stack traces in the presence of pending uretprobes tracing/kprobe: Remove cleanup code unrelated to selftest tracing/kprobe: Integrate test warnings into WARN_ONCE selftests/bpf: Add uretprobe shadow stack test selftests/bpf: Add uretprobe syscall call from user space test selftests/bpf: Add uretprobe syscall test for regs changes selftests/bpf: Add uretprobe syscall test for regs integrity selftests/x86: Add return uprobe shadow stack test uprobe: Add uretprobe syscall to speed up return probe uprobe: Wire up uretprobe system call x86/shstk: Make return uprobe work with shadow stack samples: kprobes: add missing MODULE_DESCRIPTION() macros fprobe: add missing MODULE_DESCRIPTION() macro
Showing
- MAINTAINERS 13 additions, 0 deletionsMAINTAINERS
- arch/x86/entry/syscalls/syscall_64.tbl 1 addition, 0 deletionsarch/x86/entry/syscalls/syscall_64.tbl
- arch/x86/include/asm/shstk.h 4 additions, 0 deletionsarch/x86/include/asm/shstk.h
- arch/x86/kernel/shstk.c 16 additions, 0 deletionsarch/x86/kernel/shstk.c
- arch/x86/kernel/uprobes.c 123 additions, 1 deletionarch/x86/kernel/uprobes.c
- include/linux/syscalls.h 2 additions, 0 deletionsinclude/linux/syscalls.h
- include/linux/uprobes.h 3 additions, 0 deletionsinclude/linux/uprobes.h
- include/uapi/asm-generic/unistd.h 4 additions, 1 deletioninclude/uapi/asm-generic/unistd.h
- kernel/events/callchain.c 42 additions, 1 deletionkernel/events/callchain.c
- kernel/events/uprobes.c 26 additions, 7 deletionskernel/events/uprobes.c
- kernel/sys_ni.c 2 additions, 0 deletionskernel/sys_ni.c
- kernel/trace/trace_kprobe.c 111 additions, 81 deletionskernel/trace/trace_kprobe.c
- samples/fprobe/fprobe_example.c 1 addition, 0 deletionssamples/fprobe/fprobe_example.c
- samples/kprobes/kprobe_example.c 1 addition, 0 deletionssamples/kprobes/kprobe_example.c
- samples/kprobes/kretprobe_example.c 1 addition, 0 deletionssamples/kprobes/kretprobe_example.c
- tools/include/linux/compiler.h 4 additions, 0 deletionstools/include/linux/compiler.h
- tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c 122 additions, 1 deletiontools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
- tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c 385 additions, 0 deletionstools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
- tools/testing/selftests/bpf/prog_tests/uretprobe_stack.c 186 additions, 0 deletionstools/testing/selftests/bpf/prog_tests/uretprobe_stack.c
- tools/testing/selftests/bpf/progs/uprobe_syscall.c 15 additions, 0 deletionstools/testing/selftests/bpf/progs/uprobe_syscall.c
Please register or sign in to comment