[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230313235845.61029-1-alexei.starovoitov@gmail.com>
Date: Mon, 13 Mar 2023 16:58:42 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: davem@...emloft.net
Cc: daniel@...earbox.net, andrii@...nel.org, martin.lau@...nel.org,
void@...ifault.com, davemarchevsky@...a.com, tj@...nel.org,
memxor@...il.com, netdev@...r.kernel.org, bpf@...r.kernel.org,
kernel-team@...com
Subject: [PATCH bpf-next 0/3] bpf: Allow helpers access ptr_to_btf_id.
From: Alexei Starovoitov <ast@...nel.org>
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
Powered by blists - more mailing lists