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

wasm2c modules in signal handlers #2519

Closed
SoniEx2 opened this issue Dec 6, 2024 · 2 comments
Closed

wasm2c modules in signal handlers #2519

SoniEx2 opened this issue Dec 6, 2024 · 2 comments

Comments

@SoniEx2
Copy link
Contributor

SoniEx2 commented Dec 6, 2024

presumably it should be possible to use wasm2c modules within signal handlers (but not across them). should this be an officially supported use-case?

@shravanrn
Copy link
Collaborator

Probably not unless there is an actual production use case and an active maintainer, as this sort of thing is tricky to implement securely. Informally, if you don't use wasi in your wasm module AND if the wasm module you are using in the signal handler is not also used in (1) the main program (2) other signal handlers (3) in an re-entrant signal handler, then this should probably be safe.

@shravanrn
Copy link
Collaborator

(Closing for now. feel free to reopen if needed.)

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

No branches or pull requests

2 participants