selftests/bpf: Accept mem from dynptr in helper funcs
authorDaniel Rosenberg <drosen@google.com>
Sat, 6 May 2023 01:31:34 +0000 (18:31 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 6 May 2023 23:42:58 +0000 (16:42 -0700)
commit798e48fc28fa64aa4eca6e8a404fa20ac8f7c09e
tree9a5ef4b52333e03d5360e85b6d3aa34fa9747050
parent2012c867c8005d72c949e274133df429ece78808
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>
tools/testing/selftests/bpf/prog_tests/dynptr.c
tools/testing/selftests/bpf/progs/dynptr_success.c