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

Implicit ignore unsupported syscalls #52

Merged
merged 5 commits into from
Apr 16, 2024

Conversation

ImTei
Copy link
Collaborator

@ImTei ImTei commented Apr 16, 2024

Description

There is a difference between Asterisc and Cannon when they face unsupported syscalls.

  • Asterisc: Raise an error (unrecognized syscall)
  • Cannon: Just return 0 (no-op)

Because of this difference, I had to ignore syscalls explicitly to run op-program(#16).
But as op-program is updated after the PR, I found more syscalls used by op-program, which are not handled by Asterisc.

I think this behavior has a potential risk: we may have to update VM contract if we encounter new syscalls as op-program is updated. So I updated the default behavior of handling syscalls to no-op like Cannon.

@ImTei ImTei requested a review from pcw109550 April 16, 2024 21:12
@ImTei ImTei added this pull request to the merge queue Apr 16, 2024
Merged via the queue into master with commit c2fab09 Apr 16, 2024
5 checks passed
@pcw109550 pcw109550 mentioned this pull request Apr 29, 2024
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