panic(ffffffff82438080) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8064b7b300,5800,580,2) at m_copym+0x5b9 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ada540) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806ead1648,9,fffffd8064678900,0,0,ffff800020e41870) at tcp_usrreq+0xa55 sosend(fffffd806ead1648,0,ffff800020e63a88,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e41870,4,ffff800020e63a88,0,ffff800020e63b70) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e41870,ffff800020e63b20,ffff800020e63b70) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e63bf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e63bf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7c40, 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(ffffffff82438080) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8064b7b300,5800,580,2) at m_copym+0x5b9 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ada540) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806ead1648,9,fffffd8064678900,0,0,ffff800020e41870) at tcp_usrreq+0xa55 sosend(fffffd806ead1648,0,ffff800020e63a88,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e41870,4,ffff800020e63a88,0,ffff800020e63b70) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e41870,ffff800020e63b20,ffff800020e63b70) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e63bf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e63bf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7c40, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e63550 rbx 0xffff800020e63600 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff817e6a8f kprintf+0x16f r9 0x1 r10 0x2 r11 0x79a630a2902122a4 r12 0x3000000008 r13 0xffff800020e63560 r14 0x100 r15 0x1 rip 0xffffffff81d39c28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e63540 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (sshd) pid=18665 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e40280,0xffff800020e40020 process=0xffff800020e383f0 user=0xffff800020e5e000, vmspace=0xfffffd806e8e4738 estcpu=0, cpticks=0, pctcpu=0.1 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 53975 482393 63676 0 2 0 syz-executor.1 53975 500160 63676 0 2 0x4000080 syz-executor.1 55481 16294 0 0 3 0x14280 nfsidl nfsio 87366 152003 0 0 3 0x14280 nfsidl nfsio 16258 193160 0 0 3 0x14280 nfsidl nfsio 43297 193190 0 0 3 0x14280 nfsidl nfsio 13144 314775 0 0 3 0x14280 nfsidl nfsio 39989 347304 0 0 3 0x14280 nfsidl nfsio 30600 231152 0 0 3 0x14280 nfsidl nfsio 45679 480230 0 0 3 0x14280 nfsidl nfsio 13351 505471 0 0 3 0x14280 nfsidl nfsio 47181 395023 0 0 3 0x14280 nfsidl nfsio 80116 301392 0 0 3 0x14280 nfsidl nfsio 87639 235738 0 0 3 0x14280 nfsidl nfsio 44712 204836 0 0 3 0x14280 nfsidl nfsio 83880 87615 0 0 3 0x14280 nfsidl nfsio 61061 88707 0 0 3 0x14280 nfsidl nfsio 49922 228346 0 0 3 0x14280 nfsidl nfsio 26484 495690 0 0 3 0x14280 nfsidl nfsio 8335 502273 0 0 3 0x14280 nfsidl nfsio 72326 104013 0 0 3 0x14280 nfsidl nfsio 21307 55735 0 0 3 0x14280 nfsidl nfsio 2471 509559 0 0 3 0x14200 bored sosplice 63676 126944 54725 0 3 0x82 nanosleep syz-executor.1 832 178232 54725 0 2 0x2 syz-executor.0 54725 8598 30351 0 3 0x82 thrsleep syz-fuzzer 54725 493203 30351 0 3 0x4000082 nanosleep syz-fuzzer 54725 287919 30351 0 3 0x4000082 thrsleep syz-fuzzer 54725 316000 30351 0 3 0x4000082 thrsleep syz-fuzzer 54725 471481 30351 0 7 0x4000002 syz-fuzzer 54725 265330 30351 0 3 0x4000082 thrsleep syz-fuzzer 54725 56332 30351 0 3 0x4000082 thrsleep syz-fuzzer 54725 304060 30351 0 3 0x4000082 thrsleep syz-fuzzer 54725 237977 30351 0 2 0x4000082 syz-fuzzer 54725 68724 30351 0 3 0x4000082 thrsleep syz-fuzzer 30351 383532 49911 0 3 0x10008a pause ksh *49911 18665 17575 0 7 0x12 sshd 19671 305094 1 0 3 0x100083 ttyin getty 17575 384946 1 0 3 0x80 select sshd 68290 46189 5484 74 3 0x100092 bpf pflogd 5484 495985 1 0 3 0x80 netio pflogd 34252 474567 12603 73 3 0x100090 kqread syslogd 12603 265163 1 0 3 0x100082 netio syslogd 56050 484268 1 77 3 0x100090 poll dhclient 31773 516993 1 0 3 0x80 poll dhclient 15987 184157 0 0 3 0x14200 bored smr 26289 295114 0 0 3 0x14200 pgzero zerothread 90922 297915 0 0 3 0x14200 aiodoned aiodoned 7851 146831 0 0 3 0x14200 syncer update 73278 54361 0 0 3 0x14200 cleaner cleaner 37262 179707 0 0 3 0x14200 reaper reaper 52417 104197 0 0 3 0x14200 pgdaemon pagedaemon 26204 195279 0 0 3 0x14200 bored crynlk 61485 180716 0 0 3 0x14200 bored crypto 79396 472150 0 0 3 0x40014200 acpi0 acpi0 71840 417834 0 0 3 0x40014200 idle1 71710 67190 0 0 2 0x14200 softnet 77287 80350 0 0 3 0x14200 bored systqmp 58123 495966 0 0 3 0x14200 bored systq 50062 228185 0 0 3 0x40014200 bored softclock 84277 79163 0 0 3 0x40014200 idle0 1 490517 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 49911 (sshd) thread 0xffff800020e41870 (18665) exclusive rwlock netlock r = 0 (0xffffffff826f74b8) #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:543 #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 9532 6418K 7199K 78643K 12483 0 pcb 13 8K 8K 78643K 78 0 rtable 69 3K 7K 78643K 817 0 ifaddr 88 17K 17K 78643K 374 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 55 0 ioctlops 0 0K 4K 78643K 1550 0 iov 0 0K 16K 78643K 64 0 mount 1 1K 1K 78643K 1 0 vnodes 1226 77K 77K 78643K 1712 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 61 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 745 0 sigio 0 0K 0K 78643K 18 0 proc 61 63K 95K 78643K 514 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 24 0 in_multi 62 3K 3K 78643K 238 0 ether_multi 1 0K 0K 78643K 8 0 mrt 0 0K 0K 78643K 11 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 235 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 139 72K 72K 78643K 3342 0 UVM aobj 18 2K 2K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 49 0 NDP 16 0K 0K 78643K 39 0 temp 118 3866K 3934K 78643K 11560 0 kqueue 3 4K 13K 78643K 25 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 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 43 1 0 1 1 0 8 0 rtentry 112 269 0 247 2 0 2 2 0 8 0 unpcb 120 671 0 661 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 21 0 21 1 1 0 1 0 8 0 tcpcb 544 133 0 129 1 0 1 1 0 8 0 inpcb 296 1534 0 1527 3 1 2 2 0 8 1 rttmr 72 5 0 5 3 2 1 1 0 8 1 nd6 48 39 0 37 1 0 1 1 0 8 0 pfstscr 40 3 0 2 1 0 1 1 0 8 0 pffrag 232 3 0 2 1 0 1 1 0 482 0 pffrnode 88 3 0 2 1 0 1 1 0 8 0 pffrent 40 6 0 5 1 0 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 27 0 25 2 1 1 1 0 8 0 pfstitem 24 36 0 13 1 0 1 1 0 8 0 pfstkey 112 36 0 13 1 0 1 1 0 8 0 pfstate 328 35 0 12 3 0 3 3 0 8 0 pfrule 1360 26 0 19 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 481 0 364 13 4 9 13 0 8 0 art_table 32 482 0 364 2 0 2 2 0 8 0 art_node 16 114 0 96 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 59 0 49 1 0 1 1 0 8 0 shmpl 112 18 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2289 0 885 89 0 89 89 0 8 0 ffsino 272 2289 0 885 95 0 95 95 0 8 0 nchpl 144 3788 0 2173 60 0 60 60 0 8 0 uvmvnodes 72 2774 0 0 51 0 51 51 0 8 0 vnodes 208 2774 0 0 146 0 146 146 0 8 0 namei 1024 9806 0 9806 1 0 1 1 0 8 1 percpumem 16 38 0 6 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 2 2 1 1 1 0 8 0 pfiaddrpl 120 9 0 7 2 1 1 1 0 8 0 scxspl 192 10111 0 10111 9 7 2 7 0 8 2 plimitpl 152 51 0 43 1 0 1 1 0 8 0 sigapl 424 981 0 929 6 0 6 6 0 8 0 futexpl 56 11731 0 11731 1 0 1 1 0 8 1 knotepl 112 87 0 68 1 0 1 1 0 8 0 kqueuepl 144 63 0 60 1 0 1 1 0 8 0 pipelkpl 48 124 0 114 1 0 1 1 0 8 0 pipepl 120 248 0 229 1 0 1 1 0 8 0 fdescpl 496 945 0 929 3 0 3 3 0 8 0 filepl 152 5415 0 5313 7 2 5 6 0 8 1 lockfpl 104 87 0 86 1 0 1 1 0 8 0 lockfspl 48 34 0 33 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 280 0 271 1 0 1 1 0 8 0 zombiepl 144 929 0 929 1 0 1 1 0 8 1 processpl 984 981 0 929 7 0 7 7 0 8 0 procpl 624 2559 0 2497 6 0 6 6 0 8 1 sosppl 128 13 0 13 3 2 1 1 0 8 1 sockpl 400 2250 0 2231 8 4 4 6 0 8 2 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 152 0 0 18 0 18 18 0 8 0 mtagpl 96 37 0 0 1 0 1 1 0 8 0 mbufpl 256 301 0 0 18 0 18 18 0 8 0 mbufpl: pool(0xffffffff828b7610:mbufpl): free list modified: page 0xfffffd806b642000; item ordinal 1; addr 0xfffffd806b642f00 (p 0xfffffd807845d000); offset 0x0=0x0 pool(mbufpl): free list modified: page 0xfffffd806b642000; item ordinal 1; addr 0xfffffd806b642f00 (p 0xfffffd807845d000); offset 0x0=0x0 mbufpl: pool(0xffffffff828b7610:mbufpl): page inconsistency: page 0xfffffd806b642000; item ordinal 2; addr 0xd55e8152b8a5f0bc bufpl 280 4426 0 135 307 0 307 307 0 8 0 anonpl 16 87283 0 70683 77 9 68 75 0 124 0 amapchunkpl 152 5484 0 5339 20 0 20 20 0 158 11 amappl16 192 4202 0 3306 52 6 46 51 0 8 1 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 346 0 340 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 10 0 7 1 0 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 404 0 399 1 0 1 1 0 8 0 amappl9 136 397 0 394 1 0 1 1 0 8 0 amappl8 128 381 0 338 2 0 2 2 0 8 0 amappl7 120 508 0 496 1 0 1 1 0 8 0 amappl6 112 32 0 24 1 0 1 1 0 8 0 amappl5 104 844 0 828 1 0 1 1 0 8 0 amappl4 96 489 0 459 1 0 1 1 0 8 0 amappl3 88 440 0 434 1 0 1 1 0 8 0 amappl2 80 6618 0 6550 2 0 2 2 0 8 0 amappl1 72 29265 0 28818 24 15 9 18 0 8 0 amappl 80 2802 0 2755 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 19 0 2 1 0 1 1 0 8 0 uaddrrnd 24 953 0 931 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 953 0 931 1 0 1 1 0 8 0 vmmpekpl 168 11053 0 11011 3 0 3 3 0 8 0 vmmpepl 168 119048 0 116974 117 20 97 112 0 357 1 vmsppl 368 952 0 931 3 0 3 3 0 8 1 pdppl 4096 1913 0 1868 7 0 7 7 0 8 1 pvpl 32 279784 0 259922 180 9 171 180 0 265 10 pmappl 232 952 0 931 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 272 0 11 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(ffffffff82438080) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8064b7b300,5800,580,2) at m_copym+0x5b9 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ada540) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806ead1648,9,fffffd8064678900,0,0,ffff800020e41870) at tcp_usrreq+0xa55 sosend(fffffd806ead1648,0,ffff800020e63a88,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e41870,4,ffff800020e63a88,0,ffff800020e63b70) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e41870,ffff800020e63b20,ffff800020e63b70) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e63bf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e63bf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7c40, 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: 0xc0004b78a8, 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: 0xc0004b78a8, count: -5