From: George Guo <[email protected]>
Some test_progs cases cannot pass on LoongArch and otherwise fail the
run. Add a deny list mirroring the other architectures:
- arena_atomics: the JIT gates atomic operations on arena pointers
(bpf_jit_supports_insn() rejects BPF_ATOMIC in the arena case), so
the verifier rejects these programs early and the skeleton fails to
load. Observed on LoongArch:
13: (db) r3 = atomic64_fetch_add((u64 *)(r2 +0), r3)
BPF_ATOMIC stores into R2 arena is not allowed
... failed to load: -EACCES
Signed-off-by: George Guo <[email protected]>
---
tools/testing/selftests/bpf/DENYLIST.loongarch | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 tools/testing/selftests/bpf/DENYLIST.loongarch
diff --git a/tools/testing/selftests/bpf/DENYLIST.loongarch
b/tools/testing/selftests/bpf/DENYLIST.loongarch
new file mode 100644
index 000000000000..925005e4298f
--- /dev/null
+++ b/tools/testing/selftests/bpf/DENYLIST.loongarch
@@ -0,0 +1,2 @@
+# loongarch64 deny list for BPF CI and local vmtest
+arena_atomics # JIT does not support atomics
in arena (verifier rejects BPF_ATOMIC on arena pointers)
--
2.25.1