mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
bpf: Fix verifier log string check for bad alignment.
[ Upstream commitc01ac66b38
] The message got changed a lot time ago. This was responsible for 36 test case failures on sparc64. Fixes:f1174f77b5
("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>
This commit is contained in:
parent
87c1a07b0e
commit
27be23532e
1 changed files with 1 additions and 1 deletions
|
@ -8070,7 +8070,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",
|
||||
|
|
Loading…
Reference in a new issue