From 3f2748a3a15aac63efeb991dee40bfc870ae581d Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Wed, 3 Jul 2024 09:40:45 -0700 Subject: executor: set `source` for the proc mount mount() in gVisor returns EFAULT if source is NULL. It is a gVisor issue and we will fix it. Let's explicitly sets a string source for the proc mount to unblock gVisor jobs. The source string will additionally be useful for troubleshooting mount-related problems in the future, because it is shown in /prod/pid/mountinfo. Signed-off-by: Andrei Vagin --- executor/common_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index da27f1075..336853e4f 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3915,7 +3915,7 @@ static void sandbox_common_mount_tmpfs(void) fail("mount(dev) failed"); if (mkdir("./syz-tmp/newroot/proc", 0700)) fail("mkdir failed"); - if (mount(NULL, "./syz-tmp/newroot/proc", "proc", 0, NULL)) + if (mount("syz-proc", "./syz-tmp/newroot/proc", "proc", 0, NULL)) fail("mount(proc) failed"); if (mkdir("./syz-tmp/newroot/selinux", 0700)) fail("mkdir failed"); -- cgit mrf-deployment