aboutsummaryrefslogtreecommitdiffstats
path: root/syz-verifier
diff options
context:
space:
mode:
authortarasmadan <89859571+tarasmadan@users.noreply.github.com>2021-10-06 20:15:54 +0200
committerGitHub <noreply@github.com>2021-10-06 20:15:54 +0200
commit62ee098758aa41a10767827625d32a871279eec9 (patch)
treeb9e8899e75f7da9158a12d29807bb325f49b86cc /syz-verifier
parent0a63fd369d13c0ab63f5055e3c734222f4d02631 (diff)
syz-verifier: fixes the crash of the app run w/o parameters (#2800)
* syz-verifier: fixes the crash of the app run w/o parameters * syz-verifier: extend command line params description
Diffstat (limited to 'syz-verifier')
-rwxr-xr-xsyz-verifier/main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/syz-verifier/main.go b/syz-verifier/main.go
index 0a047231d..c429fc5a3 100755
--- a/syz-verifier/main.go
+++ b/syz-verifier/main.go
@@ -113,7 +113,7 @@ type runnerProgs map[int]*progInfo
func main() {
var cfgs tool.CfgsFlag
- flag.Var(&cfgs, "configs", "list of kernel-specific comma-sepatated configuration files ")
+ flag.Var(&cfgs, "configs", "[MANDATORY] list of at least two kernel-specific comma-sepatated configuration files")
flagDebug := flag.Bool("debug", false, "dump all VM output to console")
flagStats := flag.String("stats", "", "where stats will be written when"+
"execution of syz-verifier finishes, defaults to stdout")
@@ -136,6 +136,11 @@ func main() {
pools[idx] = pi
}
+ if len(pools) < 2 {
+ flag.Usage()
+ os.Exit(1)
+ }
+
cfg := pools[0].cfg
workdir, target, sysTarget, addr := cfg.Workdir, cfg.Target, cfg.SysTarget, cfg.RPC
for idx := 1; idx < len(pools); idx++ {