syzbot


fatal error: concurrent map read and map write

Status: fixed on 2018/08/19 04:48
Fix commit: dbbe9ec91541 Protect PCIDs with a mutex.
First crash: 2303d, last: 2301d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor fatal error: concurrent map read and map write (2) syz 2 1731d 1731d 0/26 fixed on 2020/03/10 21:06

Sample crash report:
fatal error: concurrent map read and map write

goroutine 107331 [running]:
runtime.throw(0xba9858, 0x21)
	GOROOT/src/runtime/panic.go:616 +0x81 fp=0xc421217d20 sp=0xc421217d00 pc=0x429441
runtime.mapaccess2_fast64(0xa9ede0, 0xc421660480, 0xc421fd4030, 0x10a0980, 0x411400)
	GOROOT/src/runtime/hashmap_fast.go:141 +0x1aa fp=0xc421217d48 sp=0xc421217d20 pc=0x409e9a
gvisor.googlesource.com/gvisor/pkg/sentry/platform/ring0/pagetables.(*PCIDs).Drop(...)
	pkg/sentry/platform/ring0/pagetables/pcids_x86.go:91
gvisor.googlesource.com/gvisor/pkg/sentry/platform/kvm.(*machine).dropPageTables(0xc420166400, 0xc421fd4030)
	pkg/sentry/platform/kvm/machine_amd64.go:89 +0x11c fp=0xc421217e18 sp=0xc421217d48 pc=0x87574c
gvisor.googlesource.com/gvisor/pkg/sentry/platform/kvm.(*addressSpace).Release(0xc420437200)
	pkg/sentry/platform/kvm/address_space.go:287 +0x81 fp=0xc421217e40 sp=0xc421217e18 pc=0x86a481
gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).DecUsers(0xc421fc8000, 0xc53b00, 0xc42093f240)
	pkg/sentry/mm/lifecycle.go:210 +0x204 fp=0xc421217ed0 sp=0xc421217e40 pc=0x684cf4
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*TaskContext).release(0xc421348730)
	pkg/sentry/kernel/task_context.go:64 +0xd6 fp=0xc421217f30 sp=0xc421217ed0 pc=0x6ddbe6
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runExitMain).execute(0x0, 0xc421348000, 0xc46660, 0x0)
	pkg/sentry/kernel/task_exit.go:266 +0xc5 fp=0xc421217f88 sp=0xc421217f30 pc=0x6dfae5
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc421348000, 0x476)
	pkg/sentry/kernel/task_run.go:95 +0x174 fp=0xc421217fd0 sp=0xc421217f88 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=0xc421217fd8 sp=0xc421217fd0 pc=0x455f31
created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:258 +0x100

Crashes (66):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/09 13:13 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/09 10:47 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/09 09:27 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/09 08:47 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/09 06:45 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/09 05:41 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/09 04:35 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/09 03:31 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/09 01:36 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/09 00:15 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 22:39 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 20:21 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 19:54 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 19:02 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 18:42 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 17:34 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 16:55 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 16:49 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 16:43 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 16:40 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 16:01 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 15:54 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 14:38 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 14:31 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 13:21 https://gvisor.googlesource.com/gvisor master cb23232c37c0 14f8a76f .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 12:12 https://gvisor.googlesource.com/gvisor master cb23232c37c0 14f8a76f .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 11:51 https://gvisor.googlesource.com/gvisor master cb23232c37c0 14f8a76f .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 11:45 https://gvisor.googlesource.com/gvisor master cb23232c37c0 14f8a76f .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 11:39 https://gvisor.googlesource.com/gvisor master cb23232c37c0 14f8a76f .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 11:38 https://gvisor.googlesource.com/gvisor master cb23232c37c0 14f8a76f .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 11:12 https://gvisor.googlesource.com/gvisor master cb23232c37c0 14f8a76f .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 10:28 https://gvisor.googlesource.com/gvisor master cb23232c37c0 14f8a76f .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 05:43 https://gvisor.googlesource.com/gvisor master 7d3684aadf71 1beb8136 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 03:37 https://gvisor.googlesource.com/gvisor master 7d3684aadf71 1beb8136 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 02:27 https://gvisor.googlesource.com/gvisor master 7d3684aadf71 1beb8136 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 00:40 https://gvisor.googlesource.com/gvisor master 7d3684aadf71 1beb8136 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 00:11 https://gvisor.googlesource.com/gvisor master 7d3684aadf71 1beb8136 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/07 20:48 https://gvisor.googlesource.com/gvisor master 7d3684aadf71 1beb8136 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/07 20:41 https://gvisor.googlesource.com/gvisor master 9752174a7f21 1beb8136 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/07 19:02 https://gvisor.googlesource.com/gvisor master 9752174a7f21 1beb8136 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/07 18:11 https://gvisor.googlesource.com/gvisor master 9752174a7f21 1beb8136 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/07 17:33 https://gvisor.googlesource.com/gvisor master 9752174a7f21 1beb8136 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/06 19:03 https://gvisor.googlesource.com/gvisor master 42086fe8e124 1beb8136 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
* Struck through repros no longer work on HEAD.