syzbot


DATA RACE in kernel.(*Task).MemoryManager (3)

Status: fixed on 2023/10/05 23:05
Fix commit: c39ecc4eb47a The local task in process_vm_read|writev is just the calling task.
First crash: 418d, last: 418d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor DATA RACE in kernel.(*Task).MemoryManager 3 839d 840d 0/26 auto-obsoleted due to no activity on 2022/11/08 13:21
gvisor DATA RACE in kernel.(*Task).MemoryManager (2) 10 728d 735d 0/26 auto-obsoleted due to no activity on 2023/04/11 16:37

Sample crash report:
WARNING: DATA RACE
Read at 0x00c005583250 by goroutine 193359:
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).MemoryManager()
      pkg/sentry/kernel/task_image.go:113 +0x56
  gvisor.dev/gvisor/pkg/sentry/kernel.(*taskCopyContext).getMemoryManager()
      pkg/sentry/kernel/task_usermem.go:352 +0x25
  gvisor.dev/gvisor/pkg/sentry/kernel.(*taskCopyContext).CopyInBytes()
      pkg/sentry/kernel/task_usermem.go:368 +0x6a
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.doProcessVMOpMaybeLocked()
      pkg/sentry/syscalls/linux/sys_process_vm.go:178 +0x3c2
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.processVMOp.func1()
      pkg/sentry/syscalls/linux/sys_process_vm.go:131 +0xc4
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).WithMuLocked()
      pkg/sentry/kernel/task.go:789 +0x53
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.processVMOp()
      pkg/sentry/syscalls/linux/sys_process_vm.go:130 +0x7fb
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.ProcessVMWritev()
      pkg/sentry/syscalls/linux/sys_process_vm.go:43 +0x4e
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:142 +0x8b4
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:322 +0x6b
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:282 +0x86
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:257 +0x4ef
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:269 +0x1e07
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:98 +0x43a
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
      pkg/sentry/kernel/task_start.go:395 +0x44

Previous write at 0x00c005583250 by goroutine 193352:
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute()
      pkg/sentry/kernel/task_exit.go:272 +0x697
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:98 +0x43a
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
      pkg/sentry/kernel/task_start.go:395 +0x44

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/04 22:17 gvisor e16f83a45c9a b7d7ff54 .config console log report syz C ci-gvisor-ptrace-3-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 20:51 gvisor e16f83a45c9a b7d7ff54 .config console log report syz C ci-gvisor-ptrace-1-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 20:19 gvisor e16f83a45c9a b7d7ff54 .config console log report syz C ci-gvisor-ptrace-3-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 19:04 gvisor e16f83a45c9a b7d7ff54 .config console log report syz C ci-gvisor-ptrace-1-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 18:29 gvisor e16f83a45c9a b7d7ff54 .config console log report syz C ci-gvisor-ptrace-2-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 19:18 gvisor e16f83a45c9a b7d7ff54 .config console log report syz ci-gvisor-systrap-1-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 19:18 gvisor e16f83a45c9a b7d7ff54 .config console log report syz ci-gvisor-ptrace-2-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 23:47 gvisor e16f83a45c9a b7d7ff54 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 22:42 gvisor e16f83a45c9a b7d7ff54 .config console log report info ci-gvisor-systrap-1-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 21:06 gvisor e16f83a45c9a b7d7ff54 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 18:20 gvisor e16f83a45c9a b7d7ff54 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*Task).MemoryManager
2023/10/04 17:48 gvisor e16f83a45c9a b7d7ff54 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*Task).MemoryManager
* Struck through repros no longer work on HEAD.