syzbot


DATA RACE in shm.(*Registry).findByKey

Status: fixed on 2018/12/12 22:16
Fix commit: f93c288dd708 Fix a data race on Shm.key.
First crash: 2347d, last: 2281d

Sample crash report:
WARNING: DATA RACE
Read at 0x00c420172078 by goroutine 196:
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).findByKey()
      pkg/sentry/kernel/shm/shm.go:110 +0xfa
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).FindOrCreate()
      pkg/sentry/kernel/shm/shm.go:137 +0x35a
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Shmget()
      pkg/sentry/syscalls/linux/sys_shm.go:38 +0x149
  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 +0x157c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Previous write at 0x00c420172078 by goroutine 176:
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Shm).MarkDestroyed()
      pkg/sentry/kernel/shm/shm.go:590 +0x7f
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Shmctl()
      pkg/sentry/syscalls/linux/sys_shm.go:143 +0x4a9
  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 +0x157c
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:95 +0x264

Crashes (47):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/25 21:06 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/24 05:38 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2018/08/29 13:04 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 53ff8784 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/28 14:41 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 7ef1de9e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/27 01:10 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 758cd203 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/26 11:41 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 36d87ddb .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/25 22:02 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 20749b59 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/25 08:50 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 9b0f5c75 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/25 05:23 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 9b0f5c75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/25 01:11 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 9b0f5c75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/24 22:46 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 9b0f5c75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/24 03:07 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 95b5c82b .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/23 22:42 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 95b5c82b .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/22 18:54 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 95b5c82b .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/22 17:12 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 95b5c82b .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/22 04:27 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 95b5c82b .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/21 11:08 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 95b5c82b .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/20 18:40 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 2dc4378f .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/20 16:01 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 2dc4378f .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/20 11:47 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 2dc4378f .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/08 18:05 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/07 02:36 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/05 23:58 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/02 11:23 https://github.com/dvyukov/gvisor.git race 72627b310e89 0a7cf4ec .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/01 14:58 https://github.com/dvyukov/gvisor.git race 72627b310e89 1477993e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/01 13:18 https://github.com/dvyukov/gvisor.git race 72627b310e89 1477993e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/31 18:17 https://github.com/dvyukov/gvisor.git race 72627b310e89 1a381291 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/31 14:48 https://github.com/dvyukov/gvisor.git race 72627b310e89 1a381291 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/31 06:53 https://github.com/dvyukov/gvisor.git race 72627b310e89 1a381291 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/30 16:00 https://github.com/dvyukov/gvisor.git race 72627b310e89 1a381291 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/22 01:27 https://github.com/dvyukov/gvisor.git race 72627b310e89 8cc079c3 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/20 14:56 https://github.com/dvyukov/gvisor.git race 72627b310e89 49f35839 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/19 15:20 https://github.com/dvyukov/gvisor.git race 72627b310e89 49f35839 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/17 04:35 https://github.com/dvyukov/gvisor.git race 54dabe736f40 13761366 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/17 01:38 https://github.com/dvyukov/gvisor.git race 54dabe736f40 40cb0c9a .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/15 13:54 https://github.com/dvyukov/gvisor.git race 54dabe736f40 92a49505 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/15 03:51 https://github.com/dvyukov/gvisor.git race 54dabe736f40 92a49505 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/14 22:42 https://github.com/dvyukov/gvisor.git race 54dabe736f40 92a49505 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/13 02:59 https://github.com/dvyukov/gvisor.git race 54dabe736f40 06c33b3a .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/09 21:41 https://github.com/dvyukov/gvisor.git race 54dabe736f40 f25e5770 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/06 14:37 https://github.com/dvyukov/gvisor.git race 54dabe736f40 785a9833 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/05 11:11 https://github.com/dvyukov/gvisor.git race 54dabe736f40 f525fd72 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/07/02 13:20 https://github.com/dvyukov/gvisor.git race 082553a8233a b9f93868 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/30 03:53 https://github.com/dvyukov/gvisor.git race 77e5397d66ab 5739f7be .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/27 18:41 https://github.com/dvyukov/gvisor.git race 53efb512bdf7 43e60f7e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/25 20:58 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/24 05:29 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.