WARNING: DATA RACE Write at 0x00c00031c260 by goroutine 765: gvisor.dev/gvisor/pkg/sentry/fs/fsutil.(*InodeSimpleAttributes).SetPermissions() pkg/sentry/fs/attr.go:266 +0x74 gvisor.dev/gvisor/pkg/sentry/fs/tty.(*masterInodeOperations).SetPermissions() :1 +0x90 gvisor.dev/gvisor/pkg/sentry/fs.(*Inode).SetPermissions() pkg/sentry/fs/inode.go:334 +0x15f DIAGNOSIS: I1219 20:02:07.573090 28926 x:0] *************************** I1219 20:02:07.573239 28926 x:0] Args: [/syzkaller/managers/ptrace-direct-overlay-host-race/current/image -root /syzkaller/managers/ptrace-direct-overlay-host-race/workdir/gvisor_root -watchdog-action=panic -network=none -debug -alsologtostderr -platform=ptrace -file-access=exclusive -overlay -network=host -TESTONLY-unsafe-nonroot debug -stacks --ps ci-gvisor-ptrace-direct-overlay-host-race-2] I1219 20:02:07.573564 28926 x:0] Version release-20191213.0-32-g57ce26c0b465 I1219 20:02:07.573614 28926 x:0] PID: 28926 I1219 20:02:07.573661 28926 x:0] UID: 0, GID: 0 I1219 20:02:07.575812 28926 x:0] Configuration: I1219 20:02:07.575872 28926 x:0] RootDir: /syzkaller/managers/ptrace-direct-overlay-host-race/workdir/gvisor_root I1219 20:02:07.575898 28926 x:0] Platform: ptrace I1219 20:02:07.575937 28926 x:0] FileAccess: exclusive, overlay: true I1219 20:02:07.576006 28926 x:0] Network: host, logging: false I1219 20:02:07.576038 28926 x:0] Strace: false, max size: 1024, syscalls: [] I1219 20:02:07.576123 28926 x:0] *************************** W1219 20:02:07.576155 28926 x:0] Block the TERM signal. This is only safe in tests! D1219 20:02:07.577128 28926 x:0] Load container "/syzkaller/managers/ptrace-direct-overlay-host-race/workdir/gvisor_root" "ci-gvisor-ptrace-direct-overlay-host-race-2" D1219 20:02:07.609089 28926 x:0] Signal container "ci-gvisor-ptrace-direct-overlay-host-race-2": signal 0 D1219 20:02:07.609370 28926 x:0] Signal sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2" D1219 20:02:07.613254 28926 x:0] Connecting to sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2" D1219 20:02:07.628198 28926 x:0] urpc: successfully marshalled 123 bytes. D1219 20:02:07.635915 28926 x:0] urpc: unmarshal success. I1219 20:02:07.636024 28926 x:0] Found sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2", PID: 53364 I1219 20:02:07.636114 28926 x:0] Retrieving sandbox stacks D1219 20:02:07.636150 28926 x:0] Stacks sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2" D1219 20:02:07.637205 28926 x:0] Connecting to sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2" D1219 20:02:07.638170 28926 x:0] urpc: successfully marshalled 36 bytes. D1219 20:02:08.724193 28926 x:0] urpc: unmarshal success. I1219 20:02:08.726803 28926 x:0] *** Stack dump *** goroutine 1672462 [running]: gvisor.dev/gvisor/pkg/log.Stacks(0x461301, 0xc0002ec780, 0xc002e6e510, 0xc001f44000) pkg/log/log.go:272 +0xb6 gvisor.dev/gvisor/runsc/boot.(*debug).Stacks(0x2468668, 0x2468668, 0xc00304c490, 0x0, 0x0) runsc/boot/debug.go:26 +0x38 reflect.Value.call(0xc0002ec780, 0xc0003221c0, 0x13, 0x12673d7, 0x4, 0xc00120de78, 0x3, 0x3, 0x10cdb01, 0xc00304c490, ...) GOROOT/src/reflect/value.go:460 +0x62b reflect.Value.Call(0xc0002ec780, 0xc0003221c0, 0x13, 0xc00120de78, 0x3, 0x3, 0x0, 0x2468668, 0x16) GOROOT/src/reflect/value.go:321 +0xd4 gvisor.dev/gvisor/pkg/urpc.(*Server).handleOne(0xc00030c6c0, 0xc0030b1500, 0x0, 0x0) pkg/urpc/urpc.go:325 +0x688 gvisor.dev/gvisor/pkg/urpc.(*Server).handleRegistered(0xc00030c6c0, 0xc0030b1500, 0xc0038565f0, 0xc0039b4540) pkg/urpc/urpc.go:420 +0x43 gvisor.dev/gvisor/pkg/urpc.(*Server).StartHandling.func1(0xc00030c6c0, 0xc0030b1500) pkg/urpc/urpc.go:440 +0x81 created by gvisor.dev/gvisor/pkg/urpc.(*Server).StartHandling pkg/urpc/urpc.go:438 +0x6f goroutine 1 [semacquire, 42 minutes]: sync.runtime_Semacquire(0xc00033c124) GOROOT/src/runtime/sema.go:56 +0x42 sync.(*WaitGroup).Wait(0xc00033c124) GOROOT/src/sync/waitgroup.go:130 +0xb1 gvisor.dev/gvisor/pkg/sentry/kernel.(*Kernel).WaitExited(...) pkg/sentry/kernel/kernel.go:1061 gvisor.dev/gvisor/runsc/boot.(*Loader).WaitExit(0xc000384000, 0x0, 0x0) runsc/boot/loader.go:894 +0x73 gvisor.dev/gvisor/runsc/cmd.(*Boot).Execute(0xc0001b8360, 0x13df300, 0xc000132000, 0xc00028e600, 0xc00023eda0, 0x2, 0x2, 0x0) runsc/cmd/boot.go:254 +0x149e github.com/google/subcommands.(*Commander).Execute(0xc000148000, 0x13df300, 0xc000132000, 0xc00023eda0, 0x2, 0x2, 0x0) external/com_github_google_subcommands/subcommands.go:200 +0x51d github.com/google/subcommands.Execute(...) external/com_github_google_subcommands/subcommands.go:481 main.main() runsc/main.go:318 +0x2ce3