Skip to content

Commit 88945f4

Browse files
davem330Alexei Starovoitov
authored andcommitted
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: f1174f7 ("bpf/verifier: rework value tracking") Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent 779a459 commit 88945f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/test_verifier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14287,7 +14287,7 @@ static void do_test_single(struct bpf_test *test, bool unpriv,
1428714287

1428814288
reject_from_alignment = fd_prog < 0 &&
1428914289
(test->flags & F_NEEDS_EFFICIENT_UNALIGNED_ACCESS) &&
14290-
strstr(bpf_vlog, "Unknown alignment.");
14290+
strstr(bpf_vlog, "misaligned");
1429114291
#ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
1429214292
if (reject_from_alignment) {
1429314293
printf("FAIL\nFailed due to alignment despite having efficient unaligned access: '%s'!\n",

0 commit comments

Comments
 (0)