forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[eBPF interpreter] Atomic test lead to a crash #157
Labels
Comments
Running the test on an HSDK board:
In this snippet, the test of interest is |
shahab-vahedi
pushed a commit
that referenced
this issue
Feb 15, 2024
As most of them fail miserably on QEMU. For example: archs-lnx# mount -t debugfs debugfs /sys/kernel/debug archs-lnx# sysctl net.core.bpf_jit_enable net.core.bpf_jit_enable=0 archs-lnx# insmod test_bpf.ko test_id=327 qemu-system-arc: /src/qemu/target/arc/op_helper.c:185: helper_llockd: Assertion `(addr & 0x7) == 0' failed. This is the BPF interpreter causing the assert, because none of the atomic tests are supported by JIT (yet). I didn't observe this amount of failures 6 months ago, but back then I was using an older toolchain. This behaviour is observed when using 2023.03 toolchain. The issue is submitted at: #157
shahab-vahedi
pushed a commit
that referenced
this issue
Apr 30, 2024
As most of them fail miserably on QEMU. For example: archs-lnx# mount -t debugfs debugfs /sys/kernel/debug archs-lnx# sysctl net.core.bpf_jit_enable net.core.bpf_jit_enable=0 archs-lnx# insmod test_bpf.ko test_id=327 qemu-system-arc: /src/qemu/target/arc/op_helper.c:185: helper_llockd: Assertion `(addr & 0x7) == 0' failed. This is the BPF interpreter causing the assert, because none of the atomic tests are supported by JIT (yet). I didn't observe this amount of failures 6 months ago, but back then I was using an older toolchain. This behaviour is observed when using 2023.03 toolchain. The issue is submitted at: #157
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While testing the support of eBPF JIT in ARCv2, I noticed that (64-bit) atomic tests, handled by the interpreter, lead to an assert in QEMU (haven't tried this on HSDK recently):
For a full list of the tests, see the attached patch that disables them.
ebpf_disable_atomic_tests.tar.gz
This has been observed both in kernel 5.x and 6.x. I do not want to bombard this thread with hoard of information. If more details of the environment is needed, I can provide it.
EDIT:
reproduce.tar.gz
The text was updated successfully, but these errors were encountered: