We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
!sbpf_version.disable_lddw()
Hi, I wonder if the interpreter could add a checking before executing LD_DW_IMM if SBF enables or disables the LD_DW_IMM instruction.
LD_DW_IMM
//interpreter.rs ebpf::LD_DW_IMM => { ebpf::augment_lddw_unchecked(self.program, &mut insn); self.reg[dst] = insn.imm as u64; self.reg[11] += 1; next_pc += 1; },
The new code may be:
//interpreter.rs ebpf::LD_DW_IMM if !self.executable.get_sbpf_version().disable_lddw() => { ebpf::augment_lddw_unchecked(self.program, &mut insn); self.reg[dst] = insn.imm as u64; self.reg[11] += 1; next_pc += 1; },
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hi,
I wonder if the interpreter could add a checking before executing
LD_DW_IMM
if SBF enables or disables theLD_DW_IMM
instruction.The new code may be:
The text was updated successfully, but these errors were encountered: