Skip to content

Open up res_spin_lock for tracing programs, fix is_tracing_prog_type()

Kumar Kartikeya Dwivedi bpf sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review 1 of 2 applied

Patches in v1 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Allow bpf_res_spin_lock() in all contextskernel/bpf/verifier.c+2 -03 repliesApplied
2/2bpf: Fix is_tracing_prog_type() to cover fentry/fexit/fmod_retkernel/bpf/verifier.c tools/testing/selftests/bpf/prog_tests/linked_list.c tools/testing/selftests/bpf/prog_tests/map_btf.c +5 more+50 -463 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchEmil TsalapatisEduard Zingerman
1/2R-b A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next v1 0/2] Open up res_spin_lock for tracing programs, fix is_tracing_prog_type()

Patches in the set first open up res_spin_lock in all program types. The second patch goes back to addressing the technical debt highlighted in [0]. While for programs affected by the second patch don't need res_spin_lock to be opened up (since it was already allowed in those program types due to the oversight in is_tracing_prog_type()), it is timely to do so now.

[0]: https://lore.kernel.org/bpf/[email protected]

See commits for details.

Kumar Kartikeya Dwivedi (2):
bpf: Allow bpf_res_spin_lock() in all contexts
bpf: Fix is_tracing_prog_type() to cover fentry/fexit/fmod_ret

 kernel/bpf/verifier.c                         | 48 +++++++++++--------
 .../selftests/bpf/prog_tests/linked_list.c    |  6 +--
 .../selftests/bpf/prog_tests/map_btf.c        | 19 ++++----
 .../selftests/bpf/progs/map_in_map_btf.c      |  2 +-
 .../selftests/bpf/progs/normal_map_btf.c      |  2 +-
 .../selftests/bpf/progs/refcounted_kptr.c     | 10 ++--
 .../bpf/progs/refcounted_kptr_fail.c          |  5 +-
 .../bpf/progs/verifier_helper_restricted.c    |  4 ++
 8 files changed, 51 insertions(+), 45 deletions(-)

base-commit: ecf11bc5f56abb3a2219a8c75e8a5b54467d1781

Signature · 1 line
2.53.0