syzbot


fatal error: concurrent map writes

Status: fixed on 2018/08/19 04:48
Fix commit: dbbe9ec91541 Protect PCIDs with a mutex.
First crash: 2302d, last: 2301d

Sample crash report:
fatal error: concurrent map writes

goroutine 159 [running, locked to thread]:
runtime.throw(0xba07a4, 0x15)
	GOROOT/src/runtime/panic.go:616 +0x81 fp=0xc420ae3c10 sp=0xc420ae3bf0 pc=0x429441
runtime.mapdelete_fast64(0xa9ede0, 0xc42053c000, 0xc421cc62a0)
	GOROOT/src/runtime/hashmap_fast.go:878 +0x1f4 fp=0xc420ae3c50 sp=0xc420ae3c10 pc=0x40b914
gvisor.googlesource.com/gvisor/pkg/sentry/platform/ring0/pagetables.(*PCIDs).Assign(0xc420588020, 0xc4204f6120, 0xc42048aba8)
	pkg/sentry/platform/ring0/pagetables/pcids_x86.go:76 +0x177 fp=0xc420ae3cf0 sp=0xc420ae3c50 pc=0x864537
gvisor.googlesource.com/gvisor/pkg/sentry/platform/kvm.(*vCPU).SwitchToUser(0xc4204e2000, 0xc420247200, 0xc42070a600, 0xc4204f6120, 0x1, 0x0, 0x7f11662e0ae0, 0x0, 0x0)
	pkg/sentry/platform/kvm/machine_amd64.go:214 +0x70b fp=0xc420ae3d68 sp=0xc420ae3cf0 pc=0x8765eb
gvisor.googlesource.com/gvisor/pkg/sentry/platform/kvm.(*context).Switch(0xc42048aba0, 0xc52c00, 0xc420e26480, 0xc588c0, 0xc420247200, 0x7f11ffffffff, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/platform/kvm/context.go:68 +0x1ed fp=0xc420ae3e28 sp=0xc420ae3d68 pc=0x86b6ad
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc4206b2d00, 0xc46620, 0x0)
	pkg/sentry/kernel/task_run.go:209 +0x17d fp=0xc420ae3f88 sp=0xc420ae3e28 pc=0x6e73ed
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc4206b2d00, 0x3e)
	pkg/sentry/kernel/task_run.go:95 +0x174 fp=0xc420ae3fd0 sp=0xc420ae3f88 pc=0x6e6f04
runtime.goexit()
	bazel-out/k8-fastbuild/bin/external/io_bazel_rules_go/linux_amd64_pure_stripped/stdlib~/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc420ae3fd8 sp=0xc420ae3fd0 pc=0x455f31
created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:258 +0x100

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/09 03:50 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 21:02 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 12:28 https://gvisor.googlesource.com/gvisor master cb23232c37c0 14f8a76f .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
* Struck through repros no longer work on HEAD.