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

Missing syscalls in lind-wasm #55

Closed
robinyuan1002 opened this issue Nov 25, 2024 · 3 comments
Closed

Missing syscalls in lind-wasm #55

robinyuan1002 opened this issue Nov 25, 2024 · 3 comments
Assignees
Labels
RawPOSIX RawPOSIX related issue WASM WASM related issue

Comments

@robinyuan1002
Copy link
Collaborator

When debugging coreutils mv, I found openat, arch_prctl, set_tid_address, set_robust_list, rseq, mprotect, getrandom, brk, exit_group missed in current lind-wasm.

That would be great if @Yaxuan-w could look at this for further fix plans.

@robinyuan1002 robinyuan1002 added the WASM WASM related issue label Nov 25, 2024
@Yaxuan-w Yaxuan-w added the RawPOSIX RawPOSIX related issue label Nov 26, 2024
@Yaxuan-w
Copy link
Member

There're lots of syscalls not being handled by lind-wasm (700+) and it will cause coreutils. After discussing with @qianxichen233, we decided to start with the variants of the system call we have already implemented. (ie: unlink and unlinkat / dup and dup3 / etc.).

The first step will be finding corresponding variants by comparing their names and generate list. I think this would be a good first issue for @AryanAjmera18 to get familiar with lind-wasm.

Reference:
Whole syscall list supported by linux kernel

We can decide detailed implementation case by case after getting the variant list.

@rennergade
Copy link
Contributor

I mentioned this on slack but I think a great first step here is to compile coreutils for lind-nacl and compare the config files to what we have here in Lind-Wasm. It would be very valuable to understand what's happening with the #defines

@Yaxuan-w
Copy link
Member

Further discussion on new issue #87

Close this one to avoid duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RawPOSIX RawPOSIX related issue WASM WASM related issue
Projects
None yet
Development

No branches or pull requests

4 participants