pr5.3.2
This commit is contained in:
@@ -1,53 +1,3 @@
|
||||
# PR-5.4 — Verifier Integration for Syscall Slot Rules
|
||||
|
||||
### Briefing
|
||||
|
||||
The verifier must ensure that syscall calls respect argument and return slot counts before runtime.
|
||||
|
||||
### Target
|
||||
|
||||
* Extend verifier to validate syscall usage.
|
||||
|
||||
### Work items
|
||||
|
||||
* At syscall call sites:
|
||||
|
||||
* Look up `SyscallMeta`.
|
||||
* Ensure enough argument slots are available.
|
||||
* Ensure stack shape after call matches `ret_slots`.
|
||||
* Emit verifier errors for mismatches.
|
||||
|
||||
### Acceptance checklist
|
||||
|
||||
* [ ] Verifier rejects incorrect syscall slot usage.
|
||||
* [ ] Correct programs pass.
|
||||
* [ ] Runtime traps are not required for verifier-detectable cases.
|
||||
* [ ] `cargo test` passes.
|
||||
|
||||
### Tests
|
||||
|
||||
* Add tests:
|
||||
|
||||
* Too few args for syscall → verifier error.
|
||||
* Correct args/returns → passes.
|
||||
|
||||
### Junie instructions
|
||||
|
||||
**You MAY:**
|
||||
|
||||
* Extend verifier with syscall checks.
|
||||
|
||||
**You MUST NOT:**
|
||||
|
||||
* Change runtime trap logic.
|
||||
* Add new trap categories.
|
||||
|
||||
**If unclear:**
|
||||
|
||||
* Ask before enforcing slot rules.
|
||||
|
||||
---
|
||||
|
||||
# PR-5.5 — Remove Legacy Syscall Entry Paths
|
||||
|
||||
### Briefing
|
||||
|
||||
Reference in New Issue
Block a user