panic: thread 0xffff800020b92270 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 175489 26 32767 0x10 0x480 1 syz-executor1 *440605 785 0 0x14000 0x200 0 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(74bc804d110a5a4f) 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{0}> ddb{0}> set $lines = 0 ddb{0}> show panic thread 0xffff800020b92270 cannot exit while holding sleeplocks ddb{0}> 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(74bc804d110a5a4f) 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{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b67b00 rbx 0xffff800020b67ba0 rdx 0xffffffff81ec88ae cmd0646_9_tim_udma+0x18cbf rcx 0 rax 0 r8 0xffffffff81aa9b64 kprintf+0x174 r9 0x1 r10 0x67458e806f0dfb2a r11 0x7f9722be0d8fbaea r12 0x3000000008 r13 0xffff800020b67b10 r14 0x100 r15 0x1 rip 0xffffffff819d4fa8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67af0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=440605 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b20960,0xffff800020b21c30 process=0xffff800020b5ad28 user=0xffff800020b62000, vmspace=0xffffffff822dc6f0 estcpu=1, cpticks=4, pctcpu=0.27 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 66192 246456 52203 32767 2 0x10 syz-executor0 66192 98103 52203 32767 2 0x4000010 syz-executor0 52203 146440 8560 32767 3 0x90 nanosleep syz-executor0 8560 115110 89931 0 3 0x82 wait syz-executor0 26 175489 20676 32767 7 0x490 syz-executor1 20676 246554 89931 0 3 0x82 wait syz-executor1 87846 205511 0 0 3 0x14200 bored sosplice 89931 78675 86769 0 3 0x82 kqread syz-fuzzer 89931 33836 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 259203 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 231417 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 32666 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 392641 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 75795 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 520877 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 68134 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 478793 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 28754 86769 0 3 0x4000082 thrsleep syz-fuzzer 89931 296364 86769 0 3 0x4000082 thrsleep syz-fuzzer 86769 86501 86995 0 3 0x10008a pause ksh 86995 8857 35601 0 3 0x92 select sshd 96450 206958 1 0 3 0x100083 ttyin getty 35601 225531 1 0 3 0x80 select sshd 33788 155272 38053 73 2 0x100010 syslogd 38053 512913 1 0 3 0x100082 netio syslogd 73856 17159 1 77 3 0x100090 poll dhclient 29652 209121 1 0 3 0x80 poll dhclient 90217 226181 0 0 2 0x14200 zerothread 32348 431188 0 0 3 0x14200 aiodoned aiodoned 86401 298224 0 0 3 0x14200 syncer update 65210 504850 0 0 3 0x14200 cleaner cleaner * 785 440605 0 0 7 0x14200 reaper 90097 300023 0 0 3 0x14200 pgdaemon pagedaemon 37090 467710 0 0 3 0x14200 bored crynlk 82165 66034 0 0 3 0x14200 bored crypto 61407 250148 0 0 3 0x40014200 acpi0 acpi0 82382 136351 0 0 3 0x40014200 idle1 9038 477032 0 0 3 0x14200 bored softnet 74281 367158 0 0 3 0x14200 bored systqmp 36729 214644 0 0 3 0x14200 bored systq 94985 174637 0 0 3 0x40014200 bored softclock 92964 72676 0 0 3 0x40014200 idle0 1 485500 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33788 (syslogd) thread 0xffff800020be5c30 (155272) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8231e5d8) locked @ /syzkaller/managers/setuid/kernel/sys/kern/sched_bsd.c:429 exclusive rrwlock inode r = 0 (0xfffffd806eb7f2b8) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_vnops.c:1547 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9462 6321K 6321K 78643K 13939 0 0 pcb 23 9K 11K 78643K 14761 0 0 rtable 97 3K 3K 78643K 21863 0 0 ifaddr 36 22K 28K 78643K 4153 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 811 0 0 iov 0 0K 32K 78643K 2210 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 21881 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 396 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 2368 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 8 25K 33K 78643K 30072 0 0 sigio 0 0K 0K 78643K 394 0 0 proc 41 38K 70K 78643K 17893 0 0 subproc 68 69634K 69634K 78643K 23120 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 4192 0 0 in_multi 33 2K 2K 78643K 8485 0 0 ether_multi 1 0K 0K 78643K 208 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 5417 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 102 21K 42K 78643K 94131 0 0 UVM aobj 130 4K 5K 78643K 178 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 691 0 0 NDP 5 0K 0K 78643K 2043 0 0 temp 121 2362K 2442K 78643K 112301 0 0 kqueue 0 0K 0K 78643K 371 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 682 0 678 1 0 1 1 0 8 0 inpcbpl 280 13041 0 13034 1 0 1 1 0 8 0 plimitpl 152 1655 0 1646 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 6143 0 6103 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 5039 0 5035 1 0 1 1 0 8 0 nd6 48 1360 0 1356 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 28720 0 28529 35 23 12 13 0 8 0 art_table 32 28721 0 28529 2 0 2 2 0 8 0 art_node 16 6142 0 6108 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 2 2 0 1 0 8 0 semapl 112 2364 0 2354 1 0 1 1 0 8 0 shmpl 112 176 0 48 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 40595 0 38615 65 1 64 64 0 8 0 ffsino 272 40595 0 38615 136 3 133 133 0 8 0 nchpl 144 80821 0 79247 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 306140 0 306140 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 212124 0 212124 125 124 1 6 0 8 1 sigapl 432 28205 0 28189 9 7 2 3 0 8 0 futexpl 56 291254 0 291254 1 0 1 1 0 8 1 knotepl 112 18360 0 18333 36 35 1 2 0 8 0 kqueuepl 104 8210 0 8208 1 0 1 1 0 8 0 pipepl 112 24750 0 24731 70 69 1 2 0 8 0 fdescpl 488 28206 0 28189 3 0 3 3 0 8 0 filepl 152 193482 0 193383 56 51 5 7 0 8 0 lockfpl 96 6557 0 6557 37 36 1 1 0 8 1 lockfspl 24 14182 0 14182 33 32 1 1 0 8 1 sessionpl 112 695 0 685 1 0 1 1 0 8 0 pgrppl 48 989 0 979 1 0 1 1 0 8 0 ucredpl 96 71779 0 71770 1 0 1 1 0 8 0 zombiepl 144 28190 0 28189 1 0 1 1 0 8 0 processpl 840 28221 0 28189 4 0 4 4 0 8 0 procpl 600 80462 0 80417 12 8 4 5 0 8 0 srpgc 64 3978 0 3978 92 91 1 1 0 8 1 sosppl 128 693 0 693 121 120 1 1 0 8 1 sockpl 384 28507 0 28490 26 23 3 4 0 8 1 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 33 0 0 4 1 3 3 0 8 1 mcl12k 12288 97 0 0 3 1 2 2 0 8 0 mcl9k 9216 121 0 0 6 4 2 2 0 8 0 mcl8k 8192 71 0 0 6 4 2 3 0 8 0 mcl4k 4096 64 0 0 4 1 3 3 0 8 0 mcl2k2 2112 18 0 0 2 0 2 2 0 8 0 mcl2k 2048 161 0 0 15 4 11 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1424 0 0 16 6 10 12 0 8 0 bufpl 256 47860 0 40891 436 0 436 436 0 8 0 anonpl 16 3088621 0 3083253 547 509 38 43 0 125 0 amapchunkpl 152 214053 0 213960 643 638 5 101 0 158 0 amappl16 192 153463 0 153203 798 773 25 29 0 8 8 amappl15 184 5130 0 5129 1 0 1 1 0 8 0 amappl14 176 4744 0 4735 5 4 1 1 0 8 0 amappl13 168 3889 0 3881 1 0 1 1 0 8 0 amappl12 160 4261 0 4254 1 0 1 1 0 8 0 amappl11 152 6323 0 6314 1 0 1 1 0 8 0 amappl10 144 4836 0 4825 1 0 1 1 0 8 0 amappl9 136 3816 0 3814 1 0 1 1 0 8 0 amappl8 128 8712 0 8619 6 2 4 4 0 8 0 amappl7 120 3813 0 3797 1 0 1 1 0 8 0 amappl6 112 3543 0 3526 1 0 1 1 0 8 0 amappl5 104 4688 0 4677 1 0 1 1 0 8 0 amappl4 96 5035 0 4996 7 5 2 2 0 8 0 amappl3 88 2756 0 2751 1 0 1 1 0 8 0 amappl2 80 247650 0 247565 2 0 2 2 0 8 0 amappl1 72 711591 0 711122 24 14 10 19 0 8 0 amappl 72 86074 0 86035 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 177 0 48 3 0 3 3 0 8 0 uaddrrnd 24 28206 0 28189 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 28206 0 28189 1 0 1 1 0 8 0 vmmpekpl 168 235786 0 235760 2 0 2 2 0 8 0 vmmpepl 168 3249996 0 3248452 586 512 74 89 0 357 1 vmsppl 360 28205 0 28189 2 0 2 2 0 8 0 pdppl 4096 56419 0 56378 6 0 6 6 0 8 0 pvpl 32 8174727 0 8165939 1244 1141 103 124 0 265 10 pmappl 224 28205 0 28189 113 112 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 669 0 44 18 0 18 18 0 8 0