panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *215193 61701 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240176a) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806bc21800,12c,1f4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0760) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da66648,9,fffffd806bc21100,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da66648,0,ffff80001d6c9ff8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d7174f0,4,ffff80001d6c9ff8,0,ffff80001d6ca0e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d6ca090,ffff80001d6ca0e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca160) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8bb0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic m_copym0: m == NULL and not COPYALL ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240176a) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806bc21800,12c,1f4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0760) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da66648,9,fffffd806bc21100,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da66648,0,ffff80001d6c9ff8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d7174f0,4,ffff80001d6c9ff8,0,ffff80001d6ca0e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d6ca090,ffff80001d6ca0e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca160) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8bb0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6c9ac0 rbx 0xffff80001d6c9b70 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81c7258f kprintf+0x15f r9 0x1 r10 0x2 r11 0xa257f1641882e4b8 r12 0x3000000008 r13 0xffff80001d6c9ad0 r14 0x100 r15 0x1 rip 0xffffffff81726828 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6c9ab0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=215193 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d717c40,0xffff80001d717770 process=0xffff8000ffff8ae0 user=0xffff80001d6c5000, vmspace=0xfffffd806bc09770 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 84467 159636 60810 0 2 0 syz-executor.0 84467 52985 60810 0 2 0x4000000 syz-executor.0 93658 68437 0 0 3 0x14200 bored sosplice 60810 523402 9393 0 3 0x82 nanosleep syz-executor.0 72857 188665 9393 0 2 0x2 syz-executor.1 9393 474957 58657 0 3 0x82 thrsleep syz-fuzzer 9393 153320 58657 0 3 0x4000082 nanosleep syz-fuzzer 9393 150321 58657 0 3 0x4000082 thrsleep syz-fuzzer 9393 212597 58657 0 3 0x4000082 thrsleep syz-fuzzer 9393 138279 58657 0 2 0x4000002 syz-fuzzer 9393 154683 58657 0 3 0x4000082 thrsleep syz-fuzzer 9393 47939 58657 0 3 0x4000082 thrsleep syz-fuzzer 58657 78580 61701 0 3 0x10008a pause ksh *61701 215193 32854 0 7 0x12 sshd 28935 334642 1 0 3 0x100083 ttyin getty 32854 29986 1 0 3 0x80 select sshd 5929 361756 95800 73 3 0x100090 kqread syslogd 95800 224004 1 0 3 0x100082 netio syslogd 2762 368349 1 77 3 0x100090 poll dhclient 68110 254878 1 0 3 0x80 poll dhclient 34504 187747 0 0 3 0x14200 bored smr 71607 463038 0 0 2 0x14200 zerothread 5226 2806 0 0 3 0x14200 aiodoned aiodoned 19192 341535 0 0 3 0x14200 syncer update 50755 299596 0 0 3 0x14200 cleaner cleaner 55094 69719 0 0 3 0x14200 reaper reaper 67012 485573 0 0 3 0x14200 pgdaemon pagedaemon 13998 122945 0 0 3 0x14200 bored crynlk 28552 443888 0 0 3 0x14200 bored crypto 48742 122802 0 0 3 0x40014200 acpi0 acpi0 26439 302115 0 0 3 0x14200 bored softnet 66346 481390 0 0 3 0x14200 bored systqmp 71127 30874 0 0 3 0x14200 bored systq 87979 411654 0 0 3 0x40014200 bored softclock 8169 362468 0 0 3 0x40014200 idle0 1 462881 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9465 6520K 6520K 78643K 10601 0 pcb 13 8K 8K 78643K 29 0 rtable 108 3K 4K 78643K 196 0 ifaddr 39 10K 10K 78643K 45 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 2K 78643K 17 0 iov 0 0K 12K 78643K 3 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1237 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 0K 0K 78643K 2 0 sem 4 0K 0K 78643K 4 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 83 0 proc 47 38K 54K 78643K 365 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 18 0 in_multi 33 2K 2K 78643K 33 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 185 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 111 22K 42K 78643K 1020 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 4 0 NDP 5 0K 0K 78643K 10 0 temp 62 3839K 3903K 78643K 2232 0 kqueue 3 4K 6K 78643K 4 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 rtpcb 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 59 0 51 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 387 0 387 1 0 1 1 0 8 1 tcpcb 544 46 0 42 1 0 1 1 0 8 0 inpcb 296 96 0 89 2 0 2 2 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1478 0 79 88 0 88 88 0 8 0 ffsino 240 1478 0 79 83 0 83 83 0 8 0 nchpl 144 1771 0 169 60 0 60 60 0 8 0 uvmvnodes 72 1535 0 0 28 0 28 28 0 8 0 vnodes 208 1535 0 0 81 0 81 81 0 8 0 namei 1024 4390 0 4390 1 0 1 1 0 8 1 vmpool 528 1 0 1 1 0 1 1 0 8 1 scxspl 192 5189 0 5189 1 0 1 1 0 8 1 plimitpl 152 14 0 7 1 0 1 1 0 8 0 sigapl 424 270 0 241 4 0 4 4 0 8 0 futexpl 56 819 0 819 1 0 1 1 0 8 1 knotepl 112 62 0 43 1 0 1 1 0 8 0 kqueuepl 144 8 0 6 1 0 1 1 0 8 0 pipelkpl 16 72 0 62 1 0 1 1 0 8 0 pipepl 120 144 0 125 1 0 1 1 0 8 0 fdescpl 432 255 0 241 2 0 2 2 0 8 0 filepl 120 1261 0 1166 4 0 4 4 0 8 1 lockfpl 104 7 0 6 1 0 1 1 0 8 0 lockfspl 48 4 0 3 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 74 0 67 1 0 1 1 0 8 0 zombiepl 144 241 0 241 1 0 1 1 0 8 1 processpl 920 270 0 241 4 0 4 4 0 8 0 procpl 624 333 0 297 4 0 4 4 0 8 1 sockpl 400 174 0 157 3 0 3 3 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 3 0 3 1 0 1 1 0 8 1 mcl4k 4096 10 0 10 2 1 1 1 0 8 1 mcl2k 2048 72855 0 72799 21 6 15 18 0 8 7 mtagpl 96 2 0 2 1 1 0 1 0 8 0 mbufpl 256 115933 0 115859 14 3 11 11 0 8 1 bufpl 280 3394 0 126 234 0 234 234 0 8 0 anonpl 16 41219 0 24086 72 2 70 70 0 107 0 amapchunkpl 152 1517 0 1389 19 0 19 19 0 158 13 amappl16 192 1234 0 293 48 0 48 48 0 8 0 amappl15 184 2 0 0 1 0 1 1 0 8 0 amappl14 176 50 0 43 1 0 1 1 0 8 0 amappl13 168 34 0 30 1 0 1 1 0 8 0 amappl12 160 17 0 13 1 0 1 1 0 8 0 amappl11 152 44 0 35 1 0 1 1 0 8 0 amappl10 144 43 0 39 1 0 1 1 0 8 0 amappl9 136 384 0 382 1 0 1 1 0 8 0 amappl8 128 319 0 281 2 0 2 2 0 8 0 amappl7 120 130 0 118 1 0 1 1 0 8 0 amappl6 112 23 0 19 1 0 1 1 0 8 0 amappl5 104 184 0 173 1 0 1 1 0 8 0 amappl4 96 419 0 392 1 0 1 1 0 8 0 amappl3 88 127 0 118 1 0 1 1 0 8 0 amappl2 80 1216 0 1148 2 0 2 2 0 8 0 amappl1 72 14188 0 13786 24 8 16 17 0 8 7 amappl 80 557 0 518 1 0 1 1 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 256 0 242 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 256 0 242 1 0 1 1 0 8 0 vmmpekpl 168 5857 0 5830 2 0 2 2 0 8 0 vmmpepl 168 38005 0 35997 111 6 105 105 0 357 16 vmsppl 272 255 0 242 2 0 2 2 0 8 1 pdppl 4096 518 0 484 6 0 6 6 0 8 1 pvpl 32 137627 0 117535 164 0 164 164 0 265 0 pmappl 200 255 0 242 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 244 0 12 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240176a) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806bc21800,12c,1f4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0760) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da66648,9,fffffd806bc21100,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da66648,0,ffff80001d6c9ff8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d7174f0,4,ffff80001d6c9ff8,0,ffff80001d6ca0e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d6ca090,ffff80001d6ca0e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca160) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8bb0, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240176a) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806bc21800,12c,1f4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0760) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da66648,9,fffffd806bc21100,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da66648,0,ffff80001d6c9ff8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d7174f0,4,ffff80001d6c9ff8,0,ffff80001d6ca0e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d6ca090,ffff80001d6ca0e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca160) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8bb0, count: -10