Branch: refs/heads/gh-readonly-queue/master/pr-7448-79fa8e14eab3887cfdbd5df7f9ee145c0c1c17bb
Home:
https://github.com/google/syzkaller
Commit: be4246033da2cf2afe7e1cb710d33496687ef799
https://github.com/google/syzkaller/commit/be4246033da2cf2afe7e1cb710d33496687ef799
Author: Chuyang Wang <
chuy...@google.com>
Date: 2026-06-03 (Wed, 03 Jun 2026)
Changed paths:
M pkg/instance/execprog.go
Log Message:
-----------
pkg/instance: fix select race on context cancellation
In runStreamAndCollectStdout, when the parent context is cancelled,
the VM run implementation stops and (in some cases) closes both outc
and errc channels. Because select statement cases are chosen
pseudo-randomly when multiple channels are ready, Go would
occasionally select <-errc and return nil instead of returning
context.Canceled.
Fix this by prioritizing the context cancellation error when reading
from the errc channel.
To unsubscribe from these emails, change your notification settings at
https://github.com/google/syzkaller/settings/notifications