aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-05-31 10:36:26 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-06-03 09:38:33 +0000
commitb5b63a1dac03cc61a04f2c8cd025a8a8435851ce (patch)
tree34769b0559cf61c8ad4cdd1c07d017bc14298ee0
parent7783468bf6046113f58a8a7b5de030584639e236 (diff)
syz-manager: fix web interface in VM-less mode
There is no VM loop an answer reproRequest, so don't wait for it.
-rw-r--r--syz-manager/http.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/syz-manager/http.go b/syz-manager/http.go
index 3eb674051..60d53430f 100644
--- a/syz-manager/http.go
+++ b/syz-manager/http.go
@@ -560,9 +560,12 @@ func (mgr *Manager) httpFilterPCs(w http.ResponseWriter, r *http.Request) {
func (mgr *Manager) collectCrashes(workdir string) ([]*UICrashType, error) {
// Note: mu is not locked here.
- reproReply := make(chan map[string]bool)
- mgr.reproRequest <- reproReply
- repros := <-reproReply
+ var repros map[string]bool
+ if !mgr.cfg.VMLess {
+ reproReply := make(chan map[string]bool)
+ mgr.reproRequest <- reproReply
+ repros = <-reproReply
+ }
crashdir := filepath.Join(workdir, "crashes")
dirs, err := osutil.ListDir(crashdir)