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

chore(fuzzing): extend syscall whitelist in sandbox fuzzers #3659

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

venkkatesh-sekar
Copy link
Member

@venkkatesh-sekar venkkatesh-sekar commented Jan 28, 2025

In the sandbox monitor function, the parent thread calls std::thread::sleep(std::time::Duration::from_secs(1)) to allow the sandbox to spawn all its threads before tracing begins.

However, this approach is unreliable—the sleep duration is arbitrary, and attachment can occur at any point in execution. This led to getrandom failures in CI.

This PR removes the sleep timer and instead continuously fetches tids as threads spawn, attaching to them dynamically. The trade-off is that it requires knowing the number of sandbox threads in advance.

@github-actions github-actions bot added the chore label Jan 28, 2025
@venkkatesh-sekar venkkatesh-sekar changed the title chore(fuzzing): Extend syscall whitelist in sandbox fuzzers chore(fuzzing): extend syscall whitelist in sandbox fuzzers Jan 29, 2025
@venkkatesh-sekar venkkatesh-sekar marked this pull request as ready for review January 29, 2025 11:01
@venkkatesh-sekar venkkatesh-sekar requested a review from a team as a code owner January 29, 2025 11:01
@venkkatesh-sekar venkkatesh-sekar added this pull request to the merge queue Jan 30, 2025
Merged via the queue into master with commit cfdddee Jan 30, 2025
25 checks passed
@venkkatesh-sekar venkkatesh-sekar deleted the vsekar/add_getrandom branch January 30, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants