projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a11b1
)
selftests/bpf: add missing pointer dereference for map stacktrace fixup
author
Stanislav Fomichev
<sdf@google.com>
Fri, 7 Dec 2018 04:14:11 +0000
(20:14 -0800)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Mon, 10 Dec 2018 19:20:08 +0000
(20:20 +0100)
I get a segfault without it, other fixups always do dereference, and
without dereference I don't understand how it can ever work.
Fixes: 7c85c448e7d74 ("selftests/bpf: test_verifier, check bpf_map_lookup_elem access in bpf prog")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_verifier.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/bpf/test_verifier.c
b/tools/testing/selftests/bpf/test_verifier.c
index df6f751cc1e81c0bcc1f68e86a5bc57e530a2452..d23929a1985dca0eafdca782610aaed9408e1a4e 100644
(file)
--- a/
tools/testing/selftests/bpf/test_verifier.c
+++ b/
tools/testing/selftests/bpf/test_verifier.c
@@
-14166,7
+14166,7
@@
static void do_test_fixup(struct bpf_test *test, enum bpf_map_type prog_type,
do {
prog[*fixup_map_stacktrace].imm = map_fds[12];
fixup_map_stacktrace++;
- } while (fixup_map_stacktrace);
+ } while (
*
fixup_map_stacktrace);
}
}