-
Notifications
You must be signed in to change notification settings - Fork 173
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
Refactor - Assign SBPF versions to SIMDs #602
base: main
Are you sure you want to change the base?
Conversation
88e0c85
to
b6d8898
Compare
b6d8898
to
4b2c3df
Compare
dcf9245
to
785454e
Compare
6f0ba50
to
08bcb37
Compare
08bcb37
to
60a4eed
Compare
60a4eed
to
dbd0844
Compare
@@ -402,7 +402,7 @@ impl Verifier for RequisiteVerifier { | |||
ebpf::CALL_REG => { check_callx_register(&insn, insn_ptr, sbpf_version)?; }, | |||
ebpf::EXIT if !sbpf_version.static_syscalls() => {}, | |||
ebpf::RETURN if sbpf_version.static_syscalls() => {}, | |||
ebpf::SYSCALL if sbpf_version.static_syscalls() => { | |||
ebpf::SYSCALL if sbpf_version.stricter_controlflow() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is still static syscall isn't it?
@@ -2068,7 +2070,7 @@ mod test { | |||
assert!(matches!( | |||
ElfExecutable::parse_ro_sections( | |||
&config, | |||
&SBPFVersion::V1, // v2 requires optimize_rodata=true | |||
&SBPFVersion::V0, // v2 requires optimize_rodata=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should V3 in the comment now?
- `add64 reg, imm` can use `r11` as destination register | ||
|
||
### until v3 | ||
- The targets of `call` instructions (which includes `syscall` instructions) is checked at runtime not verification time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The targets of `call` instructions (which includes `syscall` instructions) is checked at runtime not verification time | |
- The targets of `call` instructions (which includes `syscall` instructions) are checked at runtime not verification time |
|
||
### until v3 | ||
- The targets of `call` instructions (which includes `syscall` instructions) is checked at runtime not verification time | ||
- The offset of jump instructions must be limited to the range of the bytecode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be the range of the function?
No description provided.