Skip to content
Snippets Groups Projects
Commit c2a20a27 authored by Stanislav Fomichev's avatar Stanislav Fomichev Committed by Daniel Borkmann
Browse files

selftests/bpf: add missing pointer dereference for map stacktrace fixup


I get a segfault without it, other fixups always do dereference, and
without dereference I don't understand how it can ever work.

Fixes: 7c85c448 ("selftests/bpf: test_verifier, check bpf_map_lookup_elem access in bpf prog")
Signed-off-by: default avatarStanislav Fomichev <sdf@google.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 51a11b14
Branches
No related tags found
No related merge requests found
...@@ -14166,7 +14166,7 @@ static void do_test_fixup(struct bpf_test *test, enum bpf_map_type prog_type, ...@@ -14166,7 +14166,7 @@ static void do_test_fixup(struct bpf_test *test, enum bpf_map_type prog_type,
do { do {
prog[*fixup_map_stacktrace].imm = map_fds[12]; prog[*fixup_map_stacktrace].imm = map_fds[12];
fixup_map_stacktrace++; fixup_map_stacktrace++;
} while (fixup_map_stacktrace); } while (*fixup_map_stacktrace);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment