Skip to content
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

JSET test with different execution results #292

Open
RaoNikitha opened this issue Aug 6, 2024 · 0 comments
Open

JSET test with different execution results #292

RaoNikitha opened this issue Aug 6, 2024 · 0 comments

Comments

@RaoNikitha
Copy link

bpf2c, libbpf and uBPF plugins exhibit different behaviors on the following test containing JSET.

Test: JSET with the same src, dst register

-- asm
mov %r1, 5
jset %r1, %r1, lbl1
mov %r0, 0
exit
lbl1: mov %r0, 1
exit
-- result
0x1

Test execution outcome across three different plugins:

bpf2c: seems like it does not execute instruction at lbl1

FAIL: Plugin returned incorrect return value 0 expected 1

libbpf: verifier error

ERROR: Plugin returned error code 1

uBPF: appears to execute instruction at lbl1

FAIL: Plugin returned incorrect return value 7ffff338a820 expected 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant