syzbot


panic: Incrementing non-positive ref count

Status: closed as invalid on 2018/12/14 22:50
First crash: 2135d, last: 2078d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: Incrementing non-positive ref count (4) C 5 1545d 1547d 0/26 fixed on 2020/02/27 21:02
gvisor panic: Incrementing non-positive ref count (2) C 183 1766d 1773d 0/26 fixed on 2019/07/04 17:55
gvisor panic: Incrementing non-positive ref count (3) 2 1589d 1599d 0/26 fixed on 2020/01/08 08:41

Sample crash report:
panic: Incrementing non-positive ref count

goroutine 78 [running]:
gvisor.googlesource.com/gvisor/pkg/refs.(*AtomicRefCount).IncRef(0xc42092ca80)
	pkg/refs/refcounter.go:211 +0x5a
gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).createVMALocked(0xc420131900, 0xc75800, 0xc420669200, 0x1000, 0xc758c0, 0xc42092ca80, 0xc72780, 0xc42092ca80, 0x0, 0x20ffc000, ...)
	pkg/sentry/mm/vma.go:76 +0x436
gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).MMap(0xc420131900, 0xc75800, 0xc420669200, 0x1000, 0xc758c0, 0xc42092ca80, 0xc72780, 0xc42092ca80, 0x0, 0x20ffc000, ...)
	pkg/sentry/mm/syscalls.go:130 +0x1c6
gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Shmat(0xc420669200, 0xba8, 0x20ffc000, 0x3000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	pkg/sentry/syscalls/linux/sys_shm.go:76 +0x252
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc420669200, 0x1e, 0xba8, 0x20ffc000, 0x3000, 0x0, 0x0, 0x0, 0xc420751ca8, 0xbb5a60, ...)
	pkg/sentry/kernel/task_syscall.go:162 +0x307
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc420669200, 0x1e, 0xba8, 0x20ffc000, 0x3000, 0x0, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/kernel/task_syscall.go:278 +0x62
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc420669200, 0x1e, 0xba8, 0x20ffc000, 0x3000, 0x0, 0x0, 0x0, 0xc4205aac00, 0xc420751e00)
	pkg/sentry/kernel/task_syscall.go:241 +0x91
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc420669200, 0x2, 0xc420400480)
	pkg/sentry/kernel/task_syscall.go:216 +0x10c
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc420669200, 0xc689e0, 0x0)
	pkg/sentry/kernel/task_run.go:217 +0xed8
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc420669200, 0x9)
	pkg/sentry/kernel/task_run.go:95 +0x174
created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:251 +0x100

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/30 05:00 https://gvisor.googlesource.com/gvisor master 1b5e09f968bf 5739f7be .config console log report syz C ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/26 11:17 https://gvisor.googlesource.com/gvisor master b17e80ef5a44 36d87ddb .config console log report ci-gvisor-main
2018/08/24 14:21 https://gvisor.googlesource.com/gvisor master 64403265a04a 95b5c82b .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/03 03:48 https://gvisor.googlesource.com/gvisor master 57d0fcbdbf7e 5b7e23bb .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/03 03:32 https://gvisor.googlesource.com/gvisor master 57d0fcbdbf7e 5b7e23bb .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/01 04:15 https://gvisor.googlesource.com/gvisor master 6cad96f38a6d 8ef497b6 .config console log report ci-gvisor-main
2018/08/01 01:19 https://gvisor.googlesource.com/gvisor master 6cad96f38a6d 8ef497b6 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/30 08:54 https://gvisor.googlesource.com/gvisor master 3188859742e8 1a381291 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/29 19:58 https://gvisor.googlesource.com/gvisor master 3188859742e8 0824d7a1 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/29 15:27 https://gvisor.googlesource.com/gvisor master 3188859742e8 0824d7a1 .config console log report ci-gvisor-main
2018/07/29 11:30 https://gvisor.googlesource.com/gvisor master 3188859742e8 0824d7a1 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/28 03:19 https://gvisor.googlesource.com/gvisor master 2793f7ac5f96 ebf656d7 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/23 18:12 https://gvisor.googlesource.com/gvisor master f543ada15005 f69c5fcd .config console log report ci-gvisor-main
2018/07/21 07:48 https://gvisor.googlesource.com/gvisor master f543ada15005 8cc079c3 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/20 00:26 https://gvisor.googlesource.com/gvisor master a95640b1e9fb 49f35839 .config console log report ci-gvisor-main
2018/07/19 01:40 https://gvisor.googlesource.com/gvisor master 63e2820f7bc5 809256c3 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/17 16:32 https://gvisor.googlesource.com/gvisor master 29e00c943a61 570df9b2 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/16 20:40 https://gvisor.googlesource.com/gvisor master 8f21c0bb2807 40cb0c9a .config console log report ci-gvisor-main
2018/07/16 02:40 https://gvisor.googlesource.com/gvisor master 9059983fdb2c 92a49505 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/11 04:05 https://gvisor.googlesource.com/gvisor master 065d7cee9a55 2e0e3130 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/09 22:36 https://gvisor.googlesource.com/gvisor master 0dedac637ff9 f25e5770 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/07 16:30 https://gvisor.googlesource.com/gvisor master 5c88e6a15d46 6c0c0099 .config console log report ci-gvisor-main
2018/07/06 21:45 https://gvisor.googlesource.com/gvisor master f107a5b1a0e2 6c0c0099 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/30 00:05 https://gvisor.googlesource.com/gvisor master 1b5e09f968bf 5739f7be .config console log report ci-gvisor-main
2018/08/22 13:58 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 95b5c82b .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/07/29 04:34 https://github.com/dvyukov/gvisor.git race 72627b310e89 ebf656d7 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.