syzbot


DATA RACE in kernel.(*Task).accountTaskGoroutineEnter

Status: fixed on 2020/05/13 22:02
Fix commit: 8dd1d5b75a95 Don't call kernel.Task.Block() from netstack.SocketOperations.Write().
First crash: 1660d, last: 1660d

Sample crash report:
WARNING: DATA RACE
Read at 0x00c0002f1560 by goroutine 323:
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).accountTaskGoroutineEnter()
      pkg/sentry/kernel/task_sched.go:120 +0xa3
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).SleepStart()
      pkg/sentry/kernel/task_block.go:162 +0x69
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).block()
      pkg/sentry/kernel/task_block.go:124 +0x75
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Block()
      pkg/sentry/kernel/task_block.go:110 +0x3d3
  gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).Write()
      pkg/sentry/socket/netstack/netstack.go:557 +0x3de
  gvisor.dev/gvisor/pkg/sentry/fs.(*File).Pwritev()
      pkg/sentry/fs/file.go:374 +0x26f
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.performCallback()
      pkg/sentry/syscalls/linux/sys_aio.go:283 +0x515
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.submitCallback.func1()
      pkg/sentry/syscalls/linux/sys_aio.go:369 +0xdb
  gvisor.dev/gvisor/pkg/sentry/fs.Async.func1()
      pkg/sentry/fs/fs.go:86 +0x6a

Previous write at 0x00c0002f1560 by goroutine 313:
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).accountTaskGoroutineEnter()
      pkg/sentry/kernel/task_sched.go:127 +0x189
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:247 +0x77d
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:92 +0x320

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/11 07:47 gvisor c52195d25825 f8f57555 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/05/11 07:31 gvisor c52195d25825 f8f57555 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.