Skip to content

bpf: Show precise rejected function when attaching to __noreturn and deny list functions

KaFai Wan bpf linux-kselftest lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- change verifier log message (Alexei)
- add missing Suggested-by

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bpf: Show precise rejected function when attaching fexit/fmod_ret to __noreturn functionskernel/bpf/verifier.c tools/testing/selftests/bpf/progs/fexit_noreturns.c+3 -20 replies
2/3bpf: Add log for attaching tracing programs to functions in deny listkernel/bpf/verifier.c+2 -00 replies
3/3selftests/bpf: Add selftest for attaching tracing programs to functions in deny listtools/testing/selftests/bpf/prog_tests/tracing_deny.c tools/testing/selftests/bpf/progs/tracing_deny.c+26 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/3] bpf: Show precise rejected function when attaching to __noreturn and deny list functions

Show precise rejected function when attaching fexit/fmod_ret to __noreturn functions.
Add log for attaching tracing programs to functions in deny list. Add selftest for attaching tracing programs to functions in deny list.

changes:
v2:
- change verifier log message (Alexei)
- add missing Suggested-by

v1:
https://lore.kernel.org/all/[email protected]/

---
KaFai Wan (3):
bpf: Show precise rejected function when attaching fexit/fmod_ret to
__noreturn functions
bpf: Add log for attaching tracing programs to functions in deny list selftests/bpf: Add selftest for attaching tracing programs to
functions in deny list

 kernel/bpf/verifier.c                             |  5 ++++-
 .../selftests/bpf/prog_tests/tracing_deny.c       | 11 +++++++++++
 .../testing/selftests/bpf/progs/fexit_noreturns.c |  2 +-
 tools/testing/selftests/bpf/progs/tracing_deny.c  | 15 +++++++++++++++
 4 files changed, 31 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/tracing_deny.c
 create mode 100644 tools/testing/selftests/bpf/progs/tracing_deny.c
Signature · 1 line
2.43.0