Skip to content

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

KaFai Wan bpf linux-kselftest lkml 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesApplied 4/4
  2. v34 patches 7 repliesSuperseded

Changes in v4 from the cover letter

- change tracing_deny case attaching function (Yonghong Song)
- add Acked-by: Yafang Shao and Yonghong Song

Patches in v4 All 4 applied

#Subject and filesSizeRepliesApplied
1/4bpf: 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 repliesApplied
2/4bpf: Add log for attaching tracing programs to functions in deny listkernel/bpf/verifier.c+2 -00 repliesApplied
3/4selftests/bpf: Add selftest for attaching tracing programs to functions in deny listtools/testing/selftests/bpf/prog_tests/tracing_failure.c tools/testing/selftests/bpf/progs/tracing_failure.c+39 -00 repliesApplied
4/4selftests/bpf: Migrate fexit_noreturns case into tracing_failure test suitetools/testing/selftests/bpf/prog_tests/fexit_noreturns.c tools/testing/selftests/bpf/prog_tests/tracing_failure.c tools/testing/selftests/bpf/progs/fexit_noreturns.c +1 more+39 -380 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchYafang ShaoYonghong Song
1/4A-b A-b
2/4A-b A-b
3/4A-b
4/4A-b

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

Read the v4 thread

Cover letter [PATCH bpf-next v4 0/4] 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. Migrate fexit_noreturns case into tracing_failure test suite.

changes:
v4:
- change tracing_deny case attaching function (Yonghong Song)
- add Acked-by: Yafang Shao and Yonghong Song

v3:
- add tracing_deny case into existing files (Alexei)
- migrate fexit_noreturns into tracing_failure
- change SOB
https://lore.kernel.org/bpf/[email protected]/

v2:
- change verifier log message (Alexei)
- add missing Suggested-by
https://lore.kernel.org/bpf/[email protected]/

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

---
KaFai Wan (4):
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
selftests/bpf: Migrate fexit_noreturns case into tracing_failure test
suite

 kernel/bpf/verifier.c                         |  5 +-
 .../bpf/prog_tests/fexit_noreturns.c          |  9 ----
 .../bpf/prog_tests/tracing_failure.c          | 52 +++++++++++++++++++
 .../selftests/bpf/progs/fexit_noreturns.c     | 15 ------
 .../selftests/bpf/progs/tracing_failure.c     | 12 +++++
 5 files changed, 68 insertions(+), 25 deletions(-)
 delete mode 100644 tools/testing/selftests/bpf/prog_tests/fexit_noreturns.c
 delete mode 100644 tools/testing/selftests/bpf/progs/fexit_noreturns.c
Signature · 1 line
2.43.0