panic: Thread 0xffff800020bba270 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 353916 13416 73 0x100010 0 0 syslogd *214687 79148 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(633363d963f6f912) 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 0xffff800020bba270 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(633363d963f6f912) 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 0xffff800020b67950 rbx 0xffff800020b679f0 rdx 0xffffffff81ec5817 cmd0646_9_tim_udma+0x133e5 rcx 0 rax 0 r8 0xffffffff819810f4 kprintf+0x174 r9 0x1 r10 0x83f61ce23ebab0a0 r11 0x2c508ffc491efc81 r12 0x3000000008 r13 0xffff800020b67960 r14 0x100 r15 0x1 rip 0xffffffff816f2378 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67940 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=214687 stat=onproc flags process=14000 proc=200 pri=4, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020b20e10,0xffff800020b219d8 process=0xffff800020b5b070 user=0xffff800020b62000, vmspace=0xffffffff823219e8 estcpu=0, cpticks=3, pctcpu=0.58 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2816 333627 18124 32767 3 0x90 piperd syz-executor1 18124 94130 49371 0 3 0x82 wait syz-executor1 76534 7400 23722 32767 3 0x90 nanosleep syz-executor0 23722 101395 49371 0 3 0x82 wait syz-executor0 65407 110422 0 0 3 0x14200 bored sosplice 49371 28081 14467 0 3 0x82 thrsleep syz-fuzzer 49371 174267 14467 0 3 0x4000082 thrsleep syz-fuzzer 49371 218379 14467 0 3 0x4000082 thrsleep syz-fuzzer 49371 20706 14467 0 3 0x4000082 thrsleep syz-fuzzer 49371 512430 14467 0 3 0x4000082 thrsleep syz-fuzzer 49371 342640 14467 0 3 0x4000082 thrsleep syz-fuzzer 49371 261775 14467 0 3 0x4000082 thrsleep syz-fuzzer 49371 419567 14467 0 3 0x4000082 thrsleep syz-fuzzer 49371 477183 14467 0 3 0x4000082 kqread syz-fuzzer 49371 245854 14467 0 3 0x4000082 thrsleep syz-fuzzer 49371 364690 14467 0 3 0x4000082 thrsleep syz-fuzzer 49371 392649 14467 0 3 0x4000082 thrsleep syz-fuzzer 14467 182692 97622 0 3 0x10008a pause ksh 97622 402897 49307 0 3 0x92 select sshd 27217 30586 1 0 3 0x100083 ttyin getty 49307 483105 1 0 3 0x80 select sshd 13416 353916 8639 73 7 0x100010 syslogd 8639 233070 1 0 3 0x100082 netio syslogd 48858 476580 1 77 3 0x100090 poll dhclient 80061 243579 1 0 3 0x80 poll dhclient 382 52474 0 0 3 0x14200 pgzero zerothread 6324 125907 0 0 3 0x14200 aiodoned aiodoned 13293 284198 0 0 3 0x14200 syncer update 81746 502232 0 0 3 0x14200 cleaner cleaner *79148 214687 0 0 7 0x14200 reaper 21751 124549 0 0 3 0x14200 pgdaemon pagedaemon 38566 45352 0 0 3 0x14200 bored crynlk 59986 85363 0 0 3 0x14200 bored crypto 8514 380226 0 0 3 0x40014200 acpi0 acpi0 73067 263720 0 0 3 0x40014200 idle1 75133 289515 0 0 3 0x14200 bored softnet 61247 394747 0 0 3 0x14200 bored systqmp 12443 258518 0 0 3 0x14200 bored systq 41933 28529 0 0 3 0x40014200 bored softclock 83023 172744 0 0 3 0x40014200 idle0 1 485327 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 13416 (syslogd) thread 0xffff800020be5c30 (353916) exclusive rrwlock inode r = 0 (0xfffffd806eba04d8) 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 11044 0 0 pcb 23 9K 11K 78643K 1990 0 0 rtable 97 3K 3K 78643K 3335 0 0 ifaddr 35 11K 12K 78643K 637 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 133 0 0 iov 0 0K 32K 78643K 298 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 4086 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 46 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 344 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 7 21K 33K 78643K 3940 0 0 sigio 0 0K 0K 78643K 55 0 0 proc 41 38K 70K 78643K 2872 0 0 subproc 68 69634K 69634K 78643K 3434 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 601 0 0 in_multi 33 2K 2K 78643K 1282 0 0 ether_multi 1 0K 0K 78643K 31 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 850 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 100 21K 41K 78643K 12779 0 0 UVM aobj 130 9K 9K 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 63 0 0 NDP 5 0K 0K 78643K 306 0 0 temp 121 2362K 2434K 78643K 17661 0 0 kqueue 0 0K 0K 78643K 31 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 103 0 99 1 0 1 1 0 8 0 inpcbpl 280 1655 0 1648 1 0 1 1 0 8 0 plimitpl 152 253 0 244 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 932 0 892 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 635 0 631 1 0 1 1 0 8 0 nd6 48 202 0 198 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4310 0 4122 12 0 12 12 0 8 0 art_table 32 4311 0 4122 2 0 2 2 0 8 0 art_node 16 931 0 897 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 33 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 342 0 332 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 6444 0 4957 49 0 49 49 0 8 0 ffsino 272 6444 0 4957 101 1 100 100 0 8 0 nchpl 144 11755 0 10179 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 42734 0 42734 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 29658 0 29658 23 22 1 7 0 8 1 sigapl 432 3810 0 3795 3 1 2 3 0 8 0 futexpl 56 37020 0 37020 1 0 1 1 0 8 1 knotepl 112 2563 0 2536 7 6 1 2 0 8 0 kqueuepl 104 1001 0 999 1 0 1 1 0 8 0 pipepl 112 3454 0 3435 8 6 2 2 0 8 0 fdescpl 488 3811 0 3795 3 0 3 3 0 8 0 filepl 152 25864 0 25765 14 9 5 7 0 8 0 lockfpl 96 835 0 835 7 6 1 1 0 8 1 lockfspl 24 1931 0 1931 7 6 1 1 0 8 1 sessionpl 112 116 0 106 1 0 1 1 0 8 0 pgrppl 48 149 0 139 1 0 1 1 0 8 0 ucredpl 96 9232 0 9223 1 0 1 1 0 8 0 zombiepl 144 3796 0 3795 1 0 1 1 0 8 0 processpl 840 3826 0 3795 4 0 4 4 0 8 0 procpl 600 10390 0 10346 9 5 4 5 0 8 0 srpgc 64 586 0 586 13 12 1 1 0 8 1 sosppl 128 58 0 58 12 12 0 1 0 8 0 sockpl 384 3720 0 3703 7 4 3 4 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 126 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 305 0 0 11 0 11 11 0 8 0 bufpl 256 10225 0 3256 436 0 436 436 0 8 0 anonpl 16 373059 0 367035 137 104 33 41 0 125 3 amapchunkpl 152 28206 0 28114 131 122 9 96 0 158 4 amappl16 192 17833 0 17556 106 89 17 27 0 8 0 amappl15 184 801 0 800 1 0 1 1 0 8 0 amappl14 176 706 0 696 2 1 1 1 0 8 0 amappl13 168 775 0 772 1 0 1 1 0 8 0 amappl12 160 413 0 409 1 0 1 1 0 8 0 amappl11 152 977 0 968 1 0 1 1 0 8 0 amappl10 144 226 0 221 1 0 1 1 0 8 0 amappl9 136 764 0 758 1 0 1 1 0 8 0 amappl8 128 1285 0 1239 2 0 2 2 0 8 0 amappl7 120 786 0 775 1 0 1 1 0 8 0 amappl6 112 504 0 487 1 0 1 1 0 8 0 amappl5 104 890 0 879 1 0 1 1 0 8 0 amappl4 96 787 0 762 2 1 1 2 0 8 0 amappl3 88 319 0 314 1 0 1 1 0 8 0 amappl2 80 31924 0 31866 2 0 2 2 0 8 0 amappl1 72 102818 0 102357 24 14 10 19 0 8 0 amappl 72 11325 0 11287 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 3811 0 3795 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3811 0 3795 1 0 1 1 0 8 0 vmmpekpl 168 34934 0 34904 2 0 2 2 0 8 0 vmmpepl 168 437851 0 436459 155 82 73 76 0 357 6 vmsppl 360 3810 0 3795 2 0 2 2 0 8 0 pdppl 4096 7629 0 7590 6 0 6 6 0 8 0 pvpl 32 1105165 0 1095963 289 188 101 115 0 265 22 pmappl 224 3810 0 3795 19 17 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 597 0 3 17 0 17 17 0 8 0