diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-05-23 10:17:44 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-27 14:15:44 +0000 |
| commit | f02c04b68795a61c1a8bf8b044dacca2c1f29eb4 (patch) | |
| tree | 00b1c5c09977b2b21c680c5acd78293bfb1e1606 /pkg | |
| parent | 0c94958922ede180cdca867053826c1bb7d4c9e1 (diff) | |
syz-manager: repair VM-less mode
VM-less mode stopped working after addition of RPCServer.createInstance.
Repair it.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/mgrconfig/load.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |
