syzkaller/syz-hub
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
..
state prog: control program length 2020-03-13 13:16:53 +01:00
http.go gometalinter: check dot imports 2018-05-03 14:41:34 +02:00
hub_test.go syz-hub: fix auth logic 2018-03-05 14:07:02 +01:00
hub.go syz-manager: factor out rpc serving part 2018-12-26 10:58:23 +01:00