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(-) -- 2.34.1