syzbot


DATA RACE in kernel.(*Task).exitNotifyLocked

Status: fixed on 2018/08/08 13:43
Fix commit: c036da5dffdf Hold TaskSet.mu in Task.Parent.
First crash: 2320d, last: 2320d

Sample crash report:
WARNING: DATA RACE
Write at 0x00c42052c418 by goroutine 166:
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).exitNotifyLocked()
      pkg/sentry/kernel/task_exit.go:686 +0x793
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runExitNotify).execute()
      pkg/sentry/kernel/task_exit.go:552 +0x1a6
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Previous read at 0x00c42052c418 by goroutine 141:
  gvisor.googlesource.com/gvisor/pkg/sentry/fs/proc.(*taskStatData).ReadSeqFileData()
      pkg/sentry/kernel/threads.go:436 +0x3de
  gvisor.googlesource.com/gvisor/pkg/sentry/fs/proc/seqfile.(*SeqFile).updateSourceLocked()
      pkg/sentry/fs/proc/seqfile/seqfile.go:225 +0x10c
  gvisor.googlesource.com/gvisor/pkg/sentry/fs/proc/seqfile.(*SeqFile).DeprecatedPreadv()
      pkg/sentry/fs/proc/seqfile/seqfile.go:158 +0x9dd
  gvisor.googlesource.com/gvisor/pkg/sentry/fs/proc.(*file).DeprecatedPreadv()
      <autogenerated>:1 +0xca
  gvisor.googlesource.com/gvisor/pkg/sentry/fs/fsutil.(*Handle).Read()
      pkg/sentry/fs/fsutil/handle.go:90 +0xbd
  gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).Readv()
      pkg/sentry/fs/file.go:230 +0x15b
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.readv()
      pkg/sentry/syscalls/linux/sys_read.go:191 +0xa1
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Read()
      pkg/sentry/syscalls/linux/sys_read.go:67 +0x295
  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 +0x1501
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/21 04:57 https://github.com/dvyukov/gvisor.git race 72627b310e89 af255b09 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/21 04:50 https://github.com/dvyukov/gvisor.git race 72627b310e89 af255b09 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.