aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorzsm-oss <31279919+zsm-oss@users.noreply.github.com>2023-06-15 06:58:56 -0700
committerGitHub <noreply@github.com>2023-06-15 06:58:56 -0700
commit6d01f20890edf11b99bb54573025b11c1acd2d52 (patch)
tree4df359e6ad1b548dbaf3011fb4b6dcd1fc813318 /pkg
parent757d26edba7d7de8c564a87a262a0b1321ddf804 (diff)
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
Diffstat (limited to 'pkg')
-rw-r--r--pkg/host/machine_info.go6
1 files changed, 3 insertions, 3 deletions
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"`
}