From ba85f78eaa5355d3f47bd5a11663d614b2c1fa2d Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 1 Feb 2022 10:04:25 +0000 Subject: syz-ci: set PreserveCorpus to false There's not much point in keeping disabled progs in a corpus on syz-ci. --- syz-ci/manager.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/syz-ci/manager.go b/syz-ci/manager.go index 14e443c59..066b00188 100644 --- a/syz-ci/manager.go +++ b/syz-ci/manager.go @@ -507,6 +507,13 @@ func (mgr *Manager) writeConfig(buildTag string) (string, error) { } mgrcfg.Tag = buildTag mgrcfg.Workdir = mgr.workDir + // There's not much point in keeping disabled progs in the syz-ci corpuses. + // If the syscalls on some instance are enabled again, syz-hub will provide + // it with the missing progs over time. + // And, on the other hand, PreserveCorpus=false lets us disable syscalls in + // the least destructive way for the rest of the corpus - calls will be cut + // out the of programs and the leftovers will be retriaged. + mgrcfg.PreserveCorpus = false if err := instance.SetConfigImage(mgrcfg, mgr.currentDir, false); err != nil { return "", err } -- cgit mrf-deployment