panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *125987 95550 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240667c) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8057993400,32c,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da66648,9,fffffd8057993300,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da66648,0,ffff80001d6c9ee8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6c9ee8,0,ffff80001d6c9fd0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6c9f80,ffff80001d6c9fd0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca050) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdb070, 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(ffffffff8240667c) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8057993400,32c,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da66648,9,fffffd8057993300,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da66648,0,ffff80001d6c9ee8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6c9ee8,0,ffff80001d6c9fd0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6c9f80,ffff80001d6c9fd0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca050) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdb070, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6c99b0 rbx 0xffff80001d6c9a60 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff822e7d3f kprintf+0x15f r9 0x1 r10 0x2 r11 0x7d70f3e83ab980ea r12 0x3000000008 r13 0xffff80001d6c99c0 r14 0x100 r15 0x1 rip 0xffffffff81b9cc28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6c99a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=125987 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718600,0xffff80001d717020 process=0xffff8000ffff8ae0 user=0xffff80001d6c5000, vmspace=0xfffffd806bc0abb0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 8465 403949 0 0 3 0x14200 acct acct 98071 153078 74313 0 2 0x2 syz-executor.0 79396 137633 0 0 3 0x14200 bored sosplice 71247 297663 74313 0 3 0x82 nanosleep syz-executor.1 74313 520817 97673 0 3 0x82 thrsleep syz-fuzzer 74313 175064 97673 0 2 0x4000002 syz-fuzzer 74313 463033 97673 0 3 0x4000082 thrsleep syz-fuzzer 74313 154210 97673 0 3 0x4000082 thrsleep syz-fuzzer 74313 522388 97673 0 3 0x4000082 thrsleep syz-fuzzer 74313 450433 97673 0 3 0x4000082 thrsleep syz-fuzzer 74313 273315 97673 0 3 0x4000082 thrsleep syz-fuzzer 74313 269578 97673 0 2 0x4000002 syz-fuzzer 97673 174433 95550 0 3 0x10008a pause ksh *95550 125987 23071 0 7 0x12 sshd 68935 412187 1 0 3 0x100083 ttyopn getty 23071 449417 1 0 3 0x80 select sshd 39939 76511 46333 73 3 0x100090 kqread syslogd 46333 433854 1 0 3 0x100082 netio syslogd 17601 432499 1 77 3 0x100090 poll dhclient 50527 130608 1 0 3 0x80 poll dhclient 5991 6531 0 0 3 0x14200 bored smr 6668 211688 0 0 3 0x14200 pgzero zerothread 81919 234117 0 0 3 0x14200 aiodoned aiodoned 1165 292252 0 0 3 0x14200 syncer update 6418 319056 0 0 3 0x14200 cleaner cleaner 56313 472562 0 0 3 0x14200 reaper reaper 90438 146125 0 0 3 0x14200 pgdaemon pagedaemon 80953 174777 0 0 3 0x14200 bored crynlk 40003 334255 0 0 3 0x14200 bored crypto 50462 247173 0 0 3 0x40014200 acpi0 acpi0 17724 378057 0 0 3 0x14200 bored softnet 71984 474175 0 0 3 0x14200 bored systqmp 36022 318354 0 0 3 0x14200 bored systq 29575 181253 0 0 3 0x40014200 bored softclock 75365 500013 0 0 3 0x40014200 idle0 1 358449 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 9497 6350K 6735K 78643K 11622 0 pcb 13 8K 8K 78643K 159 0 rtable 129 17K 19K 78643K 853 0 ifaddr 95 20K 20K 78643K 277 0 counters 21 16K 16K 78643K 31 0 ioctlops 0 0K 4K 78643K 2180 0 iov 0 0K 16K 78643K 801 0 mount 1 1K 1K 78643K 1 0 vnodes 1211 76K 77K 78643K 1982 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 19 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 176 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 1613 0 sigio 0 0K 0K 78643K 10 0 proc 50 38K 63K 78643K 513 0 subproc 32 2K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 70 0 in_multi 87 3K 3K 78643K 300 0 ether_multi 1 0K 0K 78643K 23 0 mrt 0 0K 0K 78643K 12 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 280 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 131 88K 88K 78643K 4430 0 UVM aobj 55 4K 4K 78643K 66 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 132 0 NDP 12 0K 0K 78643K 45 0 temp 130 3860K 3924K 78643K 21546 0 kqueue 3 4K 12K 78643K 45 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 20 0 11 1 0 1 1 0 8 0 rtpcb 80 65 0 63 1 0 1 1 0 8 0 rtentry 112 141 0 100 2 0 2 2 0 8 0 unpcb 120 669 0 661 1 0 1 1 0 8 0 syncache 264 15 0 15 3 2 1 1 0 8 1 tcpqe 32 48 0 48 3 2 1 1 0 8 1 tcpcb 544 256 0 252 1 0 1 1 0 8 0 ipq 40 4 0 4 2 2 0 1 0 8 0 ipqe 40 92 0 92 2 2 0 1 0 8 0 inpcb 296 823 0 814 3 1 2 2 0 8 1 rttmr 72 6 0 6 1 1 0 1 0 8 0 nd6 48 40 0 38 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 ppxss 1128 3 0 3 2 1 1 1 0 8 1 pfosfp 40 79 0 52 1 0 1 1 0 8 0 pfosfpen 112 268 0 200 5 3 2 3 0 8 0 pfrktable 1344 154 0 143 2 0 2 2 0 8 1 pftag 88 29 0 26 3 2 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfrule 1360 60 0 30 3 0 3 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 486 0 307 15 1 14 14 0 8 0 art_table 32 487 0 307 2 0 2 2 0 8 0 art_node 16 140 0 102 1 0 1 1 0 8 0 sysvmsgpl 40 30 0 19 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 166 0 156 1 0 1 1 0 8 0 shmpl 112 64 0 11 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4065 0 2670 88 0 88 88 0 8 0 ffsino 240 4065 0 2670 83 0 83 83 0 8 0 nchpl 144 6516 0 4930 60 0 60 60 0 8 0 uvmvnodes 72 4552 0 0 83 0 83 83 0 8 0 vnodes 208 4552 0 0 240 0 240 240 0 8 0 namei 1024 19303 0 19303 1 0 1 1 0 8 1 vcpupl 1984 10 0 0 2 0 2 2 0 8 0 vmpool 528 14 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 54 0 46 3 2 1 1 0 8 0 scxspl 192 19454 0 19454 1 0 1 1 0 8 1 plimitpl 152 89 0 82 1 0 1 1 0 8 0 sigapl 424 1797 0 1768 4 0 4 4 0 8 0 futexpl 56 27473 0 27473 1 0 1 1 0 8 1 knotepl 112 143 0 124 1 0 1 1 0 8 0 kqueuepl 144 126 0 124 1 0 1 1 0 8 0 pipelkpl 16 208 0 198 1 0 1 1 0 8 0 pipepl 120 416 0 397 2 1 1 2 0 8 0 fdescpl 432 1779 0 1766 2 0 2 2 0 8 0 filepl 120 10286 0 10191 4 0 4 4 0 8 1 lockfpl 104 243 0 242 1 0 1 1 0 8 0 lockfspl 48 85 0 84 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 579 0 572 1 0 1 1 0 8 0 zombiepl 144 1768 0 1767 1 0 1 1 0 8 0 processpl 920 1797 0 1767 4 0 4 4 0 8 0 procpl 624 3608 0 3571 4 0 4 4 0 8 0 sosppl 128 5 0 5 2 1 1 1 0 8 1 sockpl 400 1564 0 1547 4 0 4 4 0 8 2 mcl64k 65536 77 0 74 3 2 1 2 0 8 0 mcl12k 12288 37 0 37 3 2 1 1 0 8 1 mcl9k 9216 15 0 15 3 2 1 1 0 8 1 mcl8k 8192 29 0 29 3 2 1 1 0 8 1 mcl4k 4096 91 0 91 1 0 1 1 0 8 1 mcl2k2 2112 7 0 7 3 3 0 1 0 8 0 mcl2k 2048 78015 0 77965 15 8 7 12 0 8 0 mtagpl 96 78 0 19 3 1 2 2 0 8 0 mbufpl 256 132257 0 131605 48 3 45 45 0 8 0 bufpl 280 7673 0 2321 383 0 383 383 0 8 0 anonpl 16 148592 0 131831 89 6 83 83 0 107 14 amapchunkpl 152 7233 0 7104 32 24 8 19 0 158 0 amappl16 192 8242 0 7293 64 7 57 59 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 40 0 33 1 0 1 1 0 8 0 amappl13 168 50 0 46 1 0 1 1 0 8 0 amappl12 160 11 0 9 1 0 1 1 0 8 0 amappl11 152 53 0 43 1 0 1 1 0 8 0 amappl10 144 515 0 511 1 0 1 1 0 8 0 amappl9 136 1251 0 1249 1 0 1 1 0 8 0 amappl8 128 1259 0 1222 2 0 2 2 0 8 0 amappl7 120 632 0 617 1 0 1 1 0 8 0 amappl6 112 26 0 19 1 0 1 1 0 8 0 amappl5 104 1717 0 1706 1 0 1 1 0 8 0 amappl4 96 457 0 430 1 0 1 1 0 8 0 amappl3 88 159 0 153 1 0 1 1 0 8 0 amappl2 80 13291 0 13234 2 0 2 2 0 8 0 amappl1 72 38004 0 37608 24 15 9 17 0 8 0 amappl 80 3870 0 3826 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 65 0 11 1 0 1 1 0 8 0 uaddrrnd 24 1793 0 1770 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1793 0 1770 1 0 1 1 0 8 0 vmmpekpl 168 13045 0 13015 2 0 2 2 0 8 0 vmmpepl 168 206343 0 204376 166 53 113 123 0 357 16 vmsppl 272 1792 0 1770 2 0 2 2 0 8 0 pdppl 4096 3592 0 3550 7 1 6 6 0 8 0 pvpl 32 433611 0 414443 208 15 193 193 0 265 36 pmappl 200 1792 0 1770 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 284 0 19 8 0 8 8 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(ffffffff8240667c) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8057993400,32c,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da66648,9,fffffd8057993300,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da66648,0,ffff80001d6c9ee8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6c9ee8,0,ffff80001d6c9fd0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6c9f80,ffff80001d6c9fd0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca050) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdb070, 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(ffffffff8240667c) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8057993400,32c,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da66648,9,fffffd8057993300,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da66648,0,ffff80001d6c9ee8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6c9ee8,0,ffff80001d6c9fd0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6c9f80,ffff80001d6c9fd0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca050) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdb070, count: -10