From 7aa6bd6859a419bfb445a3621a14124fd7cecced Mon Sep 17 00:00:00 2001 From: bobogei81123 Date: Sat, 12 Sep 2020 08:17:22 -0700 Subject: syz-manager: collect machine information * syz-manager: finish a prototype Extract machine info from /proc/cpuinfo and /sys/kvm*/parameters/* and send it from syz-fuzzer to syz-manager. Append the machine info after crash reports. * syz-manager: refactor the code - Add kvm parameters machine info. - Store the machine info in the RPCServer instead of the manager. - Store the machine info in another field instead of appending it after the original report - Save the machine info locally in machineInfo*. * syz-manager: fix coding-style problems * syz-fuzzer: improve the output from /proc/cpuinfo Improve the machine info extracted from /proc/cpuinfo by grouping lines with the same key. * syz-manager: fix race condition in runInstance * syz-fuzzer: add tests for collecting machine info - Add some tests to test collecting machine information. - Split readCPUInfo into scanCPUInfo so that we can test it. * syz-fuzzer: refactor scanCPUInfo Refactor scanCPUInfo so that no sorting is needed. * syz-fuzzer: refactor some code Fix some issue that was pointed out on Github. --- pkg/rpctype/rpctype.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/rpctype/rpctype.go b/pkg/rpctype/rpctype.go index fcc01a99a..c370b0a0e 100644 --- a/pkg/rpctype/rpctype.go +++ b/pkg/rpctype/rpctype.go @@ -25,7 +25,8 @@ type RPCCandidate struct { } type ConnectArgs struct { - Name string + Name string + MachineInfo []byte } type ConnectRes struct { -- cgit mrf-deployment