summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2018-11-28 22:33:53 -0800
committerAlexei Starovoitov <ast@kernel.org>2018-11-30 14:43:45 -0800
commitc01ac66b38660f2b507ccd0b75d28e3002d56fbb (patch)
treec4e34ee59fd6dff47a409e6dbd7ff7a562be2653 /tools
parent528bff0cdb6649f97f2c4802e4ac7a4b50645f2f (diff)
downloadlinux-c01ac66b38660f2b507ccd0b75d28e3002d56fbb.tar.gz
linux-c01ac66b38660f2b507ccd0b75d28e3002d56fbb.tar.bz2
linux-c01ac66b38660f2b507ccd0b75d28e3002d56fbb.zip
bpf: Fix verifier log string check for bad alignment.
The message got changed a lot time ago. This was responsible for 36 test case failures on sparc64. Fixes: f1174f77b50c ("bpf/verifier: rework value tracking") Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/bpf/test_verifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_verifier.c b/tools/testing/selftests/bpf/test_verifier.c
index 550b7e46bf4a..5dd4410a716c 100644
--- a/tools/testing/selftests/bpf/test_verifier.c
+++ b/tools/testing/selftests/bpf/test_verifier.c
@@ -14230,7 +14230,7 @@ static void do_test_single(struct bpf_test *test, bool unpriv,
reject_from_alignment = fd_prog < 0 &&
(test->flags & F_NEEDS_EFFICIENT_UNALIGNED_ACCESS) &&
- strstr(bpf_vlog, "Unknown alignment.");
+ strstr(bpf_vlog, "misaligned");
#ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
if (reject_from_alignment) {
printf("FAIL\nFailed due to alignment despite having efficient unaligned access: '%s'!\n",