Skip to content

Generate Struct RMW operations in the fuzzer#8535

Merged
tlively merged 5 commits into
mainfrom
fuzz-struct-rmw
Mar 30, 2026
Merged

Generate Struct RMW operations in the fuzzer#8535
tlively merged 5 commits into
mainfrom
fuzz-struct-rmw

Conversation

@tlively

@tlively tlively commented Mar 27, 2026

Copy link
Copy Markdown
Member

And allow fuzzing of initial contents that contain these operations.

And allow fuzzing of initial contents that contain these operations.
@tlively tlively requested a review from a team as a code owner March 27, 2026 02:00
@tlively tlively requested review from kripken and removed request for a team March 27, 2026 02:00

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm % suggestion (also in the second function)

Comment thread src/tools/fuzzing/fuzzing.cpp Outdated
Comment on lines +5603 to +5605
Type::isSubType(
type,
Type(HeapTypes::any.getBasic(type.getHeapType().getShared()), Nullable));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Type::isSubType(
type,
Type(HeapTypes::any.getBasic(type.getHeapType().getShared()), Nullable));
type.getHeapType().getTop().isMaybeShared(HeapTypes::any)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works here, but for cmpxchg below we're checking for a subtype of eq, so we can't just use getTop().

@tlively tlively merged commit 9e623c7 into main Mar 30, 2026
16 checks passed
@tlively tlively deleted the fuzz-struct-rmw branch March 30, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants