syzbot


DATA RACE in bufferv2.newChunk

Status: fixed on 2022/11/05 01:23
Fix commit: 6b3b5493d0ea Fix ipv6 header view ownership.
First crash: 768d, last: 753d

Sample crash report:
WARNING: DATA RACE
Write at 0x00c000496940 by goroutine 721:
  gvisor.dev/gvisor/pkg/bufferv2.newChunk()
      pkg/bufferv2/chunk.go:97 +0x16f
  gvisor.dev/gvisor/pkg/bufferv2.NewView()
      pkg/bufferv2/view.go:60 +0x30
  gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write()
      pkg/sentry/devices/tundev/tundev.go:159 +0x165
  gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write()
      pkg/sentry/vfs/file_description.go:671 +0x124
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write()
      pkg/sentry/syscalls/linux/vfs2/read_write.go:348 +0x9c
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write()
      pkg/sentry/syscalls/linux/vfs2/read_write.go:317 +0x2a4
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:142 +0x9b7
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:322 +0x7c
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:282 +0x8e
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:257 +0x495
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:253 +0x18f8
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:94 +0x353
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
      pkg/sentry/kernel/task_start.go:380 +0x47

Previous read at 0x00c000496940 by goroutine 745:
  runtime.slicecopy()
      GOROOT/src/runtime/slice.go:295 +0x0
  gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write()
      pkg/tcpip/link/tun/device.go:242 +0xa35
  gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write()
      pkg/sentry/devices/tundev/tundev.go:163 +0x309
  gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write()
      pkg/sentry/vfs/file_description.go:671 +0x124
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write()
      pkg/sentry/syscalls/linux/vfs2/read_write.go:348 +0x9c
  gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write()
      pkg/sentry/syscalls/linux/vfs2/read_write.go:317 +0x2a4
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:142 +0x9b7
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:322 +0x7c
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:282 +0x8e
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:257 +0x495
  gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:253 +0x18f8
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:94 +0x353
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
      pkg/sentry/kernel/task_start.go:380 +0x47

Crashes (68):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/21 14:32 gvisor c40f8e36517d 3a03e294 .config console log report syz C ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/21 14:12 gvisor c40f8e36517d 3a03e294 .config console log report syz C ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/19 21:54 gvisor 5e2506ce0b28 b31320fc .config console log report syz C ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/19 21:27 gvisor 5e2506ce0b28 b31320fc .config console log report syz C ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/11/04 01:14 gvisor 1497cdffce1f 6d752409 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/28 21:37 gvisor a1468b7a6240 bc17b3a4 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/28 18:02 gvisor a1468b7a6240 8168b69e .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/28 16:48 gvisor a1468b7a6240 8168b69e .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/28 09:15 gvisor a1468b7a6240 8168b69e .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/28 04:25 gvisor 32e4a28deaaf 5c716ff6 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/28 02:56 gvisor 32e4a28deaaf 5c716ff6 .config console log report info ci-gvisor-ptrace-1-race-cover DATA RACE in bufferv2.newChunk
2022/10/28 01:43 gvisor 32e4a28deaaf 5c716ff6 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/27 16:12 gvisor c1427a04dfba 5c716ff6 .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in bufferv2.newChunk
2022/10/27 10:59 gvisor c1427a04dfba 5c716ff6 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/27 09:04 gvisor c1427a04dfba 5c716ff6 .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in bufferv2.newChunk
2022/10/27 03:00 gvisor c1427a04dfba 86777b7f .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/26 22:37 gvisor c1427a04dfba 86777b7f .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/26 12:38 gvisor c1427a04dfba 2159e4d2 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/26 10:20 gvisor c1427a04dfba 2159e4d2 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/26 01:58 gvisor 7e3bd4db0f6b 1984aebd .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/26 00:41 gvisor 7e3bd4db0f6b 1984aebd .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/25 22:52 gvisor 7e3bd4db0f6b 1984aebd .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/25 22:07 gvisor 7e3bd4db0f6b 1984aebd .config console log report info ci-gvisor-ptrace-1-race-cover DATA RACE in bufferv2.newChunk
2022/10/25 19:05 gvisor 0eb861df5601 45645420 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/25 13:51 gvisor 0eb861df5601 45645420 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/25 13:41 gvisor 0eb861df5601 45645420 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/25 11:43 gvisor 0eb861df5601 45645420 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/25 07:15 gvisor 2ec925ee25c5 6134fb91 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/25 04:34 gvisor 2ec925ee25c5 6134fb91 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/25 03:26 gvisor 2ec925ee25c5 6134fb91 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/25 00:06 gvisor d4a7318c6be8 6134fb91 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/24 14:44 gvisor d4a7318c6be8 faae2fda .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/24 03:16 gvisor d4a7318c6be8 23bf86af .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/23 20:31 gvisor d4a7318c6be8 23bf86af .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/23 20:30 gvisor d4a7318c6be8 23bf86af .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/23 20:29 gvisor d4a7318c6be8 23bf86af .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/23 10:50 gvisor d4a7318c6be8 23bf86af .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in bufferv2.newChunk
2022/10/23 08:03 gvisor d4a7318c6be8 23bf86af .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/23 05:06 gvisor d4a7318c6be8 c0b80a55 .config console log report info ci-gvisor-ptrace-2-race-cover DATA RACE in bufferv2.newChunk
2022/10/22 18:11 gvisor d4a7318c6be8 c0b80a55 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/22 12:13 gvisor d4a7318c6be8 c0b80a55 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/21 20:21 gvisor c40f8e36517d 4bfd3c27 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/21 19:23 gvisor c40f8e36517d 4bfd3c27 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/21 14:46 gvisor c40f8e36517d 3a03e294 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/21 14:40 gvisor c40f8e36517d 3a03e294 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/21 10:36 gvisor c40f8e36517d 3a03e294 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/21 10:08 gvisor c40f8e36517d 3a03e294 .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/21 08:54 gvisor c40f8e36517d 3a03e294 .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/21 04:49 gvisor c40f8e36517d a0fd4dab .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/21 03:03 gvisor c40f8e36517d a0fd4dab .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/20 18:55 gvisor c40f8e36517d a0fd4dab .config console log report info ci-gvisor-ptrace-1-race DATA RACE in bufferv2.newChunk
2022/10/20 16:24 gvisor c40f8e36517d b31320fc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/20 12:18 gvisor c40f8e36517d b31320fc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/20 05:26 gvisor 5e2506ce0b28 b31320fc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/19 23:21 gvisor 5e2506ce0b28 b31320fc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/19 20:58 gvisor 5e2506ce0b28 b31320fc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/19 20:13 gvisor 5e2506ce0b28 b31320fc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
2022/10/19 20:08 gvisor 5e2506ce0b28 b31320fc .config console log report info ci-gvisor-ptrace-2-race DATA RACE in bufferv2.newChunk
* Struck through repros no longer work on HEAD.