syzbot


DATA RACE in kernel.(*runExitMain).execute (2)

Status: fixed on 2023/10/05 23:05
Fix commit: b66713079526 Clean up and re-enable process_vm_readv/writev
First crash: 737d, last: 727d

Sample crash report:
WARNING: DATA RACE
Write at 0x00c000a907d0 by goroutine 208:
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute()
      pkg/sentry/kernel/task_exit.go:272 +0x6a5
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:94 +0x2c1
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
      pkg/sentry/kernel/task_start.go:378 +0x47

Previous read at 0x00c000a907d0 by goroutine 200:
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).MemoryManager()
      pkg/sentry/kernel/task_image.go:113 +0x79
  gvisor.dev/gvisor/pkg/sentry/kernel.(*taskCopyContext).getMemoryManager()
      pkg/sentry/kernel/task_usermem.go:350 +0x38
  gvisor.dev/gvisor/pkg/sentry/kernel.(*taskCopyContext).CopyInBytes()
      pkg/sentry/kernel/task_usermem.go:373 +0x87
  gvisor.dev/gvisor/pkg/sentry/kernel.makeIovec()
      pkg/sentry/kernel/task_usermem.go:261 +0xb4
  gvisor.dev/gvisor/pkg/sentry/kernel.copyInIovecs()
      pkg/sentry/kernel/task_usermem.go:231 +0x3a9
  gvisor.dev/gvisor/pkg/sentry/kernel.(*taskCopyContext).CopyInIovecs()
      pkg/sentry/kernel/task_usermem.go:411 +0x73
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.doProcessVMReadWrite.func1()
      pkg/sentry/syscalls/linux/sys_process_vm.go:100 +0xa5
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.doProcessVMReadWrite()
      pkg/sentry/syscalls/linux/sys_process_vm.go:174 +0x3aa
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.processVMRW()
      pkg/sentry/syscalls/linux/sys_process_vm.go:91 +0x492
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.ProcessVMReadv()
      pkg/sentry/syscalls/linux/sys_process_vm.go:37 +0x66
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:142 +0xab7
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:322 +0x8d
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:282 +0xc4
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:257 +0x53a
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:253 +0x1e2a
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:94 +0x2c1
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
      pkg/sentry/kernel/task_start.go:378 +0x47

Crashes (143):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/20 16:23 gvisor 38a0512f13fa 5bb70014 .config console log report syz C ci-gvisor-ptrace-3-race-cover DATA RACE in kernel.(*runExitMain).execute
2022/11/20 13:30 gvisor 38a0512f13fa 5bb70014 .config console log report syz C ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/20 13:30 gvisor 38a0512f13fa 5bb70014 .config console log report syz C ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/29 19:48 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/29 18:54 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/29 17:20 gvisor 445fa6f40c89 05dc7993 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/29 04:27 gvisor 85a2ede1743f ca9683b8 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/29 00:56 gvisor 85a2ede1743f ca9683b8 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/28 23:17 gvisor 85a2ede1743f ca9683b8 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/28 21:54 gvisor 85a2ede1743f 950c3e02 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/28 19:51 gvisor 5b7274a1fc08 950c3e02 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/28 16:10 gvisor 5b7274a1fc08 950c3e02 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/28 12:24 gvisor 5b7274a1fc08 950c3e02 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/28 10:23 gvisor 5b7274a1fc08 950c3e02 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/28 04:27 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/27 19:28 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/27 19:25 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/27 17:03 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/27 15:28 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/27 03:43 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/26 21:17 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/26 17:35 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/26 12:42 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/26 12:20 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/26 00:25 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/25 22:26 gvisor 5b7274a1fc08 0d68fcb4 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/25 15:28 gvisor 5b7274a1fc08 0d68fcb4 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/25 12:54 gvisor 5b7274a1fc08 0d68fcb4 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/25 09:40 gvisor 5b7274a1fc08 74a66371 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/25 08:36 gvisor 5b7274a1fc08 74a66371 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/25 00:36 gvisor 5b7274a1fc08 74a66371 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/24 23:12 gvisor 5b7274a1fc08 d6358a0d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/24 19:01 gvisor 5b7274a1fc08 d6358a0d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/24 12:37 gvisor 5b7274a1fc08 d6358a0d .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/24 10:10 gvisor 5b7274a1fc08 ff68ff8f .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/24 00:09 gvisor 5b7274a1fc08 ff68ff8f .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 23:27 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 19:13 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 17:27 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 16:21 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 15:20 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 14:19 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 12:45 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 11:13 gvisor 4fa2196b6ac7 75740b3f .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 10:53 gvisor 4fa2196b6ac7 75740b3f .config console log report info ci-gvisor-ptrace-3-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 09:48 gvisor 4fa2196b6ac7 75740b3f .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
2022/11/23 08:37 gvisor 4fa2196b6ac7 75740b3f .config console log report info ci-gvisor-ptrace-2-race DATA RACE in kernel.(*runExitMain).execute
2022/11/19 18:07 gvisor 38a0512f13fa 5bb70014 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in kernel.(*runExitMain).execute
* Struck through repros no longer work on HEAD.