syzbot


DATA RACE in binary.littleEndian.Uint64 (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
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor DATA RACE in binary.littleEndian.Uint64 C 29 837d 840d 14/26 fixed on 2022/11/18 03:22

Sample crash report:
WARNING: DATA RACE
Read at 0x00c0014d7e4b by goroutine 173:
  encoding/binary.littleEndian.Uint64()
      GOROOT/src/encoding/binary/binary.go:77 +0x12c
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.copyTimespecIn()
      pkg/sentry/syscalls/linux/timespec.go:36 +0xf0
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Futex()
      pkg/sentry/syscalls/linux/sys_futex.go:192 +0x712
  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

Previous write at 0x00c0014d7e48 by goroutine 238:
  runtime.slicecopy()
      GOROOT/src/runtime/slice.go:295 +0x0
  gvisor.dev/gvisor/pkg/safemem.Copy()
      pkg/safemem/block_unsafe.go:199 +0x4b9
  gvisor.dev/gvisor/pkg/safemem.CopySeq()
      pkg/safemem/seq_unsafe.go:282 +0x277
  gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).CopyIn.func1()
      pkg/sentry/mm/io.go:164 +0xca
  gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings()
      pkg/sentry/mm/io.go:522 +0x812
  gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).CopyIn()
      pkg/sentry/mm/io.go:163 +0x2c4
  gvisor.dev/gvisor/pkg/sentry/kernel.(*taskCopyContext).CopyInBytes()
      pkg/sentry/kernel/task_usermem.go:378 +0x1ad
  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:84 +0x3b8
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux.ProcessVMWritev()
      pkg/sentry/syscalls/linux/sys_process_vm.go:42 +0x69
  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 (48):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/22 22:36 gvisor 346aa6fef27d 9da37ae8 .config console log report syz C ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/22 10:37 gvisor 9ff1c425909e 1c576c23 .config console log report syz C ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/20 04:44 gvisor 38a0512f13fa 5bb70014 .config console log report syz C ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/29 17:07 gvisor 445fa6f40c89 05dc7993 .config console log report syz ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/29 00:39 gvisor 85a2ede1743f ca9683b8 .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/28 22:48 gvisor 85a2ede1743f ca9683b8 .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/28 18:54 gvisor 5b7274a1fc08 950c3e02 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/28 15:59 gvisor 5b7274a1fc08 950c3e02 .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/28 06:03 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/28 05:01 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/28 02:31 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-3-race DATA RACE in binary.littleEndian.Uint64
2022/11/27 14:07 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/27 02:20 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/27 01:38 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/27 00:15 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-1-race DATA RACE in binary.littleEndian.Uint64
2022/11/26 23:50 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/26 19:46 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/26 05:02 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/25 16:24 gvisor 5b7274a1fc08 0d68fcb4 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/25 10:29 gvisor 5b7274a1fc08 74a66371 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in binary.littleEndian.Uint64
2022/11/25 10:04 gvisor 5b7274a1fc08 74a66371 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/25 08:29 gvisor 5b7274a1fc08 74a66371 .config console log report info ci-gvisor-ptrace-1-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/25 04:05 gvisor 5b7274a1fc08 74a66371 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in binary.littleEndian.Uint64
2022/11/24 17:15 gvisor 5b7274a1fc08 d6358a0d .config console log report info ci-gvisor-ptrace-1-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/24 17:13 gvisor 5b7274a1fc08 d6358a0d .config console log report info ci-gvisor-ptrace-1-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/24 16:25 gvisor 5b7274a1fc08 d6358a0d .config console log report info ci-gvisor-ptrace-1-race DATA RACE in binary.littleEndian.Uint64
2022/11/24 14:30 gvisor 5b7274a1fc08 d6358a0d .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/23 18:59 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/23 18:59 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-1-race DATA RACE in binary.littleEndian.Uint64
2022/11/23 18:42 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/23 16:30 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/23 16:10 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/23 14:28 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-3-race DATA RACE in binary.littleEndian.Uint64
2022/11/23 03:29 gvisor 4fa2196b6ac7 75740b3f .config console log report info ci-gvisor-ptrace-1-race DATA RACE in binary.littleEndian.Uint64
2022/11/22 07:21 gvisor 9ff1c425909e 1c576c23 .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/22 03:08 gvisor 9ff1c425909e 1c576c23 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in binary.littleEndian.Uint64
2022/11/21 21:48 gvisor 38a0512f13fa f9a97739 .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/21 21:48 gvisor 38a0512f13fa f9a97739 .config console log report info ci-gvisor-ptrace-1-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/21 20:39 gvisor 38a0512f13fa f9a97739 .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/21 18:13 gvisor 38a0512f13fa f9a97739 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in binary.littleEndian.Uint64
2022/11/21 17:36 gvisor 38a0512f13fa f9a97739 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in binary.littleEndian.Uint64
2022/11/21 16:57 gvisor 38a0512f13fa f9a97739 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/21 15:13 gvisor 38a0512f13fa f9a97739 .config console log report info ci-gvisor-ptrace-3-race DATA RACE in binary.littleEndian.Uint64
2022/11/20 12:07 gvisor 38a0512f13fa 5bb70014 .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/20 11:18 gvisor 38a0512f13fa 5bb70014 .config console log report info ci-gvisor-ptrace-3-race-cover DATA RACE in binary.littleEndian.Uint64
2022/11/20 04:55 gvisor 38a0512f13fa 5bb70014 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in binary.littleEndian.Uint64
2022/11/19 17:36 gvisor 38a0512f13fa 5bb70014 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in binary.littleEndian.Uint64
2022/11/19 17:33 gvisor 38a0512f13fa 5bb70014 .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in binary.littleEndian.Uint64
* Struck through repros no longer work on HEAD.