diff options
| author | Andrii Nakryiko <andrii@kernel.org> | 2020-11-18 17:39:41 -0800 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2020-11-18 17:45:39 -0800 |
| commit | 4e99d115d865d45e17e83478d757b58d8fa66d3c (patch) | |
| tree | 98b969cfd7612f38e05c6cda6d5382ac0a8b36c6 /tools/testing/selftests/bpf/verifier/direct_value_access.c | |
| parent | bpf: Add bpf_ktime_get_coarse_ns helper (diff) | |
| parent | selftests/bpf: Mark tests that require unaligned memory access (diff) | |
| download | linux-4e99d115d865d45e17e83478d757b58d8fa66d3c.tar.gz linux-4e99d115d865d45e17e83478d757b58d8fa66d3c.zip | |
Merge branch 'RISC-V selftest/bpf fixes'
Björn Töpel says:
====================
This series contain some fixes for selftests/bpf when building/running
on a RISC-V host. Details can be found in each individual commit.
v2:
Makefile cosmetics. (Andrii)
Simplified unpriv check and added comment. (Andrii)
====================
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/verifier/direct_value_access.c')
| -rw-r--r-- | tools/testing/selftests/bpf/verifier/direct_value_access.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/verifier/direct_value_access.c b/tools/testing/selftests/bpf/verifier/direct_value_access.c index 988f46a1a4c7..c0648dc009b5 100644 --- a/tools/testing/selftests/bpf/verifier/direct_value_access.c +++ b/tools/testing/selftests/bpf/verifier/direct_value_access.c @@ -69,6 +69,7 @@ .fixup_map_array_48b = { 1 }, .result = REJECT, .errstr = "R1 min value is outside of the allowed memory range", + .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS, }, { "direct map access, write test 7", @@ -195,6 +196,7 @@ .fixup_map_array_48b = { 1, 3 }, .result = REJECT, .errstr = "invalid access to map value, value_size=48 off=47 size=2", + .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS, }, { "direct map access, write test 17", @@ -209,6 +211,7 @@ .fixup_map_array_48b = { 1, 3 }, .result = REJECT, .errstr = "invalid access to map value, value_size=48 off=47 size=2", + .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS, }, { "direct map access, write test 18", |
