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

Add option to disable ldabs* and ldind* instructions #251

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

alessandrod
Copy link

Part of the SBFv2 cleanup effort solana-labs/solana#20323

Copy link

@Lichtso Lichtso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make more sense to move these checks into https://github.com/solana-labs/rbpf/blob/main/src/verifier.rs

@alessandrod
Copy link
Author

I have started moving the checks to the verifier, but then noticed this: https://github.com/solana-labs/solana/blob/aadf4b9b63e2e754c8e2b96ea1b852c9d622d9bd/programs/bpf_loader/src/lib.rs#L157

bpf_loader doesn't use the verifier and rightly so imo - it's an extra pass over all the instructions and seems to do very minimal verification anyway.

@Lichtso
Copy link

Lichtso commented Jan 25, 2022

The call to the verifier is separated to measure the time spent there (I guess):
https://github.com/solana-labs/solana/blob/aadf4b9b63e2e754c8e2b96ea1b852c9d622d9bd/programs/bpf_loader/src/lib.rs#L172

But the verification pass should definitively happen.

@alessandrod alessandrod merged commit e8b4a0a into solana-labs:main Feb 3, 2022
@Lichtso Lichtso mentioned this pull request Jun 5, 2023
18 tasks
nvjle pushed a commit to anza-xyz/llvm-project that referenced this pull request Dec 21, 2023
This PR addressed two more items in solana-labs/solana#34250. 
It removes the little endian byte swap instructions (solana-labs/rbpf#493) 
and the input buffers related instructions (solana-labs/rbpf#251).
LucasSte added a commit to LucasSte/llvm-project that referenced this pull request Jan 31, 2024
This PR addressed two more items in solana-labs/solana#34250.
It removes the little endian byte swap instructions (solana-labs/rbpf#493)
and the input buffers related instructions (solana-labs/rbpf#251).
LucasSte added a commit to anza-xyz/llvm-project that referenced this pull request Feb 16, 2024
This PR addressed two more items in solana-labs/solana#34250.
It removes the little endian byte swap instructions (solana-labs/rbpf#493)
and the input buffers related instructions (solana-labs/rbpf#251).
LucasSte added a commit to LucasSte/llvm-project that referenced this pull request Jun 28, 2024
This PR addressed two more items in solana-labs/solana#34250.
It removes the little endian byte swap instructions (solana-labs/rbpf#493)
and the input buffers related instructions (solana-labs/rbpf#251).
LucasSte added a commit to anza-xyz/llvm-project that referenced this pull request Aug 19, 2024
This PR addressed two more items in solana-labs/solana#34250.
It removes the little endian byte swap instructions (solana-labs/rbpf#493)
and the input buffers related instructions (solana-labs/rbpf#251).
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

Successfully merging this pull request may close these issues.

2 participants