aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/pkg/api/api.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-03-07 22:51:08 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-03-11 21:04:55 +0000
commit9b66d0338b41fbefc27b253ad896dec28bf030b2 (patch)
treefa724c3576176c94bb4e9e79da8b286da3943724 /syz-cluster/pkg/api/api.go
parent1e2e510fd507e3bd0ae0c59576ab7df2882149f1 (diff)
syz-cluster: add net config
Refactor Tree structure to host both the kernel config and the fuzzer config. Add some basic net fuzzing configs.
Diffstat (limited to 'syz-cluster/pkg/api/api.go')
-rw-r--r--syz-cluster/pkg/api/api.go35
1 files changed, 23 insertions, 12 deletions
diff --git a/syz-cluster/pkg/api/api.go b/syz-cluster/pkg/api/api.go
index 535808e29..1b2b8f79f 100644
--- a/syz-cluster/pkg/api/api.go
+++ b/syz-cluster/pkg/api/api.go
@@ -25,12 +25,13 @@ type FuzzConfig struct {
// The triage step of the workflow will request these from controller.
type Tree struct {
- Name string `json:"name"` // Primary key.
- URL string `json:"URL"`
- Branch string `json:"branch"`
- EmailLists []string `json:"email_lists"`
- Priority int64 `json:"priority"` // Higher numbers mean higher priority.
- ConfigName string `json:"config_name"`
+ Name string `json:"name"` // Primary key.
+ URL string `json:"URL"`
+ Branch string `json:"branch"`
+ EmailLists []string `json:"email_lists"`
+ Priority int64 `json:"priority"` // Higher numbers mean higher priority.
+ KernelConfig string `json:"kernel_config"`
+ FuzzConfig string `json:"fuzz_config"`
}
type BuildRequest struct {
@@ -147,11 +148,21 @@ type BuildInfo struct {
// Let them stay here until we find a better place.
var DefaultTrees = []*Tree{
{
- Name: `torvalds`,
- URL: `https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux`,
- Branch: `master`,
- Priority: 0,
- EmailLists: []string{},
- ConfigName: `upstream-apparmor-kasan.config`,
+ Name: `torvalds`,
+ URL: `https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux`,
+ Branch: `master`,
+ Priority: 0,
+ EmailLists: []string{},
+ KernelConfig: `upstream-apparmor-kasan.config`,
+ FuzzConfig: `all`,
+ },
+ {
+ Name: `netdev`,
+ URL: `https://kernel.googlesource.com/pub/scm/linux/kernel/git/netdev/net.git`,
+ Branch: `main`,
+ Priority: 1,
+ EmailLists: []string{`netdev@vger.kernel.org`},
+ KernelConfig: `upstream-apparmor-kasan.config`,
+ FuzzConfig: `net`,
},
}