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

Unnecessary BPF verifier restriction on MUL64_IMM #17520

Closed
jackcmay opened this issue May 26, 2021 · 4 comments · Fixed by #18869
Closed

Unnecessary BPF verifier restriction on MUL64_IMM #17520

jackcmay opened this issue May 26, 2021 · 4 comments · Fixed by #18869
Assignees

Comments

@jackcmay
Copy link
Contributor

Problem

The BPF verifier enforces a non-zero imm for the MUL64_IMM instruction when it doesn't need to here:

ebpf::MUL64_IMM => { check_imm_nonzero(&insn, insn_ptr)?; },

Proposed Solution

Featurize and remove this restriction

@Lichtso
Copy link
Contributor

Lichtso commented Jul 19, 2021

solana-labs/rbpf#201

@Lichtso
Copy link
Contributor

Lichtso commented Jul 23, 2021

Ready for feature gating as of #18869.
I marked the relevant line in the config with a TODO comment.

Do you want to add the feature flag or should I?

@jackcmay
Copy link
Contributor Author

As we discussed you are going to add it next week, thanks!

Lichtso added a commit that referenced this issue Aug 4, 2021
* Bumps solana_rbpf to v0.2.14

* Feature gate for verify_mul64_imm_nonzero as discussed in #17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Nov 17, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Nov 17, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Nov 17, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Nov 24, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Dec 3, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Dec 3, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Dec 3, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Dec 3, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Dec 3, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
t-nelson pushed a commit that referenced this issue Dec 4, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in #17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Dec 13, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
Lichtso added a commit to Lichtso/solana that referenced this issue Dec 13, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in solana-labs#17520.
mvines pushed a commit that referenced this issue Dec 14, 2021
* Feature gate for verify_mul64_imm_nonzero as discussed in #17520.
@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2022

This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants