syzbot


witness: userret: returning with the following locks held:
Status: fixed on 2019/08/27 06:31
Reported-by: syzbot+374d0e7e2400004957f7@syzkaller.appspotmail.com
Fix commit: b808994cf339 When a thread tries to exclusively lock a vnode, the same thread must ensure that any other thread currently trying to acquire the underlying vnode lock has observed that the same vnode is about to be exclusively locked. Such threads must then sleep until the exclusive lock has been released and then try to acquire the lock again. Otherwise, exclusive access to the vnode cannot be guaranteed.
First crash: 910d, last: 699d
duplicates (4):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
panic:r/managers/multi thcore/kernel/sys/read ADDR cannot exit while holding sleeplocks 1 874d 874d 0/3 closed as dup on 2019/08/23 07:18
witness: userret: returningwitness: thread ADDR exiting with the following locks held: 1 765d 765d 0/3 closed as dup on 2019/06/22 20:47
witness: thread exiting with locks held syz 679 699d 910d 0/3 closed as dup on 2019/02/21 21:47
panic: witness_warn C 26 910d 914d 0/3 closed as dup on 2019/01/29 06:51
Patch testing requests:
Created Duration User Patch Repo Result
2019/08/20 14:28 17m anton@basename.se https://github.com/mptre/openbsd-src vn-lock-race OK
2019/08/20 10:01 17m anton@basename.se https://github.com/mptre/openbsd-src vn-lock-race report log
2019/08/20 08:29 16m anton@basename.se https://github.com/mptre/openbsd-src vn-lock-race report log
2019/08/20 07:41 16m anton@basename.se https://github.com/mptre/openbsd-src vn-lock-race report log
2019/08/18 09:59 16m anton@basename.se https://github.com/mptre/openbsd-src vn-lock-race report log
2019/08/17 14:17 16m anton@basename.se https://github.com/mptre/openbsd-src vn-lock-race report log

Sample crash report:

Crashes (315):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-openbsd-multicore 2019/01/28 22:32 openbsd fabafa7b0c06 aa432daf .config log report syz C
ci-openbsd-setuid 2019/06/22 14:36 openbsd dcaa94fa8333 34bf9440 .config log report syz
ci-openbsd-multicore 2019/01/30 00:58 openbsd 906b732f9d92 aa432daf .config log report syz
ci-openbsd-setuid 2019/01/29 20:31 openbsd 810597764d1f aa432daf .config log report syz
ci-openbsd-setuid 2019/01/29 03:52 openbsd fabafa7b0c06 aa432daf .config log report syz
ci-openbsd-setuid 2019/01/28 22:33 openbsd fabafa7b0c06 aa432daf .config log report syz
ci-openbsd-setuid 2019/01/28 21:54 openbsd fabafa7b0c06 aa432daf .config log report syz
ci-openbsd-multicore 2019/08/27 03:30 openbsd 4350d62ed76b d21c5d9d .config log report
ci-openbsd-setuid 2019/08/27 02:30 openbsd 4350d62ed76b d21c5d9d .config log report
ci-openbsd-multicore 2019/08/26 21:48 openbsd 4350d62ed76b d21c5d9d .config log report
ci-openbsd-multicore 2019/08/26 18:19 openbsd 4350d62ed76b d21c5d9d .config log report
ci-openbsd-setuid 2019/08/26 12:54 openbsd 4350d62ed76b d21c5d9d .config log report
ci-openbsd-multicore 2019/08/26 07:40 openbsd 56a8f046bf24 d21c5d9d .config log report
ci-openbsd-setuid 2019/08/25 09:21 openbsd 1507cfe1d6a4 d21c5d9d .config log report
ci-openbsd-setuid 2019/08/25 04:57 openbsd 1507cfe1d6a4 d21c5d9d .config log report
ci-openbsd-multicore 2019/08/23 08:58 openbsd 9f57e42b5520 ca6f3cfa .config log report
ci-openbsd-setuid 2019/08/23 02:49 openbsd 9f57e42b5520 ca6f3cfa .config log report
ci-openbsd-setuid 2019/08/21 05:05 openbsd 288889b93f60 6b8391d0 .config log report
ci-openbsd-setuid 2019/08/20 13:03 openbsd 55fd3d8764e7 cfc9868f .config log report
ci-openbsd-setuid 2019/08/20 00:27 openbsd 85b8fad3ba84 ae348fb7 .config log report
ci-openbsd-setuid 2019/08/19 14:58 openbsd 85b8fad3ba84 b8ceabfc .config log report
ci-openbsd-setuid 2019/08/19 12:51 openbsd 85b8fad3ba84 b8ceabfc .config log report
ci-openbsd-setuid 2019/08/18 17:07 openbsd 682277b940c4 55bf8926 .config log report
ci-openbsd-setuid 2019/08/18 13:21 openbsd f7a04f0ff9e5 55bf8926 .config log report
ci-openbsd-setuid 2019/08/18 00:34 openbsd 67dad36eec18 55bf8926 .config log report
ci-openbsd-setuid 2019/08/17 12:58 openbsd 8a28f24953c2 8fd428a1 .config log report
ci-openbsd-setuid 2019/08/16 14:35 openbsd bb94865e4f07 8fd428a1 .config log report
ci-openbsd-setuid 2019/08/15 13:25 openbsd f976af443d9f 0d298d6b .config log report
ci-openbsd-multicore 2019/08/14 19:29 openbsd e394331481e8 5576551b .config log report
ci-openbsd-setuid 2019/08/14 17:38 openbsd e394331481e8 5576551b .config log report
ci-openbsd-setuid 2019/08/14 03:40 openbsd 39cbba3c6e68 ef801a3e .config log report
ci-openbsd-multicore 2019/08/13 23:17 openbsd 723403cbe800 74d61399 .config log report
ci-openbsd-setuid 2019/08/13 09:03 openbsd 8c9a8c5f30e0 8620c2c2 .config log report
ci-openbsd-multicore 2019/08/13 00:04 openbsd 8c9a8c5f30e0 8620c2c2 .config log report
ci-openbsd-setuid 2019/08/11 12:34 openbsd 9db55ce60491 acb51638 .config log report
ci-openbsd-setuid 2019/08/09 23:44 openbsd e875c3a0682a aff9e255 .config log report
ci-openbsd-multicore 2019/08/09 20:55 openbsd e875c3a0682a aff9e255 .config log report
ci-openbsd-setuid 2019/08/09 12:48 openbsd 3ac77e71a879 ede31a9b .config log report
ci-openbsd-setuid 2019/08/09 06:13 openbsd 3ac77e71a879 ede31a9b .config log report
ci-openbsd-setuid 2019/08/09 03:17 openbsd 3ac77e71a879 ede31a9b .config log report
ci-openbsd-setuid 2019/08/09 00:27 openbsd 081f0ff5d5ed bcc419e9 .config log report
ci-openbsd-setuid 2019/08/07 10:35 openbsd 3bcea6ef626a cdde7486 .config log report
ci-openbsd-multicore 2019/08/07 01:53 openbsd 3bcea6ef626a cdde7486 .config log report
ci-openbsd-multicore 2019/08/05 22:05 openbsd d8d31ef08b65 6affd8e8 .config log report
ci-openbsd-setuid 2019/08/05 14:07 openbsd fa32c33cb2c9 6affd8e8 .config log report
ci-openbsd-setuid 2019/08/05 07:52 openbsd 864b814f529e 6affd8e8 .config log report
ci-openbsd-multicore 2019/08/05 03:51 openbsd 864b814f529e 6affd8e8 .config log report
ci-openbsd-multicore 2019/08/04 18:02 openbsd e4f599ca6879 6affd8e8 .config log report
ci-openbsd-setuid 2019/08/04 01:24 openbsd d72f70aa5ac4 6affd8e8 .config log report
ci-openbsd-multicore 2019/08/03 14:18 openbsd c935b51f457f 6affd8e8 .config log report
ci-openbsd-setuid 2019/08/03 01:55 openbsd f7c95aac3abf 3faab807 .config log report
ci-openbsd-pf 2019/03/05 00:53 openbsd e86fbd1d81cc 3419571c .config log report