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

executor: use any executor if the avoid mask included all of them #5515

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

avagin
Copy link
Collaborator

@avagin avagin commented Nov 15, 2024

After 9fc8fe0 ("executor: better handling for hanged test processes"), syz-executor's responses may reference procids outside of the [0;procs] range.

If procids are no longer dense on the syz-executor side, we cannot rely on this check in pkg/rpcserver:

	if avoid == (uint64(1)<<runner.procs)-1 {
		avoid = 0
	}

@avagin
Copy link
Collaborator Author

avagin commented Nov 15, 2024

This pr fixes the root cause of https://syzkaller.appspot.com/bug?extid=e3d9c150bd6e97f2fb71.

Copy link
Collaborator

@dvyukov dvyukov left a comment

Choose a reason for hiding this comment

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

Good catch.

executor/executor_runner.h Outdated Show resolved Hide resolved
executor/executor_runner.h Outdated Show resolved Hide resolved
After 9fc8fe0 ("executor: better handling for hanged test
processes"), yz-executor's responses may reference procids outside of
the [0;procs] range.

If procids are no longer dense on the syz-executor side, we cannot rely
on this check in pkg/rpcserver:
```
	if avoid == (uint64(1)<<runner.procs)-1 {
		avoid = 0
	}
```

Signed-off-by: Andrei Vagin <[email protected]>
@dvyukov dvyukov added this pull request to the merge queue Nov 18, 2024
Merged via the queue into google:master with commit e0aa796 Nov 18, 2024
17 checks passed
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

Successfully merging this pull request may close these issues.

2 participants