WARNING: DATA RACE Write at 0x00c000500030 by goroutine 122: 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 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.chmod() pkg/sentry/syscalls/linux/sys_file.go:1769 +0x105 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Fchmod() pkg/sentry/syscalls/linux/sys_file.go:1809 +0x127 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:170 +0x455 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:291 +0xb4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:252 +0x109 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:227 +0x1b3 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:222 +0x1819 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:92 +0x308 Previous read at 0x00c000500030 by goroutine 144: gvisor.dev/gvisor/pkg/sentry/fs/tty.(*masterInodeOperations).Truncate() :1 +0x4f gvisor.dev/gvisor/pkg/sentry/fs.(*Inode).Truncate() pkg/sentry/fs/inode.go:364 +0x187 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.openAt.func1() pkg/sentry/syscalls/linux/sys_file.go:178 +0x601 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.fileOpOn() pkg/sentry/syscalls/linux/sys_file.go:111 +0x23f gvisor.dev/gvisor/pkg/sentry/syscalls/linux.openAt() pkg/sentry/syscalls/linux/sys_file.go:140 +0x141 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Openat() pkg/sentry/syscalls/linux/sys_file.go:484 +0xfa gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:170 +0x455 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:291 +0xb4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:252 +0x109 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:227 +0x1b3 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:222 +0x1819 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:92 +0x308