syzbot


DATA RACE in waiter.(*Entry).Next

Status: fixed on 2018/08/19 04:48
Fix commit: d4939f6dc22e TTY: Fix data race where calls into tty.queue's waiter were not synchronized.
First crash: 2348d, last: 2295d

Sample crash report:
WARNING: DATA RACE
Read at 0x00c4204661b8 by goroutine 43:
  gvisor.googlesource.com/gvisor/pkg/waiter.(*Entry).Next()
      bazel-out/k8-fastbuild/bin/pkg/ilist/interface_list.go:150 +0x4c
  gvisor.googlesource.com/gvisor/pkg/ilist.(*List).Remove()
      bazel-out/k8-fastbuild/bin/pkg/ilist/interface_list.go:125 +0x6a
  gvisor.googlesource.com/gvisor/pkg/waiter.(*Queue).EventUnregister()
      pkg/waiter/waiter.go:177 +0x67
  gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*slaveFileOperations).EventUnregister()
      pkg/sentry/fs/tty/slave.go:114 +0x96
  gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).EventUnregister()
      pkg/sentry/fs/file.go:180 +0x60
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.readv()
      pkg/sentry/syscalls/linux/sys_read.go:223 +0x5e1
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Readv()
      pkg/sentry/syscalls/linux/sys_read.go:144 +0x28c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:162 +0x14e
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:278 +0x7d
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:241 +0xc3
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:216 +0x19c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:217 +0x1501
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Previous write at 0x00c4204661b8 by goroutine 16:
  gvisor.googlesource.com/gvisor/pkg/waiter.(*Entry).SetNext()
      bazel-out/k8-fastbuild/bin/pkg/ilist/interface_list.go:160 +0x50
  gvisor.googlesource.com/gvisor/pkg/ilist.(*List).PushBack()
      bazel-out/k8-fastbuild/bin/pkg/ilist/interface_list.go:70 +0xee
  gvisor.googlesource.com/gvisor/pkg/waiter.(*Queue).EventRegister()
      pkg/waiter/waiter.go:170 +0x86
  gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*slaveFileOperations).EventRegister()
      pkg/sentry/fs/tty/slave.go:109 +0x10f
  gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).EventRegister()
      pkg/sentry/fs/file.go:175 +0x6a
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.readv()
      pkg/sentry/syscalls/linux/sys_read.go:202 +0x3cb
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Readv()
      pkg/sentry/syscalls/linux/sys_read.go:144 +0x28c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall()
      pkg/sentry/kernel/task_syscall.go:162 +0x14e
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke()
      pkg/sentry/kernel/task_syscall.go:278 +0x7d
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter()
      pkg/sentry/kernel/task_syscall.go:241 +0xc3
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall()
      pkg/sentry/kernel/task_syscall.go:216 +0x19c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute()
      pkg/sentry/kernel/task_run.go:217 +0x1501
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Crashes (2418):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/05 08:21 https://github.com/dvyukov/gvisor.git race 72627b310e89 3476a2df .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/08/01 21:22 https://github.com/dvyukov/gvisor.git race 72627b310e89 0a7cf4ec .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/24 09:25 https://github.com/dvyukov/gvisor.git race 72627b310e89 912c93d7 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/23 06:13 https://github.com/dvyukov/gvisor.git race 72627b310e89 8cc079c3 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/21 01:16 https://github.com/dvyukov/gvisor.git race 72627b310e89 af255b09 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/16 21:12 https://github.com/dvyukov/gvisor.git race 54dabe736f40 40cb0c9a .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/16 11:27 https://github.com/dvyukov/gvisor.git race 54dabe736f40 92a49505 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/15 18:22 https://github.com/dvyukov/gvisor.git race 54dabe736f40 92a49505 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/09 18:38 https://github.com/dvyukov/gvisor.git race 54dabe736f40 f25e5770 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/08 07:44 https://github.com/dvyukov/gvisor.git race 54dabe736f40 6c0c0099 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/08 06:24 https://github.com/dvyukov/gvisor.git race 54dabe736f40 6c0c0099 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/07 10:58 https://github.com/dvyukov/gvisor.git race 54dabe736f40 6c0c0099 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/06 23:41 https://github.com/dvyukov/gvisor.git race 54dabe736f40 6c0c0099 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/07/04 18:25 https://github.com/dvyukov/gvisor.git race 54dabe736f40 b9f93868 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/29 13:51 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb 5c7ca877 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/29 11:42 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb 5c7ca877 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/28 20:07 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb dba0b50e .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/28 13:44 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb dba0b50e .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/27 13:25 https://github.com/dvyukov/gvisor.git race 53efb512bdf7 43e60f7e .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/27 04:21 https://github.com/dvyukov/gvisor.git race fb36f579ec12 b0294c53 .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/26 05:16 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/26 04:18 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/25 19:08 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/25 01:39 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/24 19:25 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/24 09:21 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/24 06:01 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/24 04:15 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/23 23:34 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/23 21:45 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/23 21:39 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/23 21:00 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 00:13 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 05:31 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2018/08/01 04:25 https://github.com/dvyukov/gvisor.git race 72627b310e89 8ef497b6 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2018/08/01 00:22 https://github.com/dvyukov/gvisor.git race 72627b310e89 8ef497b6 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2018/07/31 09:52 https://github.com/dvyukov/gvisor.git race 72627b310e89 1a381291 .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2018/06/25 09:25 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2018/06/23 21:28 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2018/08/14 23:19 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 5084a625 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/14 21:04 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 5084a625 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/14 03:08 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 7a88b141 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/13 17:24 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 7a88b141 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/13 16:09 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 7a88b141 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/09 05:31 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/09 00:36 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 22:30 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 18:46 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 17:27 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 15:38 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 12:26 https://github.com/dvyukov/gvisor.git race 72627b310e89 14f8a76f .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 10:09 https://github.com/dvyukov/gvisor.git race 72627b310e89 14f8a76f .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 09:02 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 07:34 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 05:50 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 04:41 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 04:37 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 02:49 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 01:26 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 23:56 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 22:46 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 21:32 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 19:53 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 18:54 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 16:58 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 15:20 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 14:11 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 12:46 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 10:34 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 09:18 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 07:57 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 06:48 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 05:40 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 04:19 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 03:12 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 01:30 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 00:05 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 22:57 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 21:54 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 20:41 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 18:59 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 15:57 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 15:07 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 13:32 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 12:14 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 10:59 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 09:38 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/06 08:25 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/23 07:54 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 665947c7 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.