bpf: Fix kprobe_multi link attachment to kernel modules
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | kallsyms: Make module_kallsyms_on_each_symbol generally availableinclude/ kernel/ | +9 | 0 replies | |
| 2/8 | ftrace: Add support to resolve module symbols in ftrace_lookup_symbolskernel/ | +11 | 0 replies | |
| 3/8 | bpf: Rename __bpf_kprobe_multi_cookie_cmp to bpf_kprobe_multi_addrs_cmpkernel/ | +3 | 0 replies | |
| 4/8 | bpf: Take module reference on kprobe_multi linkkernel/ | +92 | 0 replies | |
| 5/8 | selftests/bpf: Add load_kallsyms_refresh functiontools/ tools/ | +15 | 0 replies | |
| 6/8 | selftests/bpf: Add bpf_testmod_fentry_* functionstools/ | +24 | 0 replies | |
| 7/8 | selftests/bpf: Add kprobe_multi check to module attach testtools/ tools/ | +13 | 0 replies | |
| 8/8 | selftests/bpf: Add kprobe_multi kmod attach api teststools/ tools/ | +139 | 0 replies |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Song Liu | Andrii Nakryiko |
|---|---|---|
| 1/8 | A-b | |
| 2/8 | A-b | |
| 3/8 | A-b | |
| 4/8 | A-b | |
| 5/8 | A-b | |
| 6/8 | A-b | |
| 7/8 | A-b | |
| 8/8 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH stable 6.0 0/8] bpf: Fix kprobe_multi link attachment to kernel modules
hi,
sending fixes for attaching bpf kprobe_multi link to kernel modules for stable 6.0. It all applies cleanly.
thanks,
jirka
---
Jiri Olsa (8):
kallsyms: Make module_kallsyms_on_each_symbol generally available
ftrace: Add support to resolve module symbols in ftrace_lookup_symbols
bpf: Rename __bpf_kprobe_multi_cookie_cmp to bpf_kprobe_multi_addrs_cmp
bpf: Take module reference on kprobe_multi link selftests/bpf: Add load_kallsyms_refresh function selftests/bpf: Add bpf_testmod_fentry_* functions selftests/bpf: Add kprobe_multi check to module attach test selftests/bpf: Add kprobe_multi kmod attach api tests
include/linux/module.h | 9 ++++++++ kernel/module/kallsyms.c | 2 -- kernel/trace/bpf_trace.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- kernel/trace/ftrace.c | 16 +++++++++----- tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c | 24 +++++++++++++++++++++ tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/testing/selftests/bpf/prog_tests/module_attach.c | 7 +++++++ tools/testing/selftests/bpf/progs/kprobe_multi.c | 50 +++++++++++++++++++++++++++++++++++++++++++ tools/testing/selftests/bpf/progs/test_module_attach.c | 6 ++++++ tools/testing/selftests/bpf/trace_helpers.c | 20 +++++++++++------- tools/testing/selftests/bpf/trace_helpers.h | 2 ++ 11 files changed, 306 insertions(+), 17 deletions(-) create mode 100644 tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c