From 9b66d0338b41fbefc27b253ad896dec28bf030b2 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 7 Mar 2025 22:51:08 +0100 Subject: syz-cluster: add net config Refactor Tree structure to host both the kernel config and the fuzzer config. Add some basic net fuzzing configs. --- syz-cluster/pkg/api/api.go | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) (limited to 'syz-cluster/pkg/api/api.go') 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`, }, } -- cgit mrf-deployment