Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85099bea authored by David Miller's avatar David Miller Committed by Greg Kroah-Hartman
Browse files

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: f1174f77 ("bpf/verifier: rework value tracking")
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent aa4540d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12765,7 +12765,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",