aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/stacktrace_map.c
diff options
context:
space:
mode:
authorJoanne Koong <joannelkoong@gmail.com>2023-03-01 07:49:46 -0800
committerAlexei Starovoitov <ast@kernel.org>2023-03-01 09:55:23 -0800
commit1d18feb2c915c5ad0a9a61d04b8560e8efb78ce8 (patch)
tree00a07809e818100cbfa544d80a19a0fec7b5470c /tools/testing/selftests/bpf/prog_tests/stacktrace_map.c
parent7e0dac2807e6c4ae8c56941d74971fdb0763b4f9 (diff)
bpf: Allow initializing dynptrs in kfuncs
This change allows kfuncs to take in an uninitialized dynptr as a parameter. Before this change, only helper functions could successfully use uninitialized dynptrs. This change moves the memory access check (including stack state growing and slot marking) into process_dynptr_func(), which both helpers and kfuncs call into. Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Link: https://lore.kernel.org/r/20230301154953.641654-4-joannelkoong@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/stacktrace_map.c')
0 files changed, 0 insertions, 0 deletions