aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-07-19 14:14:10 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-07-20 07:33:29 +0000
commitd922ca7efda29b23dfb85abe37aee1641c4fbe05 (patch)
tree7c7d78500ef5536f36717c45de2e0adeb1a62a33 /pkg/bisect
parent37668e463d42d68846539559443ec458c9b05acb (diff)
syz-ci: specify per-manager bisection backports
It might be the case that the kernels that are being fuzzed on syz-ci require their own backports to build/test older revisions during bisection. Let users specify it in the syz-ci config.
Diffstat (limited to 'pkg/bisect')
-rw-r--r--pkg/bisect/bisect.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go
index dab1cb27c..cd20cca07 100644
--- a/pkg/bisect/bisect.go
+++ b/pkg/bisect/bisect.go
@@ -58,6 +58,8 @@ type KernelConfig struct {
// this minimized one.
BaselineConfig []byte
Userspace string
+ // Extra commits to cherry pick to older kernel revisions.
+ Backports []vcs.BackportCommit
}
type SyzkallerConfig struct {
@@ -566,7 +568,10 @@ func (env *env) build() (*vcs.Commit, string, error) {
}
bisectEnv, err := env.bisecter.EnvForCommit(
- env.cfg.DefaultCompiler, env.cfg.CompilerType, env.cfg.BinDir, current.Hash, env.kernelConfig)
+ env.cfg.DefaultCompiler, env.cfg.CompilerType,
+ env.cfg.BinDir, current.Hash, env.kernelConfig,
+ env.cfg.Kernel.Backports,
+ )
if err != nil {
return current, "", err
}