aboutsummaryrefslogtreecommitdiffstats
path: root/syz-ci/manager.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-05-24 11:42:58 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-05-24 15:24:00 +0000
commita10a183e260f0ea1a0c37e84ca5c60f28c13e3fd (patch)
treeb182f167e4e2cd0c490423507b6fb13950f2ee4a /syz-ci/manager.go
parent8f98448ed32de3ed37dd5bed05414b81e16e7437 (diff)
syz-ci: fix RPC connections to test syz-managers
For GCE-based fuzzing, we need to bind to a real networking interface to accept connections from the VMs.
Diffstat (limited to 'syz-ci/manager.go')
-rw-r--r--syz-ci/manager.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/syz-ci/manager.go b/syz-ci/manager.go
index 2f4e872f8..14ecaa9b5 100644
--- a/syz-ci/manager.go
+++ b/syz-ci/manager.go
@@ -549,9 +549,10 @@ func (mgr *Manager) createTestConfig(imageDir string, info *BuildInfo) (*mgrconf
*mgrcfg = *mgr.managercfg
mgrcfg.Name += "-test"
mgrcfg.Tag = info.KernelCommit
- // Use random free ports to not collide with the actual manager.
+ // Use designated ports not to collide with the ports of other managers.
mgrcfg.HTTP = fmt.Sprintf("localhost:%v", mgr.mgrcfg.testHTTPPort)
- mgrcfg.RPC = fmt.Sprintf("localhost:%v", mgr.mgrcfg.testRPCPort)
+ // For GCE VMs, we need to bind to a real networking interface, so no localhost.
+ mgrcfg.RPC = fmt.Sprintf(":%v", mgr.mgrcfg.testRPCPort)
mgrcfg.Workdir = filepath.Join(imageDir, "workdir")
if err := instance.SetConfigImage(mgrcfg, imageDir, true); err != nil {
return nil, err