Commit 27be23532ed8cdc4dbe872b9b3b16887d3252e17

Authored by David Miller
Committed by Greg Kroah-Hartman
1 parent 87c1a07b0e

bpf: Fix verifier log string check for bad alignment.

[ Upstream commit c01ac66b38660f2b507ccd0b75d28e3002d56fbb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

tools/testing/selftests/bpf/test_verifier.c
... ... @@ -8070,7 +8070,7 @@
8070 8070  
8071 8071 reject_from_alignment = fd_prog < 0 &&
8072 8072 (test->flags & F_NEEDS_EFFICIENT_UNALIGNED_ACCESS) &&
8073   - strstr(bpf_vlog, "Unknown alignment.");
  8073 + strstr(bpf_vlog, "misaligned");
8074 8074 #ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
8075 8075 if (reject_from_alignment) {
8076 8076 printf("FAIL\nFailed due to alignment despite having efficient unaligned access: '%s'!\n",