aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/verifier/ctx_sk_msg.c
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@gmail.com>2019-02-05 13:41:25 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2019-02-05 16:56:10 +0100
commite2c6f50e48849298bed694de03cceb537d95cdc4 (patch)
treede65f65ba0b2109f46edd4b0c41572adefa717d7 /tools/testing/selftests/bpf/verifier/ctx_sk_msg.c
parentbpf, doc: add RISC-V JIT to BPF documentation (diff)
downloadlinux-dev-e2c6f50e48849298bed694de03cceb537d95cdc4.tar.xz
linux-dev-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/ctx_sk_msg.c')
-rw-r--r--tools/testing/selftests/bpf/verifier/ctx_sk_msg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/verifier/ctx_sk_msg.c b/tools/testing/selftests/bpf/verifier/ctx_sk_msg.c
index b0195770da6a..c6c69220a569 100644
--- a/tools/testing/selftests/bpf/verifier/ctx_sk_msg.c
+++ b/tools/testing/selftests/bpf/verifier/ctx_sk_msg.c
@@ -100,6 +100,7 @@
.errstr = "invalid bpf_context access",
.result = REJECT,
.prog_type = BPF_PROG_TYPE_SK_MSG,
+ .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS,
},
{
"invalid read past end of SK_MSG",