syzbot


panic: Incrementing non-positive ref count (4)

Status: fixed on 2020/02/27 21:02
Reported-by: syzbot+a6b1342ad34f21ce5ebe@syzkaller.appspotmail.com
Fix commit: 53504e29ca27 Fix mount refcount issue.
First crash: 1760d, last: 1751d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: Incrementing non-positive ref count (2) C 183 1972d 1979d 0/26 fixed on 2019/07/04 17:55
gvisor panic: Incrementing non-positive ref count C 26 2284d 2341d 0/26 closed as invalid on 2018/12/14 22:50
gvisor panic: Incrementing non-positive ref count (3) 2 1795d 1805d 0/26 fixed on 2020/01/08 08:41

Sample crash report:
panic: Incrementing non-positive ref count
DIAGNOSIS:
I0201 17:07:18.930078   26308 log.go:209] ***************************
I0201 17:07:18.930209   26308 log.go:209] Args: [/syzkaller/managers/ptrace-direct-overlay-host-race/current/image -root /syzkaller/managers/ptrace-direct-overlay-host-race/workdir/gvisor_root -watchdog-action=panic -network=none -debug -alsologtostderr -platform=ptrace -file-access=exclusive -overlay -network=host -TESTONLY-unsafe-nonroot debug -stacks --ps ci-gvisor-ptrace-direct-overlay-host-race-0]
I0201 17:07:18.930432   26308 log.go:209] Version release-20200127.0-51-g02997af5abd6
I0201 17:07:18.930509   26308 log.go:209] PID: 26308
I0201 17:07:18.930582   26308 log.go:209] UID: 0, GID: 0
I0201 17:07:18.930664   26308 log.go:209] Configuration:
I0201 17:07:18.930738   26308 log.go:209] 		RootDir: /syzkaller/managers/ptrace-direct-overlay-host-race/workdir/gvisor_root
I0201 17:07:18.930820   26308 log.go:209] 		Platform: ptrace
I0201 17:07:18.930880   26308 log.go:209] 		FileAccess: exclusive, overlay: true
I0201 17:07:18.930964   26308 log.go:209] 		Network: host, logging: false
I0201 17:07:18.931038   26308 log.go:209] 		Strace: false, max size: 1024, syscalls: []
I0201 17:07:18.931095   26308 log.go:209] ***************************
W0201 17:07:18.931161   26308 log.go:216] Block the TERM signal. This is only safe in tests!
D0201 17:07:18.931328   26308 log.go:202] Load container "/syzkaller/managers/ptrace-direct-overlay-host-race/workdir/gvisor_root" "ci-gvisor-ptrace-direct-overlay-host-race-0"
D0201 17:07:18.937790   26308 log.go:202] Signal container "ci-gvisor-ptrace-direct-overlay-host-race-0": signal 0
D0201 17:07:18.952149   26308 log.go:202] Signal sandbox "ci-gvisor-ptrace-direct-overlay-host-race-0"
D0201 17:07:18.952419   26308 log.go:202] Connecting to sandbox "ci-gvisor-ptrace-direct-overlay-host-race-0"
D0201 17:07:18.953083   26308 log.go:202] urpc: successfully marshalled 123 bytes.
I0201 17:07:19.098926   26308 log.go:209] Found sandbox "ci-gvisor-ptrace-direct-overlay-host-race-0", PID: 6709
I0201 17:07:19.099039   26308 log.go:209] Retrieving sandbox stacks
D0201 17:07:19.099117   26308 log.go:202] Stacks sandbox "ci-gvisor-ptrace-direct-overlay-host-race-0"
D0201 17:07:19.099234   26308 log.go:202] Connecting to sandbox "ci-gvisor-ptrace-direct-overlay-host-race-0"
W0201 17:07:19.099401   26308 log.go:216] FATAL ERROR: retrieving stacks: connecting to control server at PID 6709: connection refused
retrieving stacks: connecting to control server at PID 6709: connection refused
W0201 17:07:19.099669   26308 log.go:216] Failure to execute command, err: 1

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/01 17:08 https://gvisor.googlesource.com/gvisor master 02997af5abd6 326d4c78 .config console log report syz C ci-gvisor-ptrace-direct-overlay-host-race
2020/02/01 17:31 https://gvisor.googlesource.com/gvisor master 02997af5abd6 326d4c78 .config console log report syz ci-gvisor-ptrace-direct-overlay-host
2020/02/01 17:20 https://gvisor.googlesource.com/gvisor master 02997af5abd6 326d4c78 .config console log report syz ci-gvisor-main
2020/02/10 07:05 https://gvisor.googlesource.com/gvisor master 17b9f5e66238 35f5e45e .config console log report ci-gvisor-main
2020/02/01 11:04 https://gvisor.googlesource.com/gvisor master 02997af5abd6 326d4c78 .config console log report ci-gvisor-ptrace-direct-overlay-host-race
* Struck through repros no longer work on HEAD.