From: Alexei Starovoitov <ast@xxxxxxxxxx> Allow code like: bpf_strncmp(task->comm, 16, "foo"); Alexei Starovoitov (3): bpf: Fix bpf_strncmp proto. bpf: Allow helpers access trusted PTR_TO_BTF_ID. selftests/bpf: Add various tests to check helper access into ptr_to_btf_id. kernel/bpf/helpers.c | 2 +- kernel/bpf/verifier.c | 15 ++++++++ .../selftests/bpf/progs/task_kfunc_failure.c | 36 +++++++++++++++++++ .../selftests/bpf/progs/task_kfunc_success.c | 4 +++ 4 files changed, 56 insertions(+), 1 deletion(-) -- 2.34.1