summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay@kernel.org>2025-10-17 14:17:25 +0000
committerAlexei Starovoitov <ast@kernel.org>2025-10-18 19:27:26 -0700
commit7361c864852f07b39f5e571447060bd4d758a998 (patch)
treec9cd53b6d4a298cf18aec6e641a368893e8cf7fd /tools/testing/selftests/bpf/prog_tests/autoload.c
parentb74938a3bd3761f0797ad988eaab17efda5cfd83 (diff)
selftests/bpf: Fix list_del() in arena list
The __list_del fuction doesn't set the previous node's next pointer to the next node of the node to be deleted. It just updates the local variable and not the actual pointer in the previous node. The test was passing up till now because the bpf code is doing bpf_free() after list_del and therfore reading head->first from the userspace will read all zeroes. But after arena_list_del() is finished, head->first should point to NULL; Signed-off-by: Puranjay Mohan <puranjay@kernel.org> Acked-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20251017141727.51355-1-puranjay@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions