panic: Thread 0xffff800020b93788 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 319326 31277 73 0x100010 0 0 syslogd * 37566 10738 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(d32a7348a9379e73) 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 0xffff800020b93788 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(d32a7348a9379e73) 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 0xffff800020b67c10 rbx 0xffff800020b67cb0 rdx 0xffffffff81ec49f8 cmd0646_9_tim_udma+0x15dbb rcx 0 rax 0 r8 0xffffffff813ff014 kprintf+0x174 r9 0x1 r10 0x621c3d3155fbb8ef r11 0xaaca98af02cdb9d3 r12 0x3000000008 r13 0xffff800020b67c20 r14 0x100 r15 0x1 rip 0xffffffff817251a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67c00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=37566 stat=onproc flags process=14000 proc=200 pri=4, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21518,0xffff800020b21c30 process=0xffff800020b5a698 user=0xffff800020b62000, vmspace=0xffffffff82302a88 estcpu=3, cpticks=3, pctcpu=0.44 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39441 23058 37110 32767 3 0x90 piperd syz-executor1 37110 501785 88021 0 3 0x82 wait syz-executor1 54303 232020 83194 32767 3 0x90 nanosleep syz-executor0 83194 480623 88021 0 3 0x82 wait syz-executor0 83466 423710 0 0 3 0x14200 bored sosplice 88021 319323 43367 0 3 0x82 thrsleep syz-fuzzer 88021 387789 43367 0 3 0x4000082 thrsleep syz-fuzzer 88021 519384 43367 0 3 0x4000082 thrsleep syz-fuzzer 88021 62545 43367 0 3 0x4000082 kqread syz-fuzzer 88021 120192 43367 0 3 0x4000082 thrsleep syz-fuzzer 88021 6073 43367 0 3 0x4000082 thrsleep syz-fuzzer 88021 480538 43367 0 3 0x4000082 thrsleep syz-fuzzer 88021 302943 43367 0 3 0x4000082 thrsleep syz-fuzzer 88021 71075 43367 0 3 0x4000082 thrsleep syz-fuzzer 88021 95176 43367 0 3 0x4000082 thrsleep syz-fuzzer 88021 395729 43367 0 3 0x4000082 thrsleep syz-fuzzer 43367 206251 31052 0 3 0x10008a pause ksh 31052 317178 31945 0 3 0x92 select sshd 3681 177369 1 0 3 0x100083 ttyin getty 31945 211528 1 0 3 0x80 select sshd 31277 319326 84507 73 7 0x100010 syslogd 84507 393860 1 0 3 0x100082 netio syslogd 89386 456425 1 77 3 0x100090 poll dhclient 27148 405378 1 0 3 0x80 poll dhclient 83563 126581 0 0 3 0x14200 pgzero zerothread 5790 70107 0 0 3 0x14200 aiodoned aiodoned 20273 184160 0 0 3 0x14200 syncer update 60667 499492 0 0 3 0x14200 cleaner cleaner *10738 37566 0 0 7 0x14200 reaper 69307 152428 0 0 3 0x14200 pgdaemon pagedaemon 56389 96259 0 0 3 0x14200 bored crynlk 72674 197432 0 0 3 0x14200 bored crypto 76672 419911 0 0 3 0x40014200 acpi0 acpi0 42617 187088 0 0 3 0x40014200 idle1 76405 201160 0 0 3 0x14200 bored softnet 98046 76555 0 0 3 0x14200 bored systqmp 36917 321124 0 0 3 0x14200 bored systq 60738 372663 0 0 3 0x40014200 bored softclock 14353 209631 0 0 3 0x40014200 idle0 1 267506 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 31277 (syslogd) thread 0xffff800020be52d0 (319326) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82309cb8) locked @ /syzkaller/managers/setuid/kernel/sys/sys/syscall_mi.h:90 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9461 6321K 6321K 78643K 11273 0 0 pcb 23 9K 11K 78643K 3318 0 0 rtable 97 3K 3K 78643K 4809 0 0 ifaddr 35 13K 15K 78643K 917 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 160 0 0 iov 0 0K 24K 78643K 413 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 5752 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 85 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 533 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 33K 78643K 6426 0 0 sigio 0 0K 0K 78643K 73 0 0 proc 41 38K 70K 78643K 4009 0 0 subproc 68 69634K 69634K 78643K 4998 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 764 0 0 in_multi 33 2K 2K 78643K 1837 0 0 ether_multi 1 0K 0K 78643K 49 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 1279 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 97 21K 30K 78643K 20437 0 0 UVM aobj 130 4K 4K 78643K 154 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 127 0 0 NDP 5 0K 0K 78643K 444 0 0 temp 120 2358K 2433K 78643K 26182 0 0 kqueue 0 0K 0K 78643K 64 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 149 0 145 1 0 1 1 0 8 0 inpcbpl 280 2860 0 2853 1 0 1 1 0 8 0 plimitpl 152 357 0 348 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 1346 0 1306 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1074 0 1070 1 0 1 1 0 8 0 nd6 48 294 0 290 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 6241 0 6052 14 2 12 13 0 8 0 art_table 32 6242 0 6052 2 0 2 2 0 8 0 art_node 16 1345 0 1311 1 0 1 1 0 8 0 sysvmsgpl 40 33 0 23 1 0 1 1 0 8 0 semapl 112 531 0 521 1 0 1 1 0 8 0 shmpl 112 152 0 24 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9938 0 8408 51 1 50 50 0 8 0 ffsino 272 9938 0 8408 103 0 103 103 0 8 0 nchpl 144 18804 0 17234 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 68293 0 68293 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 46422 0 46421 27 24 3 6 0 8 2 sigapl 432 6158 0 6144 3 1 2 3 0 8 0 futexpl 56 62960 0 62960 1 0 1 1 0 8 1 knotepl 112 3946 0 3919 8 7 1 2 0 8 0 kqueuepl 104 1789 0 1787 1 0 1 1 0 8 0 pipepl 112 5518 0 5499 21 19 2 2 0 8 1 fdescpl 488 6159 0 6144 3 0 3 3 0 8 1 filepl 152 42038 0 41942 22 15 7 7 0 8 3 lockfpl 96 1209 0 1209 14 13 1 1 0 8 1 lockfspl 24 2986 0 2986 12 11 1 1 0 8 1 sessionpl 112 162 0 152 1 0 1 1 0 8 0 pgrppl 48 265 0 255 1 0 1 1 0 8 0 ucredpl 96 16246 0 16237 1 0 1 1 0 8 0 zombiepl 144 6144 0 6143 2 1 1 1 0 8 0 processpl 840 6174 0 6143 4 0 4 4 0 8 0 procpl 600 17153 0 17110 7 3 4 5 0 8 0 srpgc 64 854 0 854 21 20 1 1 0 8 1 sosppl 128 174 0 174 22 21 1 1 0 8 1 sockpl 384 6329 0 6312 11 7 4 4 0 8 2 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 26 0 0 4 1 3 3 0 8 1 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 103 0 0 12 1 11 12 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 378 0 0 10 0 10 10 0 8 0 bufpl 256 13255 0 6286 436 0 436 436 0 8 0 anonpl 16 657277 0 651811 202 172 30 41 0 125 0 amapchunkpl 152 41819 0 41729 78 69 9 9 0 158 4 amappl16 192 33012 0 32736 206 188 18 27 0 8 1 amappl15 184 642 0 641 1 0 1 1 0 8 0 amappl14 176 923 0 915 2 1 1 1 0 8 0 amappl13 168 944 0 939 1 0 1 1 0 8 0 amappl12 160 809 0 803 1 0 1 1 0 8 0 amappl11 152 1760 0 1751 1 0 1 1 0 8 0 amappl10 144 404 0 393 2 1 1 1 0 8 0 amappl9 136 1323 0 1322 1 0 1 1 0 8 0 amappl8 128 1978 0 1923 3 0 3 3 0 8 0 amappl7 120 955 0 945 1 0 1 1 0 8 0 amappl6 112 985 0 970 1 0 1 1 0 8 0 amappl5 104 880 0 869 1 0 1 1 0 8 0 amappl4 96 1309 0 1279 2 1 1 2 0 8 0 amappl3 88 754 0 746 1 0 1 1 0 8 0 amappl2 80 52897 0 52838 2 0 2 2 0 8 0 amappl1 72 162906 0 162456 24 14 10 18 0 8 0 amappl 72 18426 0 18388 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 153 0 24 3 0 3 3 0 8 0 uaddrrnd 24 6159 0 6143 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6159 0 6143 1 0 1 1 0 8 0 vmmpekpl 168 54204 0 54179 2 0 2 2 0 8 0 vmmpepl 168 706998 0 705603 210 137 73 81 0 357 6 vmsppl 360 6158 0 6143 2 0 2 2 0 8 0 pdppl 4096 12325 0 12286 6 0 6 6 0 8 0 pvpl 32 1789466 0 1780831 375 281 94 114 0 265 13 pmappl 224 6158 0 6143 27 25 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 601 0 8 17 0 17 17 0 8 0