panic: witness_warn Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *370594 94183 32767 0x10 0x4000000 0 syz-executor1 512253 28880 32767 0x10 0 1 syz-executor1 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_warn(e26073450125e844,0,ffff800020b93530) at witness_warn+0x700 witness_debugger sys/kern/subr_witness.c:2549 [inline] witness_warn(e26073450125e844,0,ffff800020b93530) at witness_warn+0x700 sys/kern/subr_witness.c:1465 userret(74478483dc5cd352) at userret+0x361 sys/kern/kern_sig.c:1899 syscall(7b9a919411a02f42) at syscall+0x680 mi_syscall_return sys/sys/syscall_mi.h:122 [inline] syscall(7b9a919411a02f42) at syscall+0x680 sys/arch/amd64/amd64/trap.c:605 Xsyscall(6,5,c,0,3,53cb821d0d8) at Xsyscall+0x128 end of kernel end trace frame: 0x53f51eacde0, count: 9 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 witness_warn 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_warn(e26073450125e844,0,ffff800020b93530) at witness_warn+0x700 witness_debugger sys/kern/subr_witness.c:2549 [inline] witness_warn(e26073450125e844,0,ffff800020b93530) at witness_warn+0x700 sys/kern/subr_witness.c:1465 userret(74478483dc5cd352) at userret+0x361 sys/kern/kern_sig.c:1899 syscall(7b9a919411a02f42) at syscall+0x680 mi_syscall_return sys/sys/syscall_mi.h:122 [inline] syscall(7b9a919411a02f42) at syscall+0x680 sys/arch/amd64/amd64/trap.c:605 Xsyscall(6,5,c,0,3,53cb821d0d8) at Xsyscall+0x128 end of kernel end trace frame: 0x53f51eacde0, count: -6 ddb{0}> show registers rdi 0xffffffff819d4fa7 db_enter+0x17 rsi 0x559f __ALIGN_SIZE+0x459f rbp 0xffff800020c51840 rbx 0xffff800020c518e0 rdx 0x55a0 __ALIGN_SIZE+0x45a0 rcx 0xffff800001547000 rax 0xffff800001547000 r8 0xffffffff81aa9b64 kprintf+0x174 r9 0x1 r10 0x7b137e295cc054d7 r11 0x1d9f8cba804d24c5 r12 0x3000000008 r13 0xffff800020c51850 r14 0x100 r15 0x1 rip 0xffffffff819d4fa8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c51830 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor1) pid=370594 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020b92e28,0xffff800020b92028 process=0xffff800020b95708 user=0xffff800020c4c000, vmspace=0xfffffd806e937cb0 estcpu=29, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94183 229179 28880 32767 2 0x10 syz-executor1 94183 460194 28880 32767 2 0x4000010 syz-executor1 *94183 370594 28880 32767 7 0x4000010 syz-executor1 94183 310042 28880 32767 3 0x4000090 ttyin syz-executor1 62224 270378 61337 32767 3 0x10 biowait syz-executor0 61337 367311 97504 0 3 0x82 wait syz-executor0 28880 512253 19595 32767 7 0x10 syz-executor1 19595 319651 97504 0 3 0x82 wait syz-executor1 2215 97230 0 0 3 0x14200 bored sosplice 97504 291722 60483 0 3 0x82 kqread syz-fuzzer 97504 304084 60483 0 2 0x4000482 syz-fuzzer 97504 354789 60483 0 3 0x4000082 thrsleep syz-fuzzer 97504 250830 60483 0 3 0x4000082 thrsleep syz-fuzzer 97504 517296 60483 0 3 0x4000082 thrsleep syz-fuzzer 97504 298017 60483 0 3 0x4000082 thrsleep syz-fuzzer 97504 278068 60483 0 3 0x4000082 thrsleep syz-fuzzer 97504 59162 60483 0 3 0x4000082 thrsleep syz-fuzzer 97504 138766 60483 0 3 0x4000082 thrsleep syz-fuzzer 97504 34535 60483 0 3 0x4000082 thrsleep syz-fuzzer 97504 441182 60483 0 3 0x4000082 thrsleep syz-fuzzer 60483 43980 9754 0 3 0x10008a pause ksh 9754 416447 53347 0 3 0x92 select sshd 49045 62462 1 0 3 0x100083 ttyin getty 53347 359978 1 0 3 0x80 select sshd 38854 95029 25989 73 3 0x100010 ffs_fsync syslogd 25989 51238 1 0 3 0x100082 netio syslogd 30069 69204 1 77 3 0x100090 poll dhclient 5779 257842 1 0 3 0x80 poll dhclient 54692 49774 0 0 3 0x14200 pgzero zerothread 83646 490743 0 0 3 0x14200 aiodoned aiodoned 47073 468057 0 0 3 0x14200 syncer update 17769 505622 0 0 3 0x14200 cleaner cleaner 70150 27219 0 0 3 0x14200 reaper reaper 5305 12950 0 0 3 0x14200 pgdaemon pagedaemon 76428 292884 0 0 3 0x14200 bored crynlk 1860 483202 0 0 3 0x14200 bored crypto 50882 252599 0 0 3 0x40014200 acpi0 acpi0 30186 411761 0 0 3 0x40014200 idle1 9530 440346 0 0 3 0x14200 bored softnet 23175 85311 0 0 3 0x14200 bored systqmp 56401 354868 0 0 3 0x14200 bored systq 2786 390622 0 0 3 0x40014200 bored softclock 67612 401342 0 0 3 0x40014200 idle0 1 304383 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 94183 (syz-executor1) thread 0xffff800020b93530 (370594) exclusive rrwlock inode r = 0 (0xfffffd8067863b48) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_vnops.c:1547 Process 62224 (syz-executor0) thread 0xffff800020b92bd0 (270378) exclusive rrwlock inode r = 0 (0xfffffd80678634e8) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_ihash.c:140 exclusive rrwlock inode r = 0 (0xfffffd8069f422b8) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_vnops.c:1547 Process 38854 (syslogd) thread 0xffff800020be5528 (95029) exclusive rrwlock inode r = 0 (0xfffffd806ebb24d8) 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 10643 0 0 pcb 23 9K 10K 78643K 779 0 0 rtable 97 3K 3K 78643K 775 0 0 ifaddr 36 10K 10K 78643K 154 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 39 0 0 iov 0 0K 24K 78643K 59 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 1712 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 7 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 60 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 7 21K 33K 78643K 834 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 41 38K 70K 78643K 707 0 0 subproc 68 69634K 69634K 78643K 714 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 92 0 0 in_multi 33 2K 2K 78643K 246 0 0 ether_multi 1 0K 0K 78643K 1 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 288 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 86 20K 29K 78643K 3190 0 0 UVM aobj 23 2K 2K 78643K 24 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 9 0 0 NDP 5 0K 0K 78643K 66 0 0 temp 109 2355K 2426K 78643K 5739 0 0 kqueue 0 0K 0K 78643K 3 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 23 0 19 1 0 1 1 0 8 0 inpcbpl 280 318 0 311 1 0 1 1 0 8 0 plimitpl 152 60 0 51 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 212 0 172 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 123 0 119 1 0 1 1 0 8 0 nd6 48 42 0 38 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 983 0 795 12 0 12 12 0 8 0 art_table 32 984 0 795 2 0 2 2 0 8 0 art_node 16 211 0 177 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 8 3 2 1 1 0 8 0 semapl 112 56 0 46 1 0 1 1 0 8 0 shmpl 112 22 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2375 0 974 46 0 46 46 0 8 0 ffsino 272 2375 0 974 94 0 94 94 0 8 0 nchpl 144 3643 0 2073 59 0 59 59 0 8 0 uvmvnodes 72 2741 0 0 50 0 50 50 0 8 0 vnodes 200 2741 0 0 145 0 145 145 0 8 0 namei 1024 10513 0 10512 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 9475 0 9473 12 8 4 6 0 8 3 sigapl 432 944 0 929 3 1 2 3 0 8 0 futexpl 56 6692 0 6692 1 0 1 1 0 8 1 knotepl 112 546 0 519 3 2 1 2 0 8 0 kqueuepl 104 198 0 196 1 0 1 1 0 8 0 pipepl 112 682 0 663 3 2 1 2 0 8 0 fdescpl 488 945 0 929 3 0 3 3 0 8 0 filepl 152 5633 0 5528 6 1 5 5 0 8 0 lockfpl 96 170 0 170 3 2 1 1 0 8 1 lockfspl 24 309 0 309 3 2 1 1 0 8 1 sessionpl 112 36 0 26 1 0 1 1 0 8 0 pgrppl 48 40 0 30 1 0 1 1 0 8 0 ucredpl 96 1465 0 1456 1 0 1 1 0 8 0 zombiepl 144 929 0 929 2 1 1 1 0 8 1 processpl 840 960 0 929 4 0 4 4 0 8 0 procpl 600 2257 0 2213 4 0 4 4 0 8 0 srpgc 64 110 0 110 4 3 1 1 0 8 1 sosppl 128 13 0 13 3 2 1 1 0 8 1 sockpl 384 1097 0 1080 3 0 3 3 0 8 1 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 111 0 0 13 0 13 13 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 166 0 0 9 0 9 9 0 8 0 bufpl 256 6220 0 966 329 0 329 329 0 8 0 anonpl 16 125786 0 119816 58 19 39 41 0 125 11 amapchunkpl 152 6566 0 6471 23 13 10 10 0 158 5 amappl16 192 5220 0 4932 57 36 21 27 0 8 6 amappl15 184 13 0 11 1 0 1 1 0 8 0 amappl14 176 358 0 355 2 1 1 1 0 8 0 amappl13 168 120 0 117 1 0 1 1 0 8 0 amappl12 160 110 0 105 1 0 1 1 0 8 0 amappl11 152 354 0 343 1 0 1 1 0 8 0 amappl10 144 93 0 89 1 0 1 1 0 8 0 amappl9 136 460 0 459 1 0 1 1 0 8 0 amappl8 128 362 0 340 1 0 1 1 0 8 0 amappl7 120 129 0 121 1 0 1 1 0 8 0 amappl6 112 330 0 322 1 0 1 1 0 8 0 amappl5 104 147 0 136 1 0 1 1 0 8 0 amappl4 96 371 0 345 2 1 1 2 0 8 0 amappl3 88 207 0 199 1 0 1 1 0 8 0 amappl2 80 7141 0 7085 2 0 2 2 0 8 0 amappl1 72 31220 0 30770 23 13 10 19 0 8 0 amappl 72 2616 0 2578 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 23 0 1 1 0 1 1 0 8 0 uaddrrnd 24 945 0 929 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 945 0 929 1 0 1 1 0 8 0 vmmpekpl 168 10866 0 10843 2 0 2 2 0 8 0 vmmpepl 168 112155 0 110809 102 30 72 74 0 357 9 vmsppl 360 944 0 929 2 0 2 2 0 8 0 pdppl 4096 1897 0 1858 6 0 6 6 0 8 0 pvpl 32 335339 0 326214 137 28 109 111 0 265 33 pmappl 224 944 0 929 5 3 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 475 0 2 14 0 14 14 0 8 0