syzbot


panic: Decrementing non-positive ref count ADDR, owned by *mm.SpecialMappable

Status: fixed on 2020/11/13 09:22
Fix commit: dcc1b71f1ba4 Fix reference counting on kcov mappings.
First crash: 1504d, last: 1474d

Sample crash report:
panic: Decrementing non-positive ref count 0xc0004ef5c0, owned by *mm.SpecialMappable

goroutine 188502 [running]:
panic(0x100cc20, 0xc008ed6000)
	GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc0077e5cd8 sp=0xc0077e5c20 pc=0x43438d
gvisor.dev/gvisor/pkg/sentry/mm.(*SpecialMappableRefs).DecRef(0xc0004ef5c0, 0xc0077e5d50)
	bazel-out/k8-fastbuild/bin/pkg/sentry/mm/special_mappable_refs.go:127 +0x10a fp=0xc0077e5d40 sp=0xc0077e5cd8 pc=0x7dc6da
gvisor.dev/gvisor/pkg/sentry/mm.(*SpecialMappable).DecRef(0xc0004ef5c0, 0x14043a0, 0x1e045f0)
	pkg/sentry/mm/special_mappable.go:57 +0x5a fp=0xc0077e5d70 sp=0xc0077e5d40 pc=0x7dbaca
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).removeVMAsLocked(0xc00a6b6000, 0x14043a0, 0x1e045f0, 0x10000, 0x7fffffff0000, 0x1246668, 0xc021dc5180)
	pkg/sentry/mm/vma.go:505 +0x3cd fp=0xc0077e5df8 sp=0xc0077e5d70 pc=0x7e6c9d
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).unmapLocked(0xc00a6b6000, 0x14043a0, 0x1e045f0, 0x10000, 0x7fffffff0000, 0x44828e, 0xc0002c2544)
	pkg/sentry/mm/vma.go:465 +0x8f fp=0xc0077e5e40 sp=0xc0077e5df8 pc=0x7e689f
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).DecUsers(0xc00a6b6000, 0x14043a0, 0x1e045f0)
	pkg/sentry/mm/lifecycle.go:352 +0x23a fp=0xc0077e5ed0 sp=0xc0077e5e40 pc=0x7c4afa
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskContext).release(0xc00a92dcb8)
	pkg/sentry/kernel/task_context.go:65 +0xa2 fp=0xc0077e5ef8 sp=0xc0077e5ed0 pc=0x956f62
gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute(0x0, 0xc00a92d500, 0x13d20c0, 0x0)
	pkg/sentry/kernel/task_exit.go:306 +0x182 fp=0xc0077e5f60 sp=0xc0077e5ef8 pc=0x9599a2
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00a92d500, 0xa96)
	pkg/sentry/kernel/task_run.go:97 +0x1bd fp=0xc0077e5fd0 sp=0xc0077e5f60 pc=0x963bad
runtime.goexit()
	src/runtime/asm_amd64.s:1373 +0x1 fp=0xc0077e5fd8 sp=0xc0077e5fd0 pc=0x467da1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:371 +0x112

Crashes (56):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/13 03:16 gvisor a47d38495e7e 16fca0c8 .config console log report info ci-gvisor-main
2020/11/12 01:19 gvisor 9c4102896d8f 64069d48 .config console log report info ci-gvisor-main
2020/11/10 12:09 gvisor b2d5b71ecdf7 64069d48 .config console log report info ci-gvisor-main
2020/11/10 09:48 gvisor b2d5b71ecdf7 64069d48 .config console log report info ci-gvisor-main
2020/11/09 19:19 gvisor 0fb5353e45f1 64069d48 .config console log report info ci-gvisor-main
2020/11/07 01:09 gvisor 9e82747d62e5 64069d48 .config console log report info ci-gvisor-main
2020/11/06 11:49 gvisor 29683f359822 64069d48 .config console log report info ci-gvisor-main
2020/11/06 10:36 gvisor 29683f359822 64069d48 .config console log report info ci-gvisor-main
2020/11/05 22:44 gvisor a00c5df98bb9 64069d48 .config console log report info ci-gvisor-main
2020/11/04 23:30 gvisor a15562c019a4 64069d48 .config console log report info ci-gvisor-main
2020/11/04 00:43 gvisor 723464ec5522 f7362256 .config console log report info ci-gvisor-main
2020/11/03 19:03 gvisor 1a3f417f4a32 f7362256 .config console log report info ci-gvisor-main
2020/11/03 14:33 gvisor 1a3f417f4a32 f7362256 .config console log report info ci-gvisor-main
2020/11/03 10:38 gvisor 1a3f417f4a32 f7362256 .config console log report info ci-gvisor-main
2020/11/03 10:18 gvisor 1a3f417f4a32 f7362256 .config console log report info ci-gvisor-main
2020/11/03 09:49 gvisor 1a3f417f4a32 f7362256 .config console log report info ci-gvisor-main
2020/11/02 09:53 gvisor 5e606844df57 8bc4594f .config console log report info ci-gvisor-main
2020/11/02 05:50 gvisor 5e606844df57 8bc4594f .config console log report info ci-gvisor-main
2020/11/02 03:20 gvisor 5e606844df57 8bc4594f .config console log report info ci-gvisor-main
2020/11/02 00:04 gvisor df88f223bb54 8bc4594f .config console log report info ci-gvisor-main
2020/10/31 12:25 gvisor 4eb1c87e8033 7928dd20 .config console log report info ci-gvisor-main
2020/10/31 07:57 gvisor 3a6f046ae8d8 18e33098 .config console log report info ci-gvisor-main
2020/10/31 07:51 gvisor 3a6f046ae8d8 18e33098 .config console log report info ci-gvisor-main
2020/10/31 06:10 gvisor 3a6f046ae8d8 18e33098 .config console log report info ci-gvisor-main
2020/10/31 06:10 gvisor 3a6f046ae8d8 18e33098 .config console log report info ci-gvisor-main
2020/10/29 19:31 gvisor 1f0f687cbe49 a0c7169a .config console log report info ci-gvisor-main
2020/10/29 11:18 gvisor 37b57ecd0469 f24824d3 .config console log report info ci-gvisor-main
2020/10/28 16:52 gvisor 5fe886ab6f92 f24824d3 .config console log report info ci-gvisor-main
2020/10/28 13:40 gvisor 5fe886ab6f92 96e03c1c .config console log report info ci-gvisor-main
2020/10/28 01:51 gvisor 6d50185e7c1b 96e03c1c .config console log report info ci-gvisor-main
2020/10/27 14:54 gvisor 59e2c9f16a9a 94942294 .config console log report info ci-gvisor-main
2020/10/26 23:56 gvisor e2dce046037c 8b3eaf58 .config console log report info ci-gvisor-main
2020/10/23 21:09 gvisor f73fad834f09 4e740c00 .config console log report info ci-gvisor-main
2020/10/23 01:23 gvisor c206fcbfc2b9 4e740c00 .config console log report info ci-gvisor-main
2020/10/22 21:38 gvisor c206fcbfc2b9 4e740c00 .config console log report info ci-gvisor-main
2020/10/22 20:29 gvisor c206fcbfc2b9 4e740c00 .config console log report info ci-gvisor-main
2020/10/21 23:24 gvisor c206fcbfc2b9 be6b1582 .config console log report info ci-gvisor-main
2020/10/21 21:17 gvisor c206fcbfc2b9 be6b1582 .config console log report info ci-gvisor-main
2020/10/19 10:38 gvisor 9a3d8973c4fc fea47c01 .config console log report info ci-gvisor-main
2020/10/18 19:05 gvisor 9a3d8973c4fc fea47c01 .config console log report info ci-gvisor-main
2020/10/17 20:27 gvisor 9a3d8973c4fc fea47c01 .config console log report info ci-gvisor-main
2020/10/17 11:48 gvisor 9a3d8973c4fc fea47c01 .config console log report info ci-gvisor-main
2020/10/17 08:02 gvisor 9a3d8973c4fc 6e262c73 .config console log report info ci-gvisor-main
2020/10/16 03:54 gvisor 8f70c6ef3511 6e262c73 .config console log report info ci-gvisor-main
2020/10/15 22:02 gvisor 8f70c6ef3511 6e262c73 .config console log report info ci-gvisor-main
2020/10/15 21:04 gvisor 8f70c6ef3511 6e262c73 .config console log report info ci-gvisor-main
2020/10/15 01:08 gvisor 6e6a9d3f3dd6 fc7735a2 .config console log report info ci-gvisor-main
2020/10/15 00:39 gvisor 6e6a9d3f3dd6 fc7735a2 .config console log report info ci-gvisor-main
2020/10/14 13:15 gvisor a7b7b7b9804e fc7735a2 .config console log report info ci-gvisor-main
2020/10/14 13:15 gvisor a7b7b7b9804e fc7735a2 .config console log report info ci-gvisor-main
2020/10/14 12:59 gvisor a7b7b7b9804e fc7735a2 .config console log report info ci-gvisor-main
2020/10/14 12:22 gvisor a7b7b7b9804e fc7735a2 .config console log report info ci-gvisor-main
2020/10/14 12:16 gvisor a7b7b7b9804e fc7735a2 .config console log report info ci-gvisor-main
2020/10/14 03:57 gvisor 51913ba400cc fc7735a2 .config console log report info ci-gvisor-main
* Struck through repros no longer work on HEAD.