History

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.

David Miller committed 7 years ago

Commit c01ac661 parent 528bff01 file · +1 −1Browse files

Unified · Split

tools/testing/selftests/bpf/test_verifier.c+1−1
@@ -14230,7 +14230,7 @@ static void do_test_single(struct bpf_test *test, bool unpriv, · 14229 unmodified lines
1423014230
1423114231 reject_from_alignment = fd_prog < 0 &&
1423214232 (test->flags & F_NEEDS_EFFICIENT_UNALIGNED_ACCESS) &&
14233− strstr(bpf_vlog, "Unknown alignment.");
14233+ strstr(bpf_vlog, "misaligned");
1423414234 #ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
1423514235 if (reject_from_alignment) {
1423614236 printf("FAIL\nFailed due to alignment despite having efficient unaligned access: '%s'!\n",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t