diff options
author | David Miller <davem@davemloft.net> | 2018-12-01 06:08:26 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-12-01 06:38:48 +0100 |
commit | c7665702d3208b77b8e00f0699b6b88241b04360 (patch) | |
tree | 73d1e878ca47383a15d562a93a19d68240d62787 /crypto | |
parent | bpf: Add BPF_F_ANY_ALIGNMENT. (diff) | |
download | linux-c7665702d3208b77b8e00f0699b6b88241b04360.tar.xz linux-c7665702d3208b77b8e00f0699b6b88241b04360.zip |
bpf: Adjust F_NEEDS_EFFICIENT_UNALIGNED_ACCESS handling in test_verifier.c
Make it set the flag argument to bpf_verify_program() which will relax
the alignment restrictions.
Now all such test cases will go properly through the verifier even on
inefficient unaligned access architectures.
On inefficient unaligned access architectures do not try to run such
programs, instead mark the test case as passing but annotate the
result similarly to how it is done now in the presence of this flag.
So, we get complete full coverage for all REJECT test cases, and at
least verifier level coverage for ACCEPT test cases.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions