From 8a71a7acb8f7d65994b038587cf2e6d35ed4e5b8 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 21 Aug 2025 15:53:47 +0200 Subject: pkg/fuzzer/queue: copy more field in Tee Copy everything that might be important during execution on other kernels/VM pools. Add a test to verify it. The functionality is actively used to clone requests in the diff fuzzer. --- pkg/fuzzer/queue/queue.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pkg/fuzzer/queue/queue.go') diff --git a/pkg/fuzzer/queue/queue.go b/pkg/fuzzer/queue/queue.go index ca2d76092..20509dcb7 100644 --- a/pkg/fuzzer/queue/queue.go +++ b/pkg/fuzzer/queue/queue.go @@ -566,7 +566,13 @@ func (t *tee) Next() *Request { return nil } t.queue.Submit(&Request{ - Prog: req.Prog.Clone(), + // It makes little sense to copy other fields if these requests + // are to be executed in a different environment. + Type: req.Type, + ExecOpts: req.ExecOpts, + Prog: req.Prog.Clone(), + BinaryFile: req.BinaryFile, + GlobPattern: req.GlobPattern, }) return req } -- cgit mrf-deployment