panic: Thread 0xffff800020bba4c8 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 347253 73578 73 0x100010 0 1K syslogd * 87183 81 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(6a65df01bde0a3f4) 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 0xffff800020bba4c8 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(6a65df01bde0a3f4) 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 0xffff800020b67ce0 rbx 0xffff800020b67d80 rdx 0xffffffff81ec7571 cmd0646_9_tim_udma+0x1299c rcx 0 rax 0 r8 0xffffffff81928b04 kprintf+0x174 r9 0x1 r10 0x73386e053b7bee05 r11 0x75207162b3f47e93 r12 0x3000000008 r13 0xffff800020b67cf0 r14 0x100 r15 0x1 rip 0xffffffff810e9c38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67cd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=87183 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21770,0xffff800020b21c30 process=0xffff800020b5b070 user=0xffff800020b62000, vmspace=0xffffffff82312950 estcpu=1, cpticks=3, pctcpu=0.20 user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27451 183570 70488 32767 3 0x90 piperd syz-executor0 70488 180578 93251 0 3 0x82 wait syz-executor0 95127 186496 57777 32767 2 0x490 syz-executor1 57777 112294 93251 0 3 0x82 wait syz-executor1 91915 75852 0 0 3 0x14200 bored sosplice 93251 302327 88786 0 3 0x82 thrsleep syz-fuzzer 93251 149534 88786 0 3 0x4000082 thrsleep syz-fuzzer 93251 489807 88786 0 3 0x4000082 thrsleep syz-fuzzer 93251 356380 88786 0 3 0x4000082 thrsleep syz-fuzzer 93251 363755 88786 0 3 0x4000082 thrsleep syz-fuzzer 93251 445904 88786 0 3 0x4000082 kqread syz-fuzzer 93251 22200 88786 0 3 0x4000082 thrsleep syz-fuzzer 93251 315439 88786 0 3 0x4000082 thrsleep syz-fuzzer 93251 453999 88786 0 3 0x4000082 thrsleep syz-fuzzer 93251 1848 88786 0 3 0x4000082 thrsleep syz-fuzzer 88786 130931 57869 0 3 0x10008a pause ksh 57869 200635 23319 0 3 0x92 select sshd 54183 250576 1 0 3 0x100083 ttyin getty 23319 199299 1 0 3 0x80 select sshd 73578 347253 6576 73 7 0x100010 syslogd 6576 79374 1 0 3 0x100082 netio syslogd 24150 422979 1 77 3 0x100090 poll dhclient 80975 426593 1 0 3 0x80 poll dhclient 57955 522605 0 0 3 0x14200 pgzero zerothread 56312 313639 0 0 3 0x14200 aiodoned aiodoned 57713 522384 0 0 3 0x14200 syncer update 77541 449914 0 0 3 0x14200 cleaner cleaner * 81 87183 0 0 7 0x14200 reaper 84830 290542 0 0 3 0x14200 pgdaemon pagedaemon 81547 210834 0 0 3 0x14200 bored crynlk 99925 20595 0 0 3 0x14200 bored crypto 85779 252679 0 0 3 0x40014200 acpi0 acpi0 31683 414147 0 0 3 0x40014200 idle1 61546 615 0 0 3 0x14200 bored softnet 61799 413367 0 0 3 0x14200 bored systqmp 7995 392296 0 0 3 0x14200 bored systq 72596 453588 0 0 3 0x40014200 bored softclock 55221 99238 0 0 3 0x40014200 idle0 1 361739 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 73578 (syslogd) thread 0xffff800020be5c30 (347253) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff822fe250) locked @ /syzkaller/managers/setuid/kernel/sys/kern/sched_bsd.c:429 exclusive rrwlock inode r = 0 (0xfffffd806ebad1a8) 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 9461 6321K 6321K 78643K 12168 0 0 pcb 23 9K 11K 78643K 7373 0 0 rtable 97 3K 3K 78643K 10539 0 0 ifaddr 36 18K 21K 78643K 2004 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 412 0 0 iov 0 0K 36K 78643K 1183 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 11227 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 190 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 1109 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 33K 78643K 14490 0 0 sigio 0 0K 0K 78643K 206 0 0 proc 41 38K 70K 78643K 8916 0 0 subproc 68 69634K 69634K 78643K 11084 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 2135 0 0 in_multi 33 2K 2K 78643K 4100 0 0 ether_multi 1 0K 0K 78643K 116 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 2580 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 105 21K 61K 78643K 45265 0 0 UVM aobj 130 6K 6K 78643K 153 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 342 0 0 NDP 5 0K 0K 78643K 981 0 0 temp 121 2362K 2442K 78643K 55655 0 0 kqueue 0 0K 0K 78643K 166 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 328 0 324 1 0 1 1 0 8 0 inpcbpl 280 6240 0 6233 1 0 1 1 0 8 0 plimitpl 152 799 0 790 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 2957 0 2917 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 4 0 4 1 1 0 1 0 8 0 tcpcb 544 2527 0 2523 1 0 1 1 0 8 0 nd6 48 652 0 648 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 13763 0 13572 16 4 12 13 0 8 0 art_table 32 13764 0 13572 2 0 2 2 0 8 0 art_node 16 2956 0 2922 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 7 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 112 1107 0 1097 1 0 1 1 0 8 0 shmpl 112 151 0 23 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 20466 0 18751 57 1 56 56 0 8 0 ffsino 272 20466 0 18751 115 0 115 115 0 8 0 nchpl 144 39967 0 38393 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 150317 0 150317 7 6 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 105171 0 105170 85 84 1 6 0 8 0 sigapl 432 13685 0 13671 6 4 2 3 0 8 0 futexpl 56 143117 0 143117 4 3 1 1 0 8 1 knotepl 112 9068 0 9041 22 21 1 2 0 8 0 kqueuepl 104 4290 0 4288 1 0 1 1 0 8 0 pipepl 112 12254 0 12235 35 34 1 2 0 8 0 fdescpl 488 13686 0 13671 3 0 3 3 0 8 0 filepl 152 95820 0 95724 31 26 5 7 0 8 1 lockfpl 96 3193 0 3193 18 17 1 1 0 8 1 lockfspl 24 6813 0 6813 14 13 1 1 0 8 1 sessionpl 112 341 0 331 1 0 1 1 0 8 0 pgrppl 48 532 0 522 1 0 1 1 0 8 0 ucredpl 96 35749 0 35740 1 0 1 1 0 8 0 zombiepl 144 13671 0 13670 2 1 1 1 0 8 0 processpl 840 13701 0 13670 4 0 4 4 0 8 0 procpl 600 38461 0 38419 6 2 4 5 0 8 0 srpgc 64 1904 0 1904 50 49 1 1 0 8 1 sosppl 128 328 0 328 53 52 1 1 0 8 1 sockpl 384 13966 0 13949 17 14 3 4 0 8 1 mcl64k 65536 20 0 0 3 0 3 3 0 8 0 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 58 0 0 2 0 2 2 0 8 0 mcl9k 9216 57 0 0 4 2 2 2 0 8 0 mcl8k 8192 46 0 0 5 3 2 3 0 8 0 mcl4k 4096 41 0 0 4 1 3 3 0 8 0 mcl2k2 2112 26 0 0 2 0 2 2 0 8 0 mcl2k 2048 129 0 0 13 3 10 13 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 823 0 0 10 2 8 10 0 8 0 bufpl 256 26137 0 19168 436 0 436 436 0 8 0 anonpl 16 1443394 0 1437714 303 264 39 42 0 125 1 amapchunkpl 152 118876 0 118774 787 716 71 189 0 158 65 amappl16 192 74769 0 74518 444 422 22 28 0 8 6 amappl15 184 3022 0 3022 26 26 0 1 0 8 0 amappl14 176 3108 0 3099 2 1 1 1 0 8 0 amappl13 168 2080 0 2076 1 0 1 1 0 8 0 amappl12 160 1907 0 1898 1 0 1 1 0 8 0 amappl11 152 2857 0 2845 1 0 1 1 0 8 0 amappl10 144 1377 0 1366 1 0 1 1 0 8 0 amappl9 136 1652 0 1651 1 0 1 1 0 8 0 amappl8 128 4323 0 4251 3 0 3 3 0 8 0 amappl7 120 2082 0 2071 1 0 1 1 0 8 0 amappl6 112 2365 0 2346 1 0 1 1 0 8 0 amappl5 104 2418 0 2407 1 0 1 1 0 8 0 amappl4 96 1876 0 1840 2 1 1 2 0 8 0 amappl3 88 1331 0 1325 1 0 1 1 0 8 0 amappl2 80 119508 0 119445 2 0 2 2 0 8 0 amappl1 72 353152 0 352688 24 14 10 19 0 8 0 amappl 72 41270 0 41229 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 152 0 23 3 0 3 3 0 8 0 uaddrrnd 24 13686 0 13670 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13686 0 13670 1 0 1 1 0 8 0 vmmpekpl 168 115464 0 115439 2 0 2 2 0 8 0 vmmpepl 168 1572795 0 1571373 364 289 75 85 0 357 5 vmsppl 360 13685 0 13670 2 0 2 2 0 8 0 pdppl 4096 27379 0 27340 8 2 6 6 0 8 1 pvpl 32 3940231 0 3931360 806 696 110 123 0 265 23 pmappl 224 13685 0 13670 67 66 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 626 0 23 18 0 18 18 0 8 0