summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/dynptr.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2023-05-05 18:31:34 -0700
committerAlexei Starovoitov <ast@kernel.org>2023-05-06 16:42:58 -0700
commit798e48fc28fa64aa4eca6e8a404fa20ac8f7c09e (patch)
tree9a5ef4b52333e03d5360e85b6d3aa34fa9747050 /tools/testing/selftests/bpf/prog_tests/dynptr.c
parent2012c867c8005d72c949e274133df429ece78808 (diff)
downloadlwn-798e48fc28fa64aa4eca6e8a404fa20ac8f7c09e.tar.gz
lwn-798e48fc28fa64aa4eca6e8a404fa20ac8f7c09e.zip
selftests/bpf: Accept mem from dynptr in helper funcs
This ensures that buffers retrieved from dynptr_data are allowed to be passed in to helpers that take mem, like bpf_strncmp Signed-off-by: Daniel Rosenberg <drosen@google.com> Link: https://lore.kernel.org/r/20230506013134.2492210-6-drosen@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/dynptr.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/dynptr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/dynptr.c b/tools/testing/selftests/bpf/prog_tests/dynptr.c
index 13d4b9ab16e7..7cfac53c0d58 100644
--- a/tools/testing/selftests/bpf/prog_tests/dynptr.c
+++ b/tools/testing/selftests/bpf/prog_tests/dynptr.c
@@ -27,6 +27,7 @@ static struct {
{"test_dynptr_is_rdonly", SETUP_SKB_PROG},
{"test_dynptr_clone", SETUP_SKB_PROG},
{"test_dynptr_skb_no_buff", SETUP_SKB_PROG},
+ {"test_dynptr_skb_strcmp", SETUP_SKB_PROG},
};
static void verify_success(const char *prog_name, enum test_setup_type setup_type)