From e09601ff0fad36b90ec8539f5e3d0fcfc615d42d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 11 Mar 2026 05:56:50 +0100 Subject: syz-agent: systematically show verbose error messages Currently we added custom code to kernel build action, and few others to expose verbose errors from executed binaries (notably make). But lots of other binary executions missing this logic, e.g. for git failure we currently see unuseful: failed to run ["git" "fetch" "--force" "--tags" exit status 128 Instead of adding more and more custom code to do the same, remove the custom code and always add verbose output in syz-agent and tools/syz-aflow. --- pkg/aflow/action/kernel/build.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/aflow/action/kernel') diff --git a/pkg/aflow/action/kernel/build.go b/pkg/aflow/action/kernel/build.go index c10dc7d93..4d37dca86 100644 --- a/pkg/aflow/action/kernel/build.go +++ b/pkg/aflow/action/kernel/build.go @@ -52,8 +52,8 @@ func BuildKernel(buildDir, srcDir, cfg string, cleanup bool) error { "ccache", buildDir, runtime.NumCPU()) const compileCommands = "compile_commands.json" makeArgs = append(makeArgs, "-s", path.Base(image), compileCommands) - if out, err := osutil.RunCmd(time.Hour, srcDir, "make", makeArgs...); err != nil { - return aflow.FlowError(fmt.Errorf("make failed: %w\n%s", err, out)) + if _, err := osutil.RunCmd(time.Hour, srcDir, "make", makeArgs...); err != nil { + return aflow.FlowError(err) } if !cleanup { return nil -- cgit mrf-deployment