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

An error in rbpf #647

Open
LiuJun5817 opened this issue Dec 24, 2024 · 0 comments
Open

An error in rbpf #647

LiuJun5817 opened this issue Dec 24, 2024 · 0 comments

Comments

@LiuJun5817
Copy link

In this test case, the expected value does not match the output value.

test_interpreter_and_jit_asm!(
        "
        mov32 r0, -1
        add64 r0, 0x1
        exit",
        [],
        (),
        TestContextObject::new(3),
        ProgramResult::Ok(0x0),
    );

Image
interpreter_result is "Ok(0x100000000)", but expected_result is "Ok(0)".
Could the problem be here? "ebpf::MOV32_IMM => self.reg[dst] = insn.imm as u32 as u64,"

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