From 2ee7713dc5bbcc1972f75a1083a7e4d777c45f63 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 9 Sep 2024 14:58:09 +0200 Subject: pkg/rpcserver, syz-manager: always include the program from Comm It does sometimes happen that the kernel is crashed so fast that syz-manager is not notified that the syz-executor has started running the faulty input. In cases when the exact program is known from Comm, let's make sure it's always present in the log of the last executed programs. --- syz-manager/manager.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'syz-manager') diff --git a/syz-manager/manager.go b/syz-manager/manager.go index 4b89277d4..c090d1a0d 100644 --- a/syz-manager/manager.go +++ b/syz-manager/manager.go @@ -518,7 +518,11 @@ func (mgr *Manager) fuzzerInstance(ctx context.Context, inst *vm.Instance, updIn // This litters the log and we want to prevent it. serv.StopFuzzing(inst.Index()) })) - lastExec, machineInfo := serv.ShutdownInstance(inst.Index(), rep != nil) + var extraExecs []report.ExecutorInfo + if rep != nil && rep.Executor != nil { + extraExecs = []report.ExecutorInfo{*rep.Executor} + } + lastExec, machineInfo := serv.ShutdownInstance(inst.Index(), rep != nil, extraExecs...) if rep != nil { rpcserver.PrependExecuting(rep, lastExec) if len(vmInfo) != 0 { -- cgit mrf-deployment