syzbot


DATA RACE in semaphore.(*Registry).RemoveID

Status: fixed on 2018/06/28 09:29
Fix commit: 6b6852bceb12 Fix semaphore data races
First crash: 2348d, last: 2344d

Sample crash report:
WARNING: DATA RACE
Read at 0x00c42014e4f0 by goroutine 127:
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel/semaphore.(*Registry).RemoveID()
      pkg/sentry/kernel/semaphore/semaphore.go:420 +0xec
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.remove()
      pkg/sentry/syscalls/linux/sys_sem.go:125 +0x91
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Semctl()
      pkg/sentry/syscalls/linux/sys_sem.go:105 +0x327
  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 0x00c42014e4f0 by goroutine 125:
  gvisor.googlesource.com/gvisor/pkg/sentry/kernel/semaphore.(*Set).Change()
      pkg/sentry/kernel/semaphore/semaphore.go:260 +0xf7
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.ipcSet()
      pkg/sentry/syscalls/linux/sys_sem.go:145 +0x18d
  gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Semctl()
      pkg/sentry/syscalls/linux/sys_sem.go:115 +0x2ab
  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 (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/24 18:44 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report syz C ci-gvisor-ptrace-proxy-sandbox-race
2018/06/27 15:16 https://github.com/dvyukov/gvisor.git race 53efb512bdf7 43e60f7e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/27 14:50 https://github.com/dvyukov/gvisor.git race 53efb512bdf7 43e60f7e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/27 09:56 https://github.com/dvyukov/gvisor.git race 53efb512bdf7 b0294c53 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/27 02:59 https://github.com/dvyukov/gvisor.git race fb36f579ec12 b0294c53 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/26 21:38 https://github.com/dvyukov/gvisor.git race fb36f579ec12 089f1181 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/26 21:15 https://github.com/dvyukov/gvisor.git race fb36f579ec12 089f1181 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/26 10:58 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/26 07:28 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/25 23:43 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/25 19:00 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/25 01:52 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/25 00:29 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/24 18:33 https://github.com/dvyukov/gvisor.git race 60dbbdc2d54b 2064fc5c .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/23 14:05 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.