From 6d01f20890edf11b99bb54573025b11c1acd2d52 Mon Sep 17 00:00:00 2001 From: zsm-oss <31279919+zsm-oss@users.noreply.github.com> Date: Thu, 15 Jun 2023 06:58:56 -0700 Subject: syz-cover: accept canonical module info (#3964) * syz-manager: endpoint to display canonical modules Add a "/modules" endpoint that displays canonical module information. * tools/syz-cover: accept module info Add support to syz-cover to generate coverage reports for drivers that are built as kernel modules. At the moment, ReportGenerator instances are created with no []host.KernelModule information. As a result, discoverModulesLinux() does not process kernel modules, only the vmlinux. Add a "-modules" flag that accepts module info. This info can be fetched from the web UI at "/modules". Usage: $ ./bin/syz-cover -arch arm64 -kernel_obj ${KOBJ} -kernel_src ${KSRC} \ -json ~/report.json -modules ~/modules \ ~/rawcover --- pkg/host/machine_info.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg') diff --git a/pkg/host/machine_info.go b/pkg/host/machine_info.go index 6dd2f0686..3c04becab 100644 --- a/pkg/host/machine_info.go +++ b/pkg/host/machine_info.go @@ -55,7 +55,7 @@ type machineInfoFunc struct { } type KernelModule struct { - Name string - Addr uint64 - Size uint64 + Name string `json:"Name"` + Addr uint64 `json:"Addr"` + Size uint64 `json:"Size"` } -- cgit mrf-deployment