wasmtime icon indicating copy to clipboard operation
wasmtime copied to clipboard

Atomic instructions are not fuzzed

Open alexcrichton opened this issue 1 month ago • 4 comments

Currently wasm-smith doesn't generate any atomic instructions at all, meaning there's no fuzz coverage of atomics. Before re-enabling threads as tier 1 we should ensure that this is taken care of.

alexcrichton avatar Nov 21 '25 16:11 alexcrichton

Subscribe to Label Action

cc @fitzgen

This issue or pull request has been labeled: "fuzzing"

Thus the following users have been cc'd because of the following labels:

  • fitzgen: fuzzing

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

github-actions[bot] avatar Nov 21 '25 16:11 github-actions[bot]

Filed an upstream issue for adding this support to wasm-smith: https://github.com/bytecodealliance/wasm-tools/issues/2384

fitzgen avatar Nov 21 '25 18:11 fitzgen

should this be closed now that https://github.com/bytecodealliance/wasm-tools/pull/2386 has been merged ?

danielvallance avatar Nov 30 '25 18:11 danielvallance

Not quite unfortunately. Fuzzing of threads was disabled in https://github.com/bytecodealliance/wasmtime/pull/12036 and even with an update to wasm-tools Wasmtime still won't be fuzzing these instructions. Fuzzing currently can't happen due to ResourceLimiter not applying to shared memories, and that'll need to get fixed to turn this back on.

alexcrichton avatar Dec 01 '25 16:12 alexcrichton