syzbot


DATA RACE in systrap.(*subprocessPool).fetchAvailable

Status: fixed on 2023/03/22 22:01
Fix commit: f01bf248c19f Fix data race in subprocess pool.
First crash: 635d, last: 625d

Sample crash report:
WARNING: DATA RACE
Write at 0x00c000dd3b44 by goroutine 2842530:
  gvisor.dev/gvisor/pkg/sentry/platform/systrap.(*subprocessPool).fetchAvailable()
      pkg/sentry/platform/systrap/subprocess_pool.go:74 +0x248
  gvisor.dev/gvisor/pkg/sentry/platform/systrap.newSubprocess()
      pkg/sentry/platform/systrap/subprocess.go:255 +0x64
  gvisor.dev/gvisor/pkg/sentry/platform/systrap.(*Systrap).NewAddressSpace()
      pkg/sentry/platform/systrap/systrap.go:404 +0x6e
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Kernel).NewAddressSpace()
      <autogenerated>:1 +0x77
  gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).Activate()
      pkg/sentry/mm/address_space.go:86 +0x13a
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Activate()
      pkg/sentry/kernel/task_usermem.go:39 +0x59
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:70 +0x2e4
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
      pkg/sentry/kernel/task_start.go:377 +0x47

Previous read at 0x00c000dd3b44 by goroutine 2842332:
  gvisor.dev/gvisor/pkg/sentry/platform/systrap.(*subprocess).unregisterContext()
      pkg/sentry/platform/systrap/subprocess.go:993 +0x164
  gvisor.dev/gvisor/pkg/sentry/platform/systrap.(*context).Release()
      pkg/sentry/platform/systrap/systrap.go:326 +0x95
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run()
      pkg/sentry/kernel/task_run.go:101 +0x51a
  gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
      pkg/sentry/kernel/task_start.go:377 +0x47

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/12 14:31 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/12 10:48 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/11 17:50 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/11 13:39 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/11 10:36 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/11 08:18 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/11 01:02 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/10 20:28 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/10 14:13 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/10 10:07 gvisor 7fc86b2c47e9 5205ef30 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/09 07:17 gvisor c98ccb40b8dc 4fc6d98d .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/08 23:31 gvisor d9fcdc771447 4fc6d98d .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/08 13:55 gvisor d9fcdc771447 f6ef8c9d .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/08 13:43 gvisor d9fcdc771447 f6ef8c9d .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/08 04:48 gvisor d9fcdc771447 d2b00170 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/07 22:52 gvisor d9fcdc771447 d2b00170 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/07 19:58 gvisor 63ca40b1c220 f73829fc .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/07 12:03 gvisor 63ca40b1c220 f73829fc .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/07 11:12 gvisor 63ca40b1c220 f73829fc .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/06 08:27 gvisor 3255616ce741 f8902b57 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/06 04:38 gvisor 3255616ce741 f8902b57 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/06 01:28 gvisor 3255616ce741 f8902b57 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/05 13:46 gvisor 3255616ce741 f8902b57 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/02 09:04 gvisor a625ba1d0ae6 f8902b57 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
2023/03/01 23:23 gvisor 9b4a7aa00f2a f8902b57 .config console log report info ci-gvisor-systrap-1-race DATA RACE in systrap.(*subprocessPool).fetchAvailable
* Struck through repros no longer work on HEAD.