Skip to content

bpf: Tracing and lsm programs re-attach

Jiri Olsa bpf netdev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 7 repliesIn review
  2. v45 patches 9 repliesSuperseded
  3. v35 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v25 patches7 repliesSuperseded
v1 RFC4 patches10 repliesSuperseded

Changes in v5 from the cover letter

- fixed missing hlist_del_init change
- fixed several ASSERT calls
- added extra patch for missing ';'
- added ASSERT macros to lsm test
- added acks

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7bpf: Allow trampoline re-attach for tracing and lsm programskernel/bpf/syscall.c kernel/bpf/trampoline.c+19 -82 replies
2/7selftests/bpf: Add missing semicolontools/testing/selftests/bpf/test_progs.h+1 -11 reply
3/7selftests/bpf: Add re-attach test to fentry_testtools/testing/selftests/bpf/prog_tests/fentry_test.c+37 -150 replies
4/7selftests/bpf: Add re-attach test to fexit_testtools/testing/selftests/bpf/prog_tests/fexit_test.c+37 -150 replies
5/7selftests/bpf: Add re-attach test to lsm testtools/testing/selftests/bpf/prog_tests/test_lsm.c+38 -100 replies
6/7selftests/bpf: Test that module can't be unloaded with attached trampolinetools/testing/selftests/bpf/prog_tests/module_attach.c+23 -00 replies
7/7selftests/bpf: Use ASSERT macros in lsm testtools/testing/selftests/bpf/prog_tests/test_lsm.c+10 -171 reply

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchToke Høiland-JørgensenAndrii NakryikoKP Singh
1/7A-b A-b A-b
2/7
3/7A-b
4/7A-b
5/7A-b
6/7A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCHv5 bpf-next 0/7] bpf: Tracing and lsm programs re-attach

hi,
while adding test for pinning the module while there's trampoline attach to it, I noticed that we don't allow link detach and following re-attach for trampolines. Adding that for tracing and lsm programs.

You need to have patch [1] from bpf tree for test module attach test to pass.

v5 changes:
- fixed missing hlist_del_init change
- fixed several ASSERT calls
- added extra patch for missing ';'
- added ASSERT macros to lsm test
- added acks

thanks,
jirka

[1] https://lore.kernel.org/bpf/[email protected]/
---
Jiri Olsa (7):
bpf: Allow trampoline re-attach for tracing and lsm programs selftests/bpf: Add missing semicolon
selftests/bpf: Add re-attach test to fentry_test selftests/bpf: Add re-attach test to fexit_test selftests/bpf: Add re-attach test to lsm test
selftests/bpf: Test that module can't be unloaded with attached trampoline selftests/bpf: Use ASSERT macros in lsm test

 kernel/bpf/syscall.c                                   | 23 +++++++++++++++++------
 kernel/bpf/trampoline.c                                |  4 ++--
 tools/testing/selftests/bpf/prog_tests/fentry_test.c   | 52 +++++++++++++++++++++++++++++++++++++---------------
 tools/testing/selftests/bpf/prog_tests/fexit_test.c    | 52 +++++++++++++++++++++++++++++++++++++---------------
 tools/testing/selftests/bpf/prog_tests/module_attach.c | 23 +++++++++++++++++++++++
 tools/testing/selftests/bpf/prog_tests/test_lsm.c      | 61 +++++++++++++++++++++++++++++++++++++++++--------------------
 tools/testing/selftests/bpf/test_progs.h               |  2 +-
 7 files changed, 158 insertions(+), 59 deletions(-)