summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/verifier/jset.c
diff options
context:
space:
mode:
authorBjörn Töpel2019-02-05 13:41:25 +0100
committerDaniel Borkmann2019-02-05 16:56:10 +0100
commite2c6f50e48849298bed694de03cceb537d95cdc4 (patch)
treede65f65ba0b2109f46edd4b0c41572adefa717d7 /tools/testing/selftests/bpf/verifier/jset.c
parentbpf, doc: add RISC-V JIT to BPF documentation (diff)
downloadkernel-qcow2-linux-e2c6f50e48849298bed694de03cceb537d95cdc4.tar.gz
kernel-qcow2-linux-e2c6f50e48849298bed694de03cceb537d95cdc4.tar.xz
kernel-qcow2-linux-e2c6f50e48849298bed694de03cceb537d95cdc4.zip
selftests/bpf: add "any alignment" annotation for some tests
RISC-V does, in-general, not have "efficient unaligned access". When testing the RISC-V BPF JIT, some selftests failed in the verification due to misaligned access. Annotate these tests with the F_NEEDS_EFFICIENT_UNALIGNED_ACCESS flag. Signed-off-by: Björn Töpel <bjorn.topel@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/verifier/jset.c')
-rw-r--r--tools/testing/selftests/bpf/verifier/jset.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/verifier/jset.c b/tools/testing/selftests/bpf/verifier/jset.c
index 7e14037acfaf..8dcd4e0383d5 100644
--- a/tools/testing/selftests/bpf/verifier/jset.c
+++ b/tools/testing/selftests/bpf/verifier/jset.c
@@ -53,6 +53,7 @@
.data64 = { ~0ULL, }
},
},
+ .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS,
},
{
"jset: sign-extend",
@@ -70,6 +71,7 @@
.result = ACCEPT,
.retval = 2,
.data = { 1, 0, 0, 0, 0, 0, 0, 1, },
+ .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS,
},
{
"jset: known const compare",