syzbot


DATA RACE in kernel.(*Task).Clone

Status: fixed on 2018/07/18 10:05
Fix commit: 41aeb680b188 Inherit parent in clone(CLONE_THREAD) under TaskSet.mu.
First crash: 2338d, last: 2325d

Sample crash report:
WARNING: DATA RACE
Read at 0x00c4a9beed18 by goroutine 422:
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Clone()
      pkg/sentry/kernel/task_clone.go:223 +0x459
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.clone()
      pkg/sentry/syscalls/linux/sys_thread.go:157 +0x22e
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Clone()
      pkg/sentry/syscalls/linux/sys_thread.go:171 +0x80
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:162 +0x14e
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:278 +0x7d
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:241 +0xc3
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:216 +0x19c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:217 +0x157c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Previous write at 0x00c4a9beed18 by goroutine 350:
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).reparentLocked()
      pkg/sentry/kernel/task_exit.go:413 +0x61
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).exitChildren()
      pkg/sentry/kernel/task_exit.go:373 +0x220
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runExitMain).execute()
      pkg/sentry/kernel/task_exit.go:276 +0x1a8
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/15 18:00 https://github.com/dvyukov/gvisor.git race 54dabe736f40 92a49505 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/12 11:58 https://github.com/dvyukov/gvisor.git race 54dabe736f40 06c33b3a .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/03 11:56 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.