aboutsummaryrefslogtreecommitdiffstats
path: root/syz-manager
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-09-12 15:28:20 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-09-12 16:29:23 +0000
commit41b5d1787276981454609f1e9ca17f335e8223b5 (patch)
tree0566bf6d7a24819572fec10704a9cdad91035cbc /syz-manager
parentaa0392c8b3d691caa48ae4797d566c9dd3ba33c3 (diff)
syz-manager: don't send fake coverage corpus to hub
If a manager uses fake coverage, don't send its corpus to the hub. It should be lower quality than coverage-guided corpus. However still send repros and accept new inputs.
Diffstat (limited to 'syz-manager')
-rw-r--r--syz-manager/hub.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/syz-manager/hub.go b/syz-manager/hub.go
index c431ce034..6acedf37e 100644
--- a/syz-manager/hub.go
+++ b/syz-manager/hub.go
@@ -102,6 +102,12 @@ func (hc *HubConnector) loop() {
var doneOnce bool
for query := 0; ; time.Sleep(10 * time.Minute) {
corpus, repros := hc.mgr.getMinimizedCorpus()
+ if !hc.cfg.Cover {
+ // If we are using fake coverage, don't send our corpus to the hub.
+ // It should be lower quality than coverage-guided corpus.
+ // However still send repros and accept new inputs.
+ corpus = nil
+ }
hc.newRepros = append(hc.newRepros, repros...)
if hub == nil {
var err error