syzbot


DATA RACE in mm.(*MemoryManager).Brk

Status: fixed on 2019/05/18 07:41
Fix commit: 14f0e7618e28 Ensure all uses of MM.brk occur under MM.mappingMu in MM.Brk().
First crash: 2036d, last: 2020d

Sample crash report:
WARNING: DATA RACE
Write at 0x00c00075b448 by goroutine 327:
  gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).Brk()
      pkg/sentry/mm/syscalls.go:753 +0x3e1
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Brk()
      pkg/sentry/syscalls/linux/sys_mmap.go:32 +0x77
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:165 +0x407
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:283 +0xb4
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:244 +0x109
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:219 +0x1b6
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:220 +0x18b9
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:92 +0x2e5

Previous read at 0x00c00075b448 by goroutine 282:
  gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).Brk()
      pkg/sentry/mm/syscalls.go:740 +0x46d
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Brk()
      pkg/sentry/syscalls/linux/sys_mmap.go:32 +0x77
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:165 +0x407
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:283 +0xb4
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:244 +0x109
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:219 +0x1b6
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:220 +0x18b9
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:92 +0x2e5

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/02 22:46 https://gvisor.googlesource.com/gvisor master 2c1c1c991761 e9039493 .config console log report syz ci-gvisor-kvm-direct-overlay-host-race
2019/05/02 06:46 https://gvisor.googlesource.com/gvisor master 2c1c1c991761 7516d9fa .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2019/05/01 23:01 https://gvisor.googlesource.com/gvisor master 2c1c1c991761 7516d9fa .config console log report syz ci-gvisor-kvm-direct-overlay-host-race
2019/05/01 09:20 https://gvisor.googlesource.com/gvisor master 8bfb83d0acde 20f16bef .config console log report syz ci-gvisor-kvm-direct-overlay-host-race
2019/05/01 09:09 https://gvisor.googlesource.com/gvisor master 8bfb83d0acde 20f16bef .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2019/05/01 08:52 https://gvisor.googlesource.com/gvisor master 8bfb83d0acde 20f16bef .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2019/05/01 08:33 https://gvisor.googlesource.com/gvisor master 8bfb83d0acde 20f16bef .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2019/05/01 08:07 https://gvisor.googlesource.com/gvisor master 8bfb83d0acde 20f16bef .config console log report syz ci-gvisor-kvm-direct-overlay-host-race
2019/05/17 13:43 https://gvisor.googlesource.com/gvisor master 8972e47a2edb e9039493 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/05/02 22:36 https://gvisor.googlesource.com/gvisor master 2c1c1c991761 e9039493 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/05/01 22:49 https://gvisor.googlesource.com/gvisor master 2c1c1c991761 7516d9fa .config console log report ci-gvisor-kvm-direct-overlay-host-race
2019/05/01 08:56 https://gvisor.googlesource.com/gvisor master 8bfb83d0acde 20f16bef .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/05/01 08:41 https://gvisor.googlesource.com/gvisor master 8bfb83d0acde 20f16bef .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2019/05/01 07:57 https://gvisor.googlesource.com/gvisor master 8bfb83d0acde 20f16bef .config console log report ci-gvisor-kvm-direct-overlay-host-race
* Struck through repros no longer work on HEAD.