aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/linux.go
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/vcs/linux.go
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/vcs/linux.go')
-rw-r--r--pkg/vcs/linux.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/vcs/linux.go b/pkg/vcs/linux.go
index 16e1c79fa..589c300b8 100644
--- a/pkg/vcs/linux.go
+++ b/pkg/vcs/linux.go
@@ -139,6 +139,7 @@ func gitReleaseTagToInt(tag string, includeRC bool) uint64 {
func (ctx *linux) EnvForCommit(
defaultCompiler, compilerType, binDir, commit string, kernelConfig []byte,
+ backports []BackportCommit,
) (*BisectEnv, error) {
tagList, err := ctx.previousReleaseTags(commit, true, false, false)
if err != nil {
@@ -167,7 +168,7 @@ func (ctx *linux) EnvForCommit(
Compiler: compiler,
KernelConfig: cf.Serialize(),
}
- err = linuxFixBackports(ctx.git)
+ err = linuxFixBackports(ctx.git, backports...)
if err != nil {
return nil, fmt.Errorf("failed to cherry pick fixes: %w", err)
}