diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-02-13 18:13:37 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-02-13 18:13:37 +0100 |
| commit | 5d7b90f1af2e3bf33992b75e7fcf0bab6bf49bd6 (patch) | |
| tree | 0c19897e11d27cf4039b6c2b41b9e48032d2ff32 /vm/gvisor/gvisor.go | |
| parent | c5ed587f4af5e639f7373d8ebf10ac049cb9c71b (diff) | |
vm/gvisor: fix potential deadlock
Fixes #1591
Diffstat (limited to 'vm/gvisor/gvisor.go')
| -rw-r--r-- | vm/gvisor/gvisor.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go index eba72bda1..b65a16edc 100644 --- a/vm/gvisor/gvisor.go +++ b/vm/gvisor/gvisor.go @@ -338,7 +338,9 @@ func (inst *instance) Diagnose() ([]byte, bool) { func init() { if os.Getenv("SYZ_GVISOR_PROXY") != "" { fmt.Fprint(os.Stderr, initStartMsg) - select {} + // If we do select{}, we can get a deadlock panic. + for range time.NewTicker(time.Hour).C { + } } } |
