panic: thread 0xffff800020b92e28 cannot exit while holding sleeplocks Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 153571 6764 73 0x100010 0 0 syslogd *367595 98466 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(11d57a07a3c62e94) 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 0xffff800020b92e28 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(11d57a07a3c62e94) 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 0xffff800020b67380 rbx 0xffff800020b67420 rdx 0xffffffff81ec88ae cmd0646_9_tim_udma+0x18cbf rcx 0 rax 0 r8 0xffffffff81aa9b64 kprintf+0x174 r9 0x1 r10 0xbca03db69b235a3e r11 0x9fb55812bddc1e29 r12 0x3000000008 r13 0xffff800020b67390 r14 0x100 r15 0x1 rip 0xffffffff819d4fa8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b67370 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (reaper) pid=367595 stat=onproc flags process=14000 proc=200 pri=4, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020b21068,0xffff800020b219d8 process=0xffff800020b5b070 user=0xffff800020b62000, vmspace=0xffffffff822dc6f0 estcpu=2, cpticks=7, pctcpu=0.33 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93920 499712 44757 32767 2 0x10 syz-executor0 93920 7739 44757 32767 2 0x4000010 syz-executor0 42043 298838 51844 32767 3 0x90 nanosleep syz-executor1 51844 447892 26633 0 3 0x82 wait syz-executor1 44757 265480 5940 32767 3 0x90 nanosleep syz-executor0 5940 215189 26633 0 3 0x82 wait syz-executor0 49513 10655 0 0 3 0x14200 bored sosplice 26633 467516 47204 0 3 0x82 kqread syz-fuzzer 26633 334196 47204 0 3 0x4000082 thrsleep syz-fuzzer 26633 281029 47204 0 3 0x4000082 thrsleep syz-fuzzer 26633 362264 47204 0 3 0x4000082 thrsleep syz-fuzzer 26633 357645 47204 0 3 0x4000082 thrsleep syz-fuzzer 26633 476891 47204 0 3 0x4000082 thrsleep syz-fuzzer 26633 404898 47204 0 3 0x4000082 thrsleep syz-fuzzer 26633 379687 47204 0 3 0x4000082 thrsleep syz-fuzzer 26633 494895 47204 0 3 0x4000082 thrsleep syz-fuzzer 26633 310378 47204 0 3 0x4000082 thrsleep syz-fuzzer 47204 248095 78393 0 3 0x10008a pause ksh 78393 133341 40162 0 3 0x92 select sshd 66741 397595 1 0 3 0x100083 ttyin getty 40162 510243 1 0 3 0x80 select sshd 6764 153571 69274 73 7 0x100010 syslogd 69274 202373 1 0 3 0x100082 netio syslogd 20826 198163 1 77 3 0x100090 poll dhclient 85916 359818 1 0 3 0x80 poll dhclient 74350 37740 0 0 2 0x14200 zerothread 26351 47625 0 0 3 0x14200 aiodoned aiodoned 96925 362724 0 0 3 0x14200 syncer update 81822 181459 0 0 3 0x14200 cleaner cleaner *98466 367595 0 0 7 0x14200 reaper 28882 399235 0 0 3 0x14200 pgdaemon pagedaemon 63725 378622 0 0 3 0x14200 bored crynlk 55295 142205 0 0 3 0x14200 bored crypto 94737 163301 0 0 3 0x40014200 acpi0 acpi0 4294 491443 0 0 3 0x40014200 idle1 34827 312532 0 0 3 0x14200 bored softnet 43431 250913 0 0 3 0x14200 bored systqmp 12677 26174 0 0 3 0x14200 bored systq 33515 91362 0 0 3 0x40014200 bored softclock 14869 413127 0 0 3 0x40014200 idle0 1 100337 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 6764 (syslogd) thread 0xffff800020be5c30 (153571) exclusive rrwlock inode r = 0 (0xfffffd806ebcc2b8) 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 11594 0 0 pcb 23 9K 11K 78643K 4708 0 0 rtable 97 3K 3K 78643K 6855 0 0 ifaddr 36 14K 15K 78643K 1304 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 276 0 0 iov 0 0K 32K 78643K 678 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 7610 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 108 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 738 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 7 21K 33K 78643K 9266 0 0 sigio 0 0K 0K 78643K 106 0 0 proc 41 38K 70K 78643K 5639 0 0 subproc 68 69634K 69634K 78643K 7174 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 1369 0 0 in_multi 33 2K 2K 78643K 2633 0 0 ether_multi 1 0K 0K 78643K 65 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 1729 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 42K 78643K 29321 0 0 UVM aobj 130 7K 7K 78643K 157 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 194 0 0 NDP 5 0K 0K 78643K 636 0 0 temp 121 2362K 2440K 78643K 36526 0 0 kqueue 0 0K 0K 78643K 103 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 213 0 209 1 0 1 1 0 8 0 inpcbpl 280 3892 0 3885 1 0 1 1 0 8 0 plimitpl 152 515 0 506 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 1922 0 1882 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1585 0 1581 1 0 1 1 0 8 0 nd6 48 422 0 418 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 8923 0 8736 12 0 12 12 0 8 0 art_table 32 8924 0 8736 2 0 2 2 0 8 0 art_node 16 1921 0 1887 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 11 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 734 0 724 1 0 1 1 0 8 0 shmpl 112 155 0 27 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 13588 0 12017 52 1 51 51 0 8 0 ffsino 272 13588 0 12017 105 0 105 105 0 8 0 nchpl 144 26057 0 24483 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 96960 0 96960 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 68801 0 68801 58 57 1 6 0 8 1 sigapl 432 8806 0 8791 5 3 2 3 0 8 0 futexpl 56 89938 0 89938 2 1 1 1 0 8 1 knotepl 112 5800 0 5773 16 15 1 2 0 8 0 kqueuepl 104 2593 0 2591 1 0 1 1 0 8 0 pipepl 112 7684 0 7665 18 17 1 2 0 8 0 fdescpl 488 8807 0 8791 3 0 3 3 0 8 0 filepl 152 60496 0 60400 25 20 5 7 0 8 1 lockfpl 96 2591 0 2591 13 12 1 1 0 8 1 lockfspl 24 5892 0 5892 12 11 1 1 0 8 1 sessionpl 112 226 0 216 1 0 1 1 0 8 0 pgrppl 48 322 0 312 1 0 1 1 0 8 0 ucredpl 96 22147 0 22138 1 0 1 1 0 8 0 zombiepl 144 8791 0 8790 2 1 1 1 0 8 0 processpl 840 8822 0 8790 4 0 4 4 0 8 0 procpl 600 24820 0 24776 5 1 4 5 0 8 0 srpgc 64 1236 0 1236 36 35 1 1 0 8 1 sosppl 128 160 0 160 42 41 1 1 0 8 1 sockpl 384 8807 0 8790 14 11 3 4 0 8 1 mcl64k 65536 20 0 0 3 1 2 3 0 8 0 mcl16k 16384 20 0 0 3 1 2 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 38 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 41 0 0 6 3 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 151 0 0 15 5 10 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 606 0 0 10 0 10 10 0 8 0 bufpl 256 18799 0 11830 436 0 436 436 0 8 0 anonpl 16 1019861 0 1014442 270 232 38 43 0 125 4 amapchunkpl 152 69869 0 69774 298 285 13 97 0 158 7 amappl16 192 49667 0 49396 353 329 24 28 0 8 8 amappl15 184 1664 0 1663 1 0 1 1 0 8 0 amappl14 176 1836 0 1833 2 1 1 1 0 8 0 amappl13 168 1954 0 1948 1 0 1 1 0 8 0 amappl12 160 814 0 805 1 0 1 1 0 8 0 amappl11 152 1779 0 1767 1 0 1 1 0 8 0 amappl10 144 571 0 563 1 0 1 1 0 8 0 amappl9 136 1138 0 1137 1 0 1 1 0 8 0 amappl8 128 2390 0 2318 3 0 3 3 0 8 0 amappl7 120 1977 0 1967 1 0 1 1 0 8 0 amappl6 112 1262 0 1248 1 0 1 1 0 8 0 amappl5 104 1951 0 1938 1 0 1 1 0 8 0 amappl4 96 1437 0 1409 2 1 1 2 0 8 0 amappl3 88 1001 0 996 1 0 1 1 0 8 0 amappl2 80 76176 0 76104 2 0 2 2 0 8 0 amappl1 72 227155 0 226699 24 14 10 19 0 8 0 amappl 72 26568 0 26528 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 156 0 27 3 0 3 3 0 8 0 uaddrrnd 24 8807 0 8790 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8807 0 8790 1 0 1 1 0 8 0 vmmpekpl 168 76031 0 76006 2 0 2 2 0 8 0 vmmpepl 168 1013948 0 1012474 285 208 77 83 0 357 9 vmsppl 360 8806 0 8790 2 0 2 2 0 8 0 pdppl 4096 17621 0 17580 7 1 6 6 0 8 0 pvpl 32 2641783 0 2633079 541 435 106 120 0 265 17 pmappl 224 8806 0 8790 48 46 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 610 0 15 18 0 18 18 0 8 0