Skip to content

Add __ref annotation for kfuncs

Kumar Kartikeya Dwivedi bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: Add support for per-parameter trusted argsDocumentation/bpf/kfuncs.rst kernel/bpf/btf.c net/bpf/test_run.c+51 -1510 replies
2/2selftests/bpf: Extend KF_TRUSTED_ARGS test for __ref annotationtools/testing/selftests/bpf/verifier/calls.c+30 -80 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH bpf-next v1 0/2] Add __ref annotation for kfuncs

We decided to delay adding this until a usecase came up, and since now there is one, instead of KF_TRUSTED_ARGS that applies to all arguments, add a __ref suffix that has the same effect but only for the argument it is applied to.

Kumar Kartikeya Dwivedi (2):
bpf: Add support for per-parameter trusted args selftests/bpf: Extend KF_TRUSTED_ARGS test for __ref annotation

 Documentation/bpf/kfuncs.rst                 | 18 +++++++++
 kernel/bpf/btf.c                             | 39 +++++++++++++-------
 net/bpf/test_run.c                           |  9 ++++-
 tools/testing/selftests/bpf/verifier/calls.c | 38 +++++++++++++++----
 4 files changed, 81 insertions(+), 23 deletions(-)
Signature · 1 line
2.34.1