panic(ffffffff824285af) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806c9f7a00,7c,b4,2) at m_copym+0x5b9 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ad6ee0) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eaecaf8,9,fffffd8064d00300,0,0,ffff800020e41d50) at tcp_usrreq+0xa55 sosend(fffffd806eaecaf8,0,ffff800020e62fd8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020e41d50,4,ffff800020e62fd8,0,ffff800020e630c0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e41d50,ffff800020e63070,ffff800020e630c0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e63140) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e63140) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff06c0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic m_copym0: m == NULL and not COPYALL ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824285af) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806c9f7a00,7c,b4,2) at m_copym+0x5b9 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ad6ee0) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eaecaf8,9,fffffd8064d00300,0,0,ffff800020e41d50) at tcp_usrreq+0xa55 sosend(fffffd806eaecaf8,0,ffff800020e62fd8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020e41d50,4,ffff800020e62fd8,0,ffff800020e630c0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e41d50,ffff800020e63070,ffff800020e630c0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e63140) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e63140) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff06c0, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e62aa0 rbx 0xffff800020e62b50 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff821ebe1f kprintf+0x16f r9 0x1 r10 0x2 r11 0xaf49d326e4a5f0eb r12 0x3000000008 r13 0xffff800020e62ab0 r14 0x100 r15 0x1 rip 0xffffffff811ce968 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e62a90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (sshd) pid=310128 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e40010,0xffff800020e40ec0 process=0xffff800020e39350 user=0xffff800020e5e000, vmspace=0xfffffd806e8ed2e8 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 66546 493810 0 0 3 0x14280 nfsidl nfsio 75113 8049 0 0 3 0x14280 nfsidl nfsio 95726 184676 0 0 3 0x14280 nfsidl nfsio 55538 522075 0 0 3 0x14280 nfsidl nfsio 55876 10242 0 0 3 0x14280 nfsidl nfsio 33350 238474 0 0 3 0x14280 nfsidl nfsio 88886 10216 0 0 3 0x14280 nfsidl nfsio 57668 285240 0 0 3 0x14280 nfsidl nfsio 45425 442372 0 0 3 0x14280 nfsidl nfsio 89187 57776 0 0 3 0x14280 nfsidl nfsio 48699 353608 0 0 3 0x14280 nfsidl nfsio 23189 15627 0 0 3 0x14280 nfsidl nfsio 82732 236874 0 0 3 0x14280 nfsidl nfsio 44567 368477 0 0 3 0x14280 nfsidl nfsio 79736 187090 0 0 3 0x14280 nfsidl nfsio 55063 310820 0 0 3 0x14280 nfsidl nfsio 84455 368891 0 0 3 0x14280 nfsidl nfsio 84610 483901 0 0 3 0x14280 nfsidl nfsio 31231 466443 0 0 3 0x14280 nfsidl nfsio 57335 185072 0 0 3 0x14280 nfsidl nfsio 57331 385825 72987 0 7 0x2 syz-executor.0 36146 483682 0 0 3 0x14200 bored sosplice 34252 107362 72987 0 3 0x82 piperd syz-executor.1 72987 176808 89304 0 3 0x82 thrsleep syz-fuzzer 72987 489025 89304 0 3 0x4000082 nanosleep syz-fuzzer 72987 301367 89304 0 3 0x4000082 thrsleep syz-fuzzer 72987 471915 89304 0 3 0x4000082 thrsleep syz-fuzzer 72987 81357 89304 0 2 0x4000002 syz-fuzzer 72987 55931 89304 0 3 0x4000082 thrsleep syz-fuzzer 72987 453762 89304 0 3 0x4000082 kqread syz-fuzzer 72987 502219 89304 0 3 0x4000082 thrsleep syz-fuzzer 72987 443012 89304 0 3 0x4000082 thrsleep syz-fuzzer 72987 219560 89304 0 3 0x4000082 thrsleep syz-fuzzer 89304 180394 8179 0 3 0x10008a pause ksh * 8179 310128 33190 0 7 0x12 sshd 4797 499233 1 0 3 0x100083 ttyin getty 33190 415352 1 0 3 0x80 select sshd 49970 287045 53322 74 3 0x100092 bpf pflogd 53322 433834 1 0 3 0x80 netio pflogd 55847 36600 32620 73 3 0x100090 kqread syslogd 32620 241994 1 0 3 0x100082 netio syslogd 52705 499228 1 77 3 0x100090 poll dhclient 26433 48195 1 0 3 0x80 poll dhclient 91595 196540 0 0 3 0x14200 bored smr 46200 482599 0 0 3 0x14200 pgzero zerothread 88897 292815 0 0 3 0x14200 aiodoned aiodoned 82730 65263 0 0 3 0x14200 syncer update 20297 68640 0 0 3 0x14200 cleaner cleaner 1378 311956 0 0 3 0x14200 reaper reaper 98625 424486 0 0 3 0x14200 pgdaemon pagedaemon 22762 411916 0 0 3 0x14200 bored crynlk 48606 55377 0 0 3 0x14200 bored crypto 15976 73371 0 0 3 0x40014200 acpi0 acpi0 79817 284897 0 0 3 0x40014200 idle1 26931 33355 0 0 3 0x14200 bored softnet 84226 416860 0 0 3 0x14200 bored systqmp 74555 424754 0 0 3 0x14200 bored systq 6775 256547 0 0 3 0x40014200 bored softclock 49425 355620 0 0 3 0x40014200 idle0 1 231816 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex filepl r = 0 (0xffffffff828a3e30) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_get+0xbf sys/kern/subr_pool.c:578 #4 falloc+0x102 fnew sys/kern/kern_descrip.c:1051 [inline] #4 falloc+0x102 sys/kern/kern_descrip.c:1025 #5 doopenat+0x133 sys/kern/vfs_syscalls.c:1112 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 Process 57331 (syz-executor.0) thread 0xffff800020e23398 (385825) exclusive rwlock fdlock r = 0 (0xfffffd8070bce258) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 doopenat+0x123 sys/kern/vfs_syscalls.c:1111 #2 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #2 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #3 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828eaf80) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:570 #2 Xsyscall+0x128 Process 8179 (sshd) thread 0xffff800020e41d50 (310128) exclusive rwlock netlock r = 0 (0xffffffff8275d8b8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 sys/kern/uipc_socket.c:537 #3 dofilewritev+0x1b6 sys/kern/sys_generic.c:365 #4 sys_write+0x83 sys/kern/sys_generic.c:285 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9538 6421K 6983K 78643K 11531 0 pcb 13 8K 8K 78643K 116 0 rtable 119 7K 9K 78643K 508 0 ifaddr 86 16K 18K 78643K 184 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 65 0 ioctlops 0 0K 4K 78643K 1555 0 iov 0 0K 16K 78643K 78 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 78K 78643K 1620 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 1K 1K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 9K 25K 78643K 535 0 sigio 0 0K 0K 78643K 9 0 proc 61 63K 83K 78643K 523 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 50 0 in_multi 58 3K 3K 78643K 139 0 ether_multi 1 0K 0K 78643K 18 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 73 334K 334K 78643K 73 0 exec 0 0K 1K 78643K 265 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 126 39K 40K 78643K 2702 0 UVM aobj 11 2K 2K 78643K 19 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 78 0 NDP 14 0K 0K 78643K 33 0 temp 145 3868K 3932K 78643K 11683 0 kqueue 3 4K 10K 78643K 20 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 13 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 56 0 54 1 0 1 1 0 8 0 rtentry 112 69 0 26 2 0 2 2 0 8 0 unpcb 120 311 0 301 1 0 1 1 0 8 0 syncache 264 17 0 17 6 6 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 52 0 52 2 2 0 1 0 8 0 tcpcb 544 362 0 358 1 0 1 1 0 8 0 inpcb 280 918 0 905 9 7 2 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 11 0 7 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pffrag 232 6 0 5 4 3 1 1 0 482 0 pffrnode 88 6 0 5 4 3 1 1 0 8 0 pffrent 40 99 0 98 4 3 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 60 0 55 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfstitem 24 16 0 14 1 0 1 1 0 8 0 pfstkey 112 16 0 14 1 0 1 1 0 8 0 pfstate 328 16 0 14 2 1 1 2 0 8 0 pfrule 1360 43 0 30 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 278 0 92 13 0 13 13 0 8 0 art_table 32 279 0 92 2 0 2 2 0 8 0 art_node 16 68 0 28 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 8 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 17 0 8 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2218 0 817 90 1 89 89 0 8 0 ffsino 272 2218 0 817 94 0 94 94 0 8 0 nchpl 144 3205 0 1610 60 0 60 60 0 8 0 uvmvnodes 72 2484 0 0 46 0 46 46 0 8 0 vnodes 208 2484 0 0 131 0 131 131 0 8 0 namei 1024 10787 0 10787 2 1 1 1 0 8 1 percpumem 16 43 0 11 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 17 0 14 1 0 1 1 0 8 0 scxspl 192 9332 0 9332 10 9 1 7 0 8 1 plimitpl 152 44 0 36 1 0 1 1 0 8 0 sigapl 424 768 0 717 6 0 6 6 0 8 0 futexpl 56 9959 0 9959 2 1 1 1 0 8 1 knotepl 112 106 0 87 1 0 1 1 0 8 0 kqueuepl 144 74 0 70 1 0 1 1 0 8 0 pipelkpl 48 166 0 156 1 0 1 1 0 8 0 pipepl 120 332 0 313 1 0 1 1 0 8 0 fdescpl 496 732 0 717 3 0 3 3 0 8 0 filepl 152 6115 0 6014 5 0 5 5 0 8 1 lockfpl 104 136 0 135 1 0 1 1 0 8 0 lockfspl 48 34 0 33 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 2019 0 2010 1 0 1 1 0 8 0 zombiepl 144 717 0 717 1 0 1 1 0 8 1 processpl 984 768 0 717 7 0 7 7 0 8 0 procpl 624 1904 0 1844 9 3 6 6 0 8 1 sosppl 128 19 0 19 8 7 1 1 0 8 1 sockpl 400 1287 0 1268 5 2 3 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 13 0 0 2 0 2 2 0 8 0 mcl2k 2048 192 0 0 23 0 23 23 0 8 0 mtagpl 80 35 0 0 1 0 1 1 0 8 0 mbufpl 256 545 0 0 29 0 29 29 0 8 0 bufpl 280 4666 0 134 324 0 324 324 0 8 0 anonpl 16 85583 0 69141 101 31 70 83 0 124 3 amapchunkpl 152 4037 0 3878 9 1 8 9 0 158 0 amappl16 192 3464 0 2590 72 27 45 56 0 8 1 amappl15 184 107 0 106 1 0 1 1 0 8 0 amappl14 176 83 0 79 1 0 1 1 0 8 0 amappl13 168 38 0 34 1 0 1 1 0 8 0 amappl12 160 71 0 68 1 0 1 1 0 8 0 amappl11 152 163 0 149 1 0 1 1 0 8 0 amappl10 144 336 0 331 1 0 1 1 0 8 0 amappl9 136 387 0 385 1 0 1 1 0 8 0 amappl8 128 365 0 333 2 0 2 2 0 8 0 amappl7 120 127 0 114 1 0 1 1 0 8 0 amappl6 112 34 0 24 1 0 1 1 0 8 0 amappl5 104 628 0 612 1 0 1 1 0 8 0 amappl4 96 503 0 475 1 0 1 1 0 8 0 amappl3 88 131 0 126 1 0 1 1 0 8 0 amappl2 80 5028 0 4965 2 0 2 2 0 8 0 amappl1 72 25858 0 25430 23 13 10 18 0 8 0 amappl 80 2142 0 2096 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 18 0 8 1 0 1 1 0 8 0 uaddrrnd 24 738 0 721 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 738 0 721 1 0 1 1 0 8 0 vmmpekpl 168 8989 0 8951 2 0 2 2 0 8 0 vmmpepl 168 95837 0 93911 173 83 90 121 0 357 1 vmsppl 368 737 0 721 2 0 2 2 0 8 0 pdppl 4096 1483 0 1444 9 3 6 6 0 8 0 pvpl 32 260947 0 241339 236 53 183 196 0 265 24 pmappl 232 737 0 721 3 1 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 291 0 13 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824285af) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806c9f7a00,7c,b4,2) at m_copym+0x5b9 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ad6ee0) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eaecaf8,9,fffffd8064d00300,0,0,ffff800020e41d50) at tcp_usrreq+0xa55 sosend(fffffd806eaecaf8,0,ffff800020e62fd8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020e41d50,4,ffff800020e62fd8,0,ffff800020e630c0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e41d50,ffff800020e63070,ffff800020e630c0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e63140) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e63140) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff06c0, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x68 savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7ffffc5eb0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x68 savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7ffffc5eb0, count: -5