From f02c04b68795a61c1a8bf8b044dacca2c1f29eb4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 23 May 2024 10:17:44 +0200 Subject: syz-manager: repair VM-less mode VM-less mode stopped working after addition of RPCServer.createInstance. Repair it. --- pkg/mgrconfig/load.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg') diff --git a/pkg/mgrconfig/load.go b/pkg/mgrconfig/load.go index cfe26c573..db44caa89 100644 --- a/pkg/mgrconfig/load.go +++ b/pkg/mgrconfig/load.go @@ -36,6 +36,11 @@ type Derived struct { Syscalls []int NoMutateCalls map[int]bool // Set of IDs of syscalls which should not be mutated. Timeouts targets.Timeouts + + // Special debugging/development mode specified by VM type "none". + // In this mode syz-manager does not start any VMs, but instead a user is supposed + // to start syz-fuzzer process in a VM manually. + VMLess bool } func LoadData(data []byte) (*Config, error) { @@ -191,6 +196,7 @@ func Complete(cfg *Config) error { } } cfg.initTimeouts() + cfg.VMLess = cfg.Type == "none" return nil } -- cgit mrf-deployment