panic(ffffffff821bb91b) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80666e8e00,1bc,6c,2) at m_copym+0x583 sys/kern/uipc_mbuf.c:695 tcp_output(ffff800000a04760) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806e95f908,9,fffffd80666e8700,0,0,ffff800020ad9b38) at tcp_usrreq+0xa55 sosend(fffffd806e95f908,0,ffff800020b03d08,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ad9b38,4,ffff800020b03d08,0,ffff800020b03df0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ad9b38,ffff800020b03da0,ffff800020b03df0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020b03e70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b03e70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc2c0, count: 5 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}> set $maxwidth = 0 ddb{1}> show panic m_copym0: short mbuf chain ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821bb91b) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80666e8e00,1bc,6c,2) at m_copym+0x583 sys/kern/uipc_mbuf.c:695 tcp_output(ffff800000a04760) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806e95f908,9,fffffd80666e8700,0,0,ffff800020ad9b38) at tcp_usrreq+0xa55 sosend(fffffd806e95f908,0,ffff800020b03d08,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ad9b38,4,ffff800020b03d08,0,ffff800020b03df0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ad9b38,ffff800020b03da0,ffff800020b03df0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020b03e70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b03e70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc2c0, count: -10 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b037d0 rbx 0xffff800020b03880 rdx 0xffff800020ad9b38 rcx 0 rax 0 r8 0xffffffff81bb9caf kprintf+0x16f r9 0x1 r10 0x25 r11 0xfe5cb426c090cf2a r12 0x3000000008 r13 0xffff800020b037e0 r14 0x100 r15 0x1 rip 0xffffffff81e5f0e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b037c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (sshd) pid=77962 stat=onproc flags process=12 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ad8288,0xffff800020ad8c78 process=0xffff800020aa38c8 user=0xffff800020afe000, vmspace=0xfffffd806e7b3008 estcpu=0, cpticks=1, pctcpu=0.1 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 83147 91223 0 0 3 0x14200 bored sosplice 30110 400218 81585 0 2 0x2 syz-executor.1 24310 86398 81585 0 7 0x2 syz-executor.0 81585 377223 69954 0 2 0x2 syz-fuzzer 81585 204735 69954 0 3 0x4000082 nanosleep syz-fuzzer 81585 188288 69954 0 3 0x4000082 thrsleep syz-fuzzer 81585 76151 69954 0 3 0x4000082 thrsleep syz-fuzzer 81585 40458 69954 0 3 0x4000082 thrsleep syz-fuzzer 81585 484384 69954 0 3 0x4000082 thrsleep syz-fuzzer 81585 447054 69954 0 3 0x4000082 thrsleep syz-fuzzer 81585 383385 69954 0 3 0x4000082 thrsleep syz-fuzzer 81585 69179 69954 0 3 0x4000082 thrsleep syz-fuzzer 81585 43585 69954 0 3 0x4000082 kqread syz-fuzzer 69954 433310 1074 0 3 0x10008a pause ksh * 1074 77962 58752 0 7 0x12 sshd 51058 497288 1 0 3 0x100083 ttyopn getty 58752 283453 1 0 3 0x80 select sshd 78954 82452 3713 74 3 0x100092 bpf pflogd 3713 32695 1 0 3 0x80 netio pflogd 99385 259973 80137 73 3 0x100090 kqread syslogd 80137 438502 1 0 3 0x100082 netio syslogd 88040 366939 0 0 3 0x14200 pgzero zerothread 67866 154146 0 0 3 0x14200 aiodoned aiodoned 3573 176111 0 0 3 0x14200 syncer update 65628 174821 0 0 3 0x14200 cleaner cleaner 65181 420535 0 0 3 0x14200 reaper reaper 6667 292128 0 0 3 0x14200 pgdaemon pagedaemon 77061 523322 0 0 3 0x14200 bored crynlk 30219 417038 0 0 3 0x14200 bored crypto 48271 98423 0 0 3 0x40014200 acpi0 acpi0 85214 472023 0 0 3 0x40014200 idle1 90049 34594 0 0 3 0x14200 bored softnet 26578 160120 0 0 3 0x14200 bored systqmp 64043 389910 0 0 3 0x14200 bored systq 30581 96928 0 0 3 0x40014200 bored softclock 90184 495331 0 0 3 0x40014200 idle0 88994 67580 0 0 3 0x14200 bored smr 1 230545 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex /syzkaller/managers/multicore/kernel/sys/kern/kern_malloc.c:104 r = 0 (0xffffffff824628d0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 malloc+0x23b sys/kern/kern_malloc.c:209 #4 ufs_readdir+0x148 sys/ufs/ufs/ufs_vnops.c:1458 #5 VOP_READDIR+0xc6 sys/kern/vfs_vops.c:520 #6 sys_getdents+0x220 sys/kern/vfs_syscalls.c:3044 #7 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #7 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #8 Xsyscall+0x128 Process 24310 (syz-executor.0) thread 0xffff800020ac8508 (86398) exclusive rrwlock inode r = 0 (0xfffffd8062d7b0a0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 sys_getdents+0x1ad sys/kern/vfs_syscalls.c:3029 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #7 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8261bd50) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 Process 1074 (sshd) thread 0xffff800020ad9b38 (77962) exclusive rwlock netlock r = 0 (0xffffffff82508618) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 sys/kern/uipc_socket.c:512 #3 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_write+0x83 sys/kern/sys_generic.c:284 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9516 6611K 7331K 78643K 11146 0 pcb 13 10K 12K 78643K 43 0 rtable 112 4K 4K 78643K 254 0 ifaddr 75 16K 16K 78643K 129 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 1479 0 iov 0 0K 16K 78643K 41 0 mount 1 1K 1K 78643K 1 0 vnodes 1241 78K 78K 78643K 1417 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 50 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 4 9K 25K 78643K 341 0 sigio 0 0K 0K 78643K 27 0 proc 56 51K 83K 78643K 462 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 12 0 in_multi 73 3K 3K 78643K 83 0 ether_multi 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 210 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 104 21K 30K 78643K 2042 0 UVM aobj 32 2K 2K 78643K 36 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 16 0 NDP 10 0K 0K 78643K 22 0 temp 133 3023K 3090K 78643K 11332 0 kqueue 0 0K 0K 78643K 4 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 45 0 45 1 0 1 1 0 8 1 rtentry 112 56 0 10 2 0 2 2 0 8 0 unpcb 120 251 0 243 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 42 0 42 1 1 0 1 0 8 0 tcpcb 544 739 0 735 14 8 6 13 0 8 5 inpcb 280 947 0 943 9 3 6 9 0 8 5 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 8 0 8 3 2 1 1 0 8 1 pffrag 232 8 0 8 2 1 1 1 0 482 1 pffrnode 88 8 0 8 2 1 1 1 0 8 1 pffrent 40 188 0 188 2 1 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 37 0 6 1 0 1 1 0 8 0 pfstkey 112 37 0 6 1 0 1 1 0 8 0 pfstate 328 37 0 6 3 0 3 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 236 0 11 15 0 15 15 0 8 0 art_table 32 238 0 11 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 21 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 48 0 38 1 0 1 1 0 8 0 shmpl 112 34 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1861 0 455 46 0 46 46 0 8 0 ffsino 272 1861 0 455 95 0 95 95 0 8 0 nchpl 144 2514 0 896 61 0 61 61 0 8 0 uvmvnodes 72 2045 0 0 38 0 38 38 0 8 0 vnodes 208 2045 0 0 108 0 108 108 0 8 0 namei 1024 6742 0 6742 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scxspl 192 7513 0 7513 9 7 2 7 0 8 2 plimitpl 152 33 0 26 1 0 1 1 0 8 0 sigapl 432 540 0 528 3 1 2 3 0 8 0 futexpl 56 5896 0 5896 1 0 1 1 0 8 1 knotepl 112 86 0 67 1 0 1 1 0 8 0 kqueuepl 104 201 0 199 4 3 1 4 0 8 0 pipepl 112 246 0 227 1 0 1 1 0 8 0 fdescpl 488 541 0 528 3 0 3 3 0 8 0 filepl 152 3638 0 3548 14 5 9 13 0 8 5 lockfpl 104 61 0 61 1 0 1 1 0 8 1 lockfspl 48 26 0 26 1 0 1 1 0 8 1 sessionpl 112 18 0 9 1 0 1 1 0 8 0 pgrppl 48 20 0 11 1 0 1 1 0 8 0 ucredpl 96 313 0 305 1 0 1 1 0 8 0 zombiepl 144 528 0 528 1 0 1 1 0 8 1 processpl 904 557 0 528 4 0 4 4 0 8 0 procpl 632 1263 0 1225 6 1 5 5 0 8 1 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 384 1243 0 1231 14 7 7 13 0 8 5 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 160 0 0 19 0 19 19 0 8 0 mtagpl 80 29 0 0 1 0 1 1 0 8 0 mbufpl 256 295 0 0 18 0 18 18 0 8 0 bufpl 280 7109 0 1341 412 0 412 412 0 8 0 anonpl 16 66160 0 49123 84 7 77 77 0 125 7 amapchunkpl 152 2827 0 2701 11 0 11 11 0 158 3 amappl16 192 2574 0 1638 53 4 49 52 0 8 2 amappl15 184 58 0 55 1 0 1 1 0 8 0 amappl14 176 32 0 29 1 0 1 1 0 8 0 amappl13 168 160 0 159 1 0 1 1 0 8 0 amappl12 160 154 0 151 2 1 1 1 0 8 0 amappl11 152 54 0 46 1 0 1 1 0 8 0 amappl10 144 13 0 10 1 0 1 1 0 8 0 amappl9 136 612 0 608 1 0 1 1 0 8 0 amappl8 128 127 0 101 1 0 1 1 0 8 0 amappl7 120 102 0 91 1 0 1 1 0 8 0 amappl6 112 55 0 49 1 0 1 1 0 8 0 amappl5 104 279 0 266 1 0 1 1 0 8 0 amappl4 96 805 0 777 1 0 1 1 0 8 0 amappl3 88 266 0 258 1 0 1 1 0 8 0 amappl2 80 3445 0 3385 3 1 2 3 0 8 0 amappl1 72 21588 0 21186 26 16 10 20 0 8 0 amappl 80 1516 0 1478 2 0 2 2 0 84 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 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 35 0 4 1 0 1 1 0 8 0 uaddrrnd 24 543 0 528 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 543 0 528 1 0 1 1 0 8 0 vmmpekpl 168 7795 0 7763 2 0 2 2 0 8 0 vmmpepl 168 73096 0 71138 120 23 97 113 0 357 1 vmsppl 368 542 0 528 2 0 2 2 0 8 0 pdppl 4096 1093 0 1058 6 0 6 6 0 8 0 pvpl 32 206192 0 186665 189 9 180 182 0 265 19 pmappl 232 542 0 528 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 187 0 11 6 0 6 6 0 8 0