From 0b7abdf922ce6cd06d8d110a934adbe7e339417b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 15 Jan 2020 17:53:04 +0100 Subject: syz-manager: don't send more than 100K inputs to hub Never send more than 100K, this is never healthy but happens episodically due to various reasons: problems with fallback coverage, bugs in kcov, fuzzer exploiting our infrastructure, etc. --- syz-manager/hub.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/syz-manager/hub.go b/syz-manager/hub.go index 1b05daf87..ff0f26066 100644 --- a/syz-manager/hub.go +++ b/syz-manager/hub.go @@ -88,6 +88,13 @@ func (hc *HubConnector) connect(corpus [][]byte) (*rpctype.RPCClient, error) { hubCorpus[hash.Hash(inp)] = true a.Corpus = append(a.Corpus, inp) } + // Never send more than this, this is never healthy but happens episodically + // due to various reasons: problems with fallback coverage, bugs in kcov, + // fuzzer exploiting our infrastructure, etc. + const max = 100 * 1000 + if len(a.Corpus) > max { + a.Corpus = a.Corpus[:max] + } // Hub.Connect request can be very large, so do it on a transient connection // (rpc connection buffers never shrink). if err := rpctype.RPCCall(hc.cfg.HubAddr, "Hub.Connect", a, nil); err != nil { -- cgit mrf-deployment