aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorkalder <61064868+kalder@users.noreply.github.com>2022-11-09 10:16:44 -0800
committerGitHub <noreply@github.com>2022-11-09 18:16:44 +0000
commit9afc301b0902504af56d48a53c60cd55090ced15 (patch)
treee79ad71b707abadbc5b5ab66ff49d30aa51a40f1 /pkg
parent65e71451e0794d15f559e9131a3ac23866701e0d (diff)
pkg/report: don't call get_maintainer.pl for cuttlefish
* pkg/report: check for get_maintainer.pl before calling it For Android kernels, this tool will be in a different location (common/scripts/get_maintainer.pl). Currently this causes the Symbolize() call to fail, which stops reproduction. * pkg/report: check for get_maintainer.pl before calling it For Android kernels, this tool will be in a different location (common/scripts/get_maintainer.pl). Currently this causes the Symbolize() call to fail, which stops reproduction.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/report/linux.go6
-rw-r--r--pkg/report/report.go2
2 files changed, 8 insertions, 0 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index 1f14f6c20..fc2494adf 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -370,6 +370,12 @@ func (ctx *linux) Symbolize(rep *Report) error {
rep.Report = ctx.decompileOpcodes(rep.Report, rep)
+ // Skip getting maintainers for Android fuzzing since the kernel source
+ // directory structure is different.
+ if ctx.config.vmType == "cuttlefish" || ctx.config.vmType == "proxyapp" {
+ return nil
+ }
+
// We still do this even if we did not symbolize,
// because tests pass in already symbolized input.
rep.guiltyFile = ctx.extractGuiltyFile(rep)
diff --git a/pkg/report/report.go b/pkg/report/report.go
index 951478d8d..037d03562 100644
--- a/pkg/report/report.go
+++ b/pkg/report/report.go
@@ -118,6 +118,7 @@ func NewReporter(cfg *mgrconfig.Config) (*Reporter, error) {
}
config := &config{
target: cfg.SysTarget,
+ vmType: cfg.Type,
kernelSrc: cfg.KernelSrc,
kernelBuildSrc: cfg.KernelBuildSrc,
kernelObj: cfg.KernelObj,
@@ -161,6 +162,7 @@ var ctors = map[string]fn{
type config struct {
target *targets.Target
+ vmType string
kernelSrc string
kernelBuildSrc string
kernelObj string