From 2197b25c207a81e893d3ac531c1bf215d8ee442d Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 15 Apr 2025 15:15:13 +0200 Subject: pkg/manager: propagate context to the bug reproduction If the context is cancelled, we need to make sure that the reproduction process is aborted as well. --- syz-manager/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'syz-manager') diff --git a/syz-manager/manager.go b/syz-manager/manager.go index f76d0ad8d..a8189e62f 100644 --- a/syz-manager/manager.go +++ b/syz-manager/manager.go @@ -505,8 +505,8 @@ func reportReproError(err error) { log.Errorf("repro failed: %v", err) } -func (mgr *Manager) RunRepro(crash *manager.Crash) *manager.ReproResult { - res, stats, err := repro.Run(context.Background(), crash.Output, repro.Environment{ +func (mgr *Manager) RunRepro(ctx context.Context, crash *manager.Crash) *manager.ReproResult { + res, stats, err := repro.Run(ctx, crash.Output, repro.Environment{ Config: mgr.cfg, Features: mgr.enabledFeatures, Reporter: mgr.reporter, -- cgit mrf-deployment