panic: Thread 0xffff800020b75778 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 34444 97512 73 0x100010 0 0 syslogd * 88787 38101 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x16c sys/kern/subr_prf.c:208 witness_thread_exit(219da7418f519539) at witness_thread_exit+0x244 sys/kern/subr_witness.c:1377 reaper(0) at reaper+0x14f sys/kern/kern_exit.c:412 end trace frame: 0x0, count: 11 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> show panic Thread 0xffff800020b75778 cannot exit while holding sleeplocks ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x16c sys/kern/subr_prf.c:208 witness_thread_exit(219da7418f519539) at witness_thread_exit+0x244 sys/kern/subr_witness.c:1377 reaper(0) at reaper+0x14f sys/kern/kern_exit.c:412 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b66ee0 rbx 0xffff800020b66f80 rdx 0xffffffff81ec7571 cmd0646_9_tim_udma+0x1299c rcx 0 rax 0 r8 0xffffffff81928b04 kprintf+0x174 r9 0x1 r10 0x4df9fa0bea00eed0 r11 0xbd758eb214c3db73 r12 0x3000000008 r13 0xffff800020b66ef0 r14 0x100 r15 0x1 rip 0xffffffff810e9c38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b66ed0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=88787 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21068,0xffff800020b21c30 process=0xffff800020b5a698 user=0xffff800020b62000, vmspace=0xffffffff82312950 estcpu=1, cpticks=2, pctcpu=0.42 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 50938 186082 79850 32767 3 0x90 nanosleep syz-executor0 79850 191308 13252 0 3 0x82 wait syz-executor0 41258 290756 41510 32767 3 0x90 piperd syz-executor1 41510 62198 13252 0 3 0x82 wait syz-executor1 56482 419543 0 0 3 0x14200 bored sosplice 13252 143803 85400 0 3 0x82 thrsleep syz-fuzzer 13252 209789 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 258471 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 497171 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 94184 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 81499 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 59899 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 347739 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 12010 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 87131 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 162163 85400 0 3 0x4000082 thrsleep syz-fuzzer 13252 3621 85400 0 3 0x4000082 kqread syz-fuzzer 85400 510815 12868 0 3 0x10008a pause ksh 12868 510719 54989 0 3 0x92 select sshd 66750 240835 1 0 3 0x100083 ttyin getty 54989 257017 1 0 3 0x80 select sshd 97512 34444 36096 73 7 0x100010 syslogd 36096 105436 1 0 3 0x100082 netio syslogd 51824 504140 1 77 3 0x100090 poll dhclient 31272 72654 1 0 3 0x80 poll dhclient 26964 39040 0 0 3 0x14200 pgzero zerothread 29127 114519 0 0 3 0x14200 aiodoned aiodoned 35878 225813 0 0 3 0x14200 syncer update 91098 6267 0 0 3 0x14200 cleaner cleaner *38101 88787 0 0 7 0x14200 reaper 90840 22464 0 0 3 0x14200 pgdaemon pagedaemon 84297 89770 0 0 3 0x14200 bored crynlk 2930 31681 0 0 3 0x14200 bored crypto 19215 137457 0 0 3 0x40014200 acpi0 acpi0 69365 176712 0 0 3 0x40014200 idle1 67674 324646 0 0 3 0x14200 bored softnet 29962 167632 0 0 3 0x14200 bored systqmp 87357 152250 0 0 3 0x14200 bored systq 79673 170231 0 0 3 0x40014200 bored softclock 45404 79276 0 0 3 0x40014200 idle0 1 328676 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 97512 (syslogd) thread 0xffff800020be5780 (34444) exclusive rrwlock inode r = 0 (0xfffffd806eb971a8) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_vnops.c:1547 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9462 6321K 6321K 78643K 13419 0 0 pcb 23 9K 11K 78643K 13577 0 0 rtable 97 3K 3K 78643K 18537 0 0 ifaddr 36 22K 29K 78643K 3524 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 716 0 0 iov 0 0K 48K 78643K 1963 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 19492 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 306 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 2046 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 33K 78643K 26709 0 0 sigio 0 0K 0K 78643K 378 0 0 proc 41 38K 70K 78643K 15532 0 0 subproc 68 69634K 69634K 78643K 19584 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 3988 0 0 in_multi 33 2K 2K 78643K 7369 0 0 ether_multi 1 0K 0K 78643K 234 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 4508 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 128 22K 62K 78643K 83714 0 0 UVM aobj 130 6K 7K 78643K 152 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 538 0 0 NDP 5 0K 0K 78643K 1731 0 0 temp 121 2362K 2442K 78643K 98606 0 0 kqueue 0 0K 0K 78643K 287 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 578 0 574 1 0 1 1 0 8 0 inpcbpl 280 11745 0 11737 3 2 1 2 0 8 0 plimitpl 152 1418 0 1409 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 5207 0 5167 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 16 0 16 1 1 0 1 0 8 0 tcpcb 544 4732 0 4728 1 0 1 1 0 8 0 nd6 48 1152 0 1148 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 24374 0 24183 31 19 12 13 0 8 0 art_table 32 24375 0 24183 2 0 2 2 0 8 0 art_node 16 5206 0 5172 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 19 1 0 1 1 0 8 0 semapl 112 2044 0 2034 1 0 1 1 0 8 0 shmpl 112 150 0 22 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 36880 0 34952 64 1 63 63 0 8 0 ffsino 272 36880 0 34952 131 2 129 129 0 8 0 nchpl 144 72515 0 70936 59 0 59 59 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 272743 0 272743 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 188584 0 188584 86 85 1 6 0 8 1 sigapl 432 25154 0 25140 6 4 2 3 0 8 0 futexpl 56 261828 0 261828 2 1 1 1 0 8 1 knotepl 112 16086 0 16059 38 37 1 2 0 8 0 kqueuepl 104 7677 0 7675 1 0 1 1 0 8 0 pipepl 112 22872 0 22853 64 63 1 2 0 8 0 fdescpl 488 25155 0 25140 3 0 3 3 0 8 0 filepl 152 175578 0 175482 67 62 5 7 0 8 1 lockfpl 96 6091 0 6091 34 33 1 1 0 8 1 lockfspl 24 13783 0 13783 31 30 1 1 0 8 1 sessionpl 112 591 0 581 1 0 1 1 0 8 0 pgrppl 48 968 0 958 1 0 1 1 0 8 0 ucredpl 96 65455 0 65446 1 0 1 1 0 8 0 zombiepl 144 25140 0 25139 2 1 1 1 0 8 0 processpl 840 25170 0 25139 4 0 4 4 0 8 0 procpl 600 72113 0 72069 30 26 4 5 0 8 0 srpgc 64 3366 0 3366 107 107 0 1 0 8 0 sosppl 128 628 0 628 118 118 0 1 0 8 0 sockpl 384 26010 0 25993 32 29 3 4 0 8 1 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 27 0 0 4 2 2 3 0 8 0 mcl12k 12288 91 0 0 3 1 2 2 0 8 0 mcl9k 9216 73 0 0 4 2 2 2 0 8 0 mcl8k 8192 41 0 0 5 3 2 3 0 8 0 mcl4k 4096 63 0 0 5 3 2 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 182 0 0 13 6 7 13 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1428 0 0 12 1 11 11 0 8 0 bufpl 256 43028 0 36059 436 0 436 436 0 8 0 anonpl 16 2643212 0 2637430 553 515 38 45 0 125 3 amapchunkpl 152 209587 0 209497 1239 1234 5 189 0 158 1 amappl16 192 134881 0 134611 792 767 25 29 0 8 8 amappl15 184 3464 0 3459 1 0 1 1 0 8 0 amappl14 176 5270 0 5265 2 1 1 1 0 8 0 amappl13 168 4445 0 4442 1 0 1 1 0 8 0 amappl12 160 3538 0 3531 5 4 1 1 0 8 0 amappl11 152 5379 0 5370 1 0 1 1 0 8 0 amappl10 144 2073 0 2069 3 2 1 1 0 8 0 amappl9 136 3261 0 3260 1 0 1 1 0 8 0 amappl8 128 8446 0 8323 6 1 5 5 0 8 0 amappl7 120 4442 0 4431 1 0 1 1 0 8 0 amappl6 112 5155 0 5133 1 0 1 1 0 8 0 amappl5 104 3860 0 3849 1 0 1 1 0 8 0 amappl4 96 3650 0 3614 6 4 2 2 0 8 0 amappl3 88 2643 0 2637 1 0 1 1 0 8 0 amappl2 80 221048 0 220963 5 2 3 3 0 8 1 amappl1 72 638419 0 637966 24 14 10 19 0 8 0 amappl 72 76736 0 76699 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 151 0 22 3 0 3 3 0 8 0 uaddrrnd 24 25155 0 25139 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 25155 0 25139 1 0 1 1 0 8 0 vmmpekpl 168 216306 0 216280 2 0 2 2 0 8 0 vmmpepl 168 2909486 0 2907992 619 539 80 91 0 357 4 vmsppl 360 25154 0 25139 2 0 2 2 0 8 0 pdppl 4096 50317 0 50278 7 1 6 6 0 8 1 pvpl 32 7242028 0 7233039 1283 1177 106 123 0 265 19 pmappl 224 25154 0 25139 125 124 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 654 0 39 18 0 18 18 0 8 0