syzbot


DATA RACE in atomic.LoadInt64

Status: fixed on 2020/06/05 23:08
Fix commit: 7da69fe9719b Fix data race on f.offset.
First crash: 1637d, last: 1637d

Sample crash report:
WARNING: DATA RACE
Read at 0x00c00fbdd548 by goroutine 241:
  sync/atomic.LoadInt64()
      src/runtime/race_amd64.s:211 +0xb
  gvisor.dev/gvisor/pkg/sentry/fs.(*File).Offset()
      pkg/sentry/fs/file.go:199 +0x1232
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Fcntl()
      pkg/sentry/syscalls/linux/sys_file.go:984 +0x1240
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:170 +0x44d
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:305 +0xb4
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:265 +0x109
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:240 +0x1e7
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:259 +0x1697
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:92 +0x320

Previous write at 0x00c00fbdd548 by goroutine 283:
  gvisor.dev/gvisor/pkg/sentry/fs.(*File).offsetForAppend()
      pkg/sentry/fs/file.go:389 +0x16e
  gvisor.dev/gvisor/pkg/sentry/fs.(*File).Writev()
      pkg/sentry/fs/file.go:317 +0x62d
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.writev()
      pkg/sentry/syscalls/linux/sys_write.go:262 +0xe0
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Write()
      pkg/sentry/syscalls/linux/sys_write.go:72 +0x2ab
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:170 +0x44d
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:305 +0xb4
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:265 +0x109
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:240 +0x1e7
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:259 +0x1697
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:92 +0x320

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/03 13:14 gvisor e6334e81ca8d e8d36083 .config console log report ci-gvisor-ptrace-direct-overlay-host-race
* Struck through repros no longer work on HEAD.