From a10a183e260f0ea1a0c37e84ca5c60f28c13e3fd Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 24 May 2024 11:42:58 +0200 Subject: 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. --- syz-ci/manager.go | 5 +++-- 1 file 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 -- cgit mrf-deployment