syzbot


DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized

Status: moderation: reported C repro on 2022/02/10 06:07
Reported-by: syzbot+eaef8dc3e6fc9e745d66@syzkaller.appspotmail.com
First crash: 1027d, last: 1025d

Sample crash report:
WARNING: DATA RACE
Read at 0x00c0008b44f0 by goroutine 318:
  gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*DeviceFD).filesystemIsInitialized()
      pkg/sentry/fsimpl/fuse/dev.go:125 +0x7d
  gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*DeviceFD).Read()
      pkg/sentry/fsimpl/fuse/dev.go:141 +0x8e
  gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Read()
      pkg/sentry/vfs/file_description.go:626 +0x16d
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.read()
      pkg/sentry/syscalls/linux/vfs2/read_write.go:94 +0xed
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Read()
      pkg/sentry/syscalls/linux/vfs2/read_write.go:63 +0x307
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:103 +0x194
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:238 +0xb3
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:198 +0x10e
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:173 +0x213
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:254 +0x1286
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x352

Previous write at 0x00c0008b44f0 by goroutine 326:
  gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.newFUSEFilesystem()
      pkg/sentry/fsimpl/fuse/fusefs.go:278 +0x384
  gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.FilesystemType.GetFilesystem()
      pkg/sentry/fsimpl/fuse/fusefs.go:236 +0x144a
  gvisor.dev/gvisor/pkg/sentry/fsimpl/fuse.(*FilesystemType).GetFilesystem()
      <autogenerated>:1 +0xe4
  gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).MountDisconnected()
      pkg/sentry/vfs/mount.go:200 +0x191
  gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).MountAt()
      pkg/sentry/vfs/mount.go:272 +0xd4
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Mount()
      pkg/sentry/syscalls/linux/vfs2/mount.go:112 +0x5d6
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:103 +0x194
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:238 +0xb3
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:198 +0x10e
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:173 +0x213
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:254 +0x1286
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x352

Crashes (270):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/03 07:01 gvisor a5ce865145c7 4ebb2798 .config console log report syz C ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 06:36 gvisor a5ce865145c7 4ebb2798 .config console log report syz C ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 05:56 gvisor a5ce865145c7 4ebb2798 .config console log report syz C ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 09:16 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 08:12 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 07:09 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 06:57 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-1-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 05:55 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 04:41 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 03:40 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-1-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 03:14 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 02:04 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 00:59 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-1-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/05 00:07 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 23:02 gvisor 518535de9b0e e13a05ed .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 20:45 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 20:24 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 19:23 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 18:05 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 16:53 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 15:45 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 14:56 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 13:53 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 12:38 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 11:30 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 10:30 gvisor dce4528a1a95 a3e470b2 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 09:04 gvisor dce4528a1a95 30646bfe .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 07:03 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 05:58 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 04:57 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 03:27 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 02:25 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 01:22 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/04 00:17 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 22:43 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 21:30 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-1-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 20:43 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 19:39 gvisor 95d883a92e31 30646bfe .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 17:26 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 16:12 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 15:43 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 14:27 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 12:52 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 12:46 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 12:45 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 12:38 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 12:32 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 12:25 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 12:18 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
2022/02/03 08:32 gvisor a5ce865145c7 4ebb2798 .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in fuse.(*DeviceFD).filesystemIsInitialized
* Struck through repros no longer work on HEAD.