syzbot


panic: Incrementing 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: 1476d

Sample crash report:
panic: Incrementing non-positive ref count 0xc000020a40 owned by *mm.SpecialMappable

goroutine 122682 [running]:
panic(0x100cc20, 0xc0005a16e0)
	GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc000ea3448 sp=0xc000ea3390 pc=0x43438d
gvisor.dev/gvisor/pkg/sentry/mm.(*SpecialMappableRefs).IncRef(0xc000020a40)
	bazel-out/k8-fastbuild/bin/pkg/sentry/mm/special_mappable_refs.go:83 +0xe0 fp=0xc000ea34b0 sp=0xc000ea3448 pc=0x7dc550
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).Fork(0xc000717000, 0x14045a0, 0xc00090ea80, 0x0, 0x0, 0x0)
	pkg/sentry/mm/lifecycle.go:133 +0x6e5 fp=0xc000ea3800 sp=0xc000ea34b0 pc=0x7c3915
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskContext).Fork(0xc00090f238, 0x14045a0, 0xc00090ea80, 0xc000372000, 0xc00089ea00, 0xc000ea38f8, 0x7f8ca8, 0x7f3ce4d739f0)
	pkg/sentry/kernel/task_context.go:101 +0x1ca fp=0xc000ea3868 sp=0xc000ea3800 pc=0x95716a
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Clone(0xc00090ea80, 0xc000ea3ae0, 0xc000000000, 0x0, 0x0, 0x0)
	pkg/sentry/kernel/task_clone.go:252 +0x342 fp=0xc000ea3ab0 sp=0xc000ea3868 pc=0x954612
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.clone(0xc00090ea80, 0x1200011, 0x0, 0x0, 0x169cc10, 0x169c940, 0xc000ea3bc8, 0x47bc71, 0xfbe0, 0xc000ea3bc4)
	pkg/sentry/syscalls/linux/sys_thread.go:270 +0x165 fp=0xc000ea3b48 sp=0xc000ea3ab0 pc=0xa07365
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Clone(0xc00090ea80, 0x1200011, 0x0, 0x0, 0x169cc10, 0x169c940, 0x0, 0xc000ea3c14, 0xdcf948, 0x65, ...)
	pkg/sentry/syscalls/linux/sys_clone_amd64.go:37 +0xa3 fp=0xc000ea3ba8 sp=0xc000ea3b48 pc=0x9cfef3
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00090ea80, 0x38, 0x1200011, 0x0, 0x0, 0x169cc10, 0x169c940, 0x0, 0x0, 0x11f2b20, ...)
	pkg/sentry/kernel/task_syscall.go:117 +0x1b6 fp=0xc000ea3c68 sp=0xc000ea3ba8 pc=0x971a56
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00090ea80, 0x38, 0x1200011, 0x0, 0x0, 0x169cc10, 0x169c940, 0x0, 0x169c940, 0x0)
	pkg/sentry/kernel/task_syscall.go:292 +0x70 fp=0xc000ea3cf0 sp=0xc000ea3c68 pc=0x972d40
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00090ea80, 0x38, 0x1200011, 0x0, 0x0, 0x169cc10, 0x169c940, 0x0, 0x13d2001, 0x100000000000000)
	pkg/sentry/kernel/task_syscall.go:239 +0xb4 fp=0xc000ea3d50 sp=0xc000ea3cf0 pc=0x9727f4
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00090ea80, 0x2, 0xc00090ea80)
	pkg/sentry/kernel/task_syscall.go:206 +0x198 fp=0xc000ea3e10 sp=0xc000ea3d50 pc=0x9720d8
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00090ea80, 0x13d2080, 0x0)
	pkg/sentry/kernel/task_run.go:321 +0xd88 fp=0xc000ea3f60 sp=0xc000ea3e10 pc=0x965068
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00090ea80, 0x39)
	pkg/sentry/kernel/task_run.go:97 +0x1bd fp=0xc000ea3fd0 sp=0xc000ea3f60 pc=0x963bad
runtime.goexit()
	src/runtime/asm_amd64.s:1373 +0x1 fp=0xc000ea3fd8 sp=0xc000ea3fd0 pc=0x467da1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:371 +0x112

Crashes (45):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/11 12:58 gvisor 792cbc06de41 64069d48 .config console log report info ci-gvisor-main
2020/11/11 07:37 gvisor e998b9904f35 64069d48 .config console log report info ci-gvisor-main
2020/11/11 04:55 gvisor e998b9904f35 64069d48 .config console log report info ci-gvisor-main
2020/11/10 08:22 gvisor b2d5b71ecdf7 64069d48 .config console log report info ci-gvisor-main
2020/11/08 01:26 gvisor 78cce3a46b95 64069d48 .config console log report info ci-gvisor-main
2020/11/07 22:35 gvisor 78cce3a46b95 64069d48 .config console log report info ci-gvisor-main
2020/11/06 06:32 gvisor a00c5df98bb9 64069d48 .config console log report info ci-gvisor-main
2020/11/05 22:18 gvisor a00c5df98bb9 64069d48 .config console log report info ci-gvisor-main
2020/11/05 11:39 gvisor a15562c019a4 64069d48 .config console log report info ci-gvisor-main
2020/11/05 03:46 gvisor a15562c019a4 64069d48 .config console log report info ci-gvisor-main
2020/11/03 17:43 gvisor 1a3f417f4a32 f7362256 .config console log report info ci-gvisor-main
2020/11/03 15:00 gvisor 1a3f417f4a32 f7362256 .config console log report info ci-gvisor-main
2020/11/02 21:16 gvisor 73f980e97e2d f7362256 .config console log report info ci-gvisor-main
2020/11/02 06:29 gvisor 5e606844df57 8bc4594f .config console log report info ci-gvisor-main
2020/11/01 15:06 gvisor df88f223bb54 8bc4594f .config console log report info ci-gvisor-main
2020/11/01 09:47 gvisor df88f223bb54 8bc4594f .config console log report info ci-gvisor-main
2020/11/01 08:15 gvisor df88f223bb54 8bc4594f .config console log report info ci-gvisor-main
2020/10/31 20:59 gvisor 4eb1c87e8033 7928dd20 .config console log report info ci-gvisor-main
2020/10/31 12:54 gvisor 4eb1c87e8033 7928dd20 .config console log report info ci-gvisor-main
2020/10/30 15:39 gvisor dd056112b72a a0c7169a .config console log report info ci-gvisor-main
2020/10/30 00:45 gvisor 1f0f687cbe49 a0c7169a .config console log report info ci-gvisor-main
2020/10/29 18:08 gvisor 1f0f687cbe49 a0c7169a .config console log report info ci-gvisor-main
2020/10/29 14:13 gvisor 37b57ecd0469 f24824d3 .config console log report info ci-gvisor-main
2020/10/29 11:00 gvisor 37b57ecd0469 f24824d3 .config console log report info ci-gvisor-main
2020/10/28 18:21 gvisor 5fe886ab6f92 f24824d3 .config console log report info ci-gvisor-main
2020/10/28 01:07 gvisor 6d50185e7c1b 96e03c1c .config console log report info ci-gvisor-main
2020/10/27 23:44 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/27 12:53 gvisor 59e2c9f16a9a 94942294 .config console log report info ci-gvisor-main
2020/10/26 20:46 gvisor e2dce046037c a7aac492 .config console log report info ci-gvisor-main
2020/10/26 13:28 gvisor 73a18635385d a7aac492 .config console log report info ci-gvisor-main
2020/10/24 22:50 gvisor 4feb5c7c263d a1839e81 .config console log report info ci-gvisor-main
2020/10/23 02:52 gvisor c206fcbfc2b9 4e740c00 .config console log report info ci-gvisor-main
2020/10/23 02:52 gvisor c206fcbfc2b9 4e740c00 .config console log report info ci-gvisor-main
2020/10/22 00:36 gvisor c206fcbfc2b9 be6b1582 .config console log report info ci-gvisor-main
2020/10/21 10:39 gvisor c206fcbfc2b9 e761439e .config console log report info ci-gvisor-main
2020/10/20 14:54 gvisor c206fcbfc2b9 fea47c01 .config console log report info ci-gvisor-main
2020/10/19 19:50 gvisor c206fcbfc2b9 fea47c01 .config console log report info ci-gvisor-main
2020/10/18 16:20 gvisor 9a3d8973c4fc fea47c01 .config console log report info ci-gvisor-main
2020/10/18 13:07 gvisor 9a3d8973c4fc fea47c01 .config console log report info ci-gvisor-main
2020/10/17 06:15 gvisor 9a3d8973c4fc 6e262c73 .config console log report info ci-gvisor-main
2020/10/16 14:43 gvisor 8f70c6ef3511 6e262c73 .config console log report info ci-gvisor-main
2020/10/16 11:08 gvisor 8f70c6ef3511 6e262c73 .config console log report info ci-gvisor-main
2020/10/14 11:28 gvisor a7b7b7b9804e fc7735a2 .config console log report info ci-gvisor-main
2020/10/14 00:08 gvisor 51913ba400cc fc7735a2 .config console log report info ci-gvisor-main
* Struck through repros no longer work on HEAD.