syzkaller/syz-manager
Dmitry Vyukov 9b1f3e6653 prog: control program length
We have _some_ limits on program length, but they are really soft.
When we ask to generate a program with 10 calls, sometimes we get
100-150 calls. There are also no checks when we accept external
programs from corpus/hub. Issue #1630 contains an example where
this crashes VM (executor limit on number of 1000 resources is
violated). Larger programs also harm the process overall (slower,
consume more memory, lead to monster reproducers, etc).

Add a set of measure for hard control over program length.
Ensure that generated/mutated programs are not too long;
drop too long programs coming from corpus/hub in manager;
drop too long programs in hub.
As a bonus ensure that mutation don't produce programs with
0 calls (which is currently possible and happens).

Fixes #1630
2020-03-13 13:16:53 +01:00
..
cover.go pkg/cover: hierarchical coverage reports 2019-07-26 19:32:14 +02:00
html.go all: fix new golangci-lint warnings 2020-03-13 08:26:02 +01:00
hub.go prog: control program length 2020-03-13 13:16:53 +01:00
manager.go prog: control program length 2020-03-13 13:16:53 +01:00
rpc.go prog: control program length 2020-03-13 13:16:53 +01:00
stats.go syz-manager: don't show hub stats if hub is not enabled 2020-01-05 11:46:34 +01:00