panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *238068 98550 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824190f9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80538e5300,cd4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2320) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da62968,9,fffffd80538e5200,0,0,ffff80001d717010) at tcp_usrreq+0xa54 sosend(fffffd805da62968,0,ffff80001d71e058,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717010,4,ffff80001d71e058,0,ffff80001d71e140) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717010,ffff80001d71e0f0,ffff80001d71e140) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e1c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd8c00, 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(ffffffff824190f9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80538e5300,cd4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2320) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da62968,9,fffffd80538e5200,0,0,ffff80001d717010) at tcp_usrreq+0xa54 sosend(fffffd805da62968,0,ffff80001d71e058,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717010,4,ffff80001d71e058,0,ffff80001d71e140) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717010,ffff80001d71e0f0,ffff80001d71e140) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e1c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd8c00, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71db20 rbx 0xffff80001d71dbd0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8148f4df kprintf+0x15f r9 0x1 r10 0x2 r11 0xa190ddd417ed736 r12 0x3000000008 r13 0xffff80001d71db30 r14 0x100 r15 0x1 rip 0xffffffff82231408 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71db10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=238068 stat=onproc flags process=12 proc=0 pri=24, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff80001d717eb0,0xffff80001d717770 process=0xffff8000ffff9210 user=0xffff80001d719000, vmspace=0xfffffd806bc0a880 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 96795 113349 7078 0 3 0x82 piperd syz-executor.0 47117 343330 1 0 3 0x100083 ttyin getty 31253 84536 0 0 3 0x14200 bored sosplice 9398 3192 7078 0 2 0x2 syz-executor.1 7078 432325 67981 0 2 0x2 syz-fuzzer 7078 93193 67981 0 2 0x4000482 syz-fuzzer 7078 51795 67981 0 3 0x4000082 thrsleep syz-fuzzer 7078 456437 67981 0 3 0x4000082 thrsleep syz-fuzzer 7078 383820 67981 0 3 0x4000082 thrsleep syz-fuzzer 7078 223909 67981 0 3 0x4000082 thrsleep syz-fuzzer 7078 168070 67981 0 3 0x4000082 thrsleep syz-fuzzer 7078 20659 67981 0 3 0x4000082 thrsleep syz-fuzzer 67981 434288 98550 0 3 0x10008a pause ksh *98550 238068 70308 0 7 0x12 sshd 70308 171716 1 0 3 0x80 select sshd 42111 70363 65602 73 3 0x100090 kqread syslogd 65602 407214 1 0 3 0x100082 netio syslogd 30534 412609 1 77 3 0x100090 poll dhclient 60657 446997 1 0 3 0x80 poll dhclient 62166 445355 0 0 3 0x14200 bored smr 22447 156152 0 0 2 0x14200 zerothread 58272 456126 0 0 3 0x14200 aiodoned aiodoned 46658 523564 0 0 3 0x14200 syncer update 28358 285229 0 0 3 0x14200 cleaner cleaner 98838 467502 0 0 3 0x14200 reaper reaper 92594 54077 0 0 3 0x14200 pgdaemon pagedaemon 57497 445450 0 0 3 0x14200 bored crynlk 7647 339314 0 0 3 0x14200 bored crypto 87536 308474 0 0 3 0x40014200 acpi0 acpi0 15730 282440 0 0 2 0x14200 softnet 77808 63961 0 0 3 0x14200 bored systqmp 33726 8836 0 0 3 0x14200 bored systq 74228 486585 0 0 3 0x40014200 bored softclock 6160 251603 0 0 3 0x40014200 idle0 1 415435 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 9492 6535K 6600K 78643K 10784 0 pcb 13 8K 8K 78643K 49 0 rtable 110 3K 7K 78643K 302 0 ifaddr 54 12K 12K 78643K 84 0 counters 21 16K 16K 78643K 23 0 ioctlops 0 0K 4K 78643K 34 0 iov 0 0K 16K 78643K 22 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1315 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 0K 0K 78643K 2 0 sem 11 0K 0K 78643K 11 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 177 0 sigio 0 0K 0K 78643K 4 0 proc 48 38K 54K 78643K 413 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 17 0 in_multi 41 2K 2K 78643K 65 0 ether_multi 1 0K 0K 78643K 5 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 213 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 123 55K 55K 78643K 1282 0 UVM aobj 5 2K 2K 78643K 10 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 24 0 NDP 9 0K 0K 78643K 18 0 temp 81 3849K 3913K 78643K 5044 0 kqueue 3 4K 10K 78643K 190 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 8 0 2 1 0 1 1 0 8 0 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 60 0 14 2 0 2 2 0 8 0 unpcb 120 49 0 41 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 79 0 79 1 1 0 1 0 8 0 tcpcb 544 63 0 59 1 0 1 1 0 8 0 inpcb 296 197 0 190 2 0 2 2 0 8 1 nd6 48 11 0 4 1 0 1 1 0 8 0 pfrktable 1344 20 0 20 1 0 1 1 0 8 1 pftag 88 2 0 2 1 0 1 1 0 8 1 pfrule 1360 6 0 4 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 233 0 44 14 2 12 12 0 8 0 art_table 32 234 0 44 2 0 2 2 0 8 0 art_node 16 59 0 18 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 8 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1606 0 210 88 0 88 88 0 8 0 ffsino 240 1606 0 210 83 0 83 83 0 8 0 nchpl 144 2014 0 426 60 0 60 60 0 8 0 uvmvnodes 72 1715 0 0 32 0 32 32 0 8 0 vnodes 208 1715 0 0 91 0 91 91 0 8 0 namei 1024 5309 0 5309 1 0 1 1 0 8 1 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 528 4 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 6 0 6 1 0 1 1 0 8 1 scxspl 192 5731 0 5731 1 0 1 1 0 8 1 plimitpl 152 21 0 14 1 0 1 1 0 8 0 sigapl 424 362 0 334 4 0 4 4 0 8 0 futexpl 56 3412 0 3412 1 0 1 1 0 8 1 knotepl 112 264 0 245 1 0 1 1 0 8 0 kqueuepl 144 282 0 279 1 0 1 1 0 8 0 pipepl 272 96 0 86 1 0 1 1 0 8 0 fdescpl 432 347 0 334 2 0 2 2 0 8 0 filepl 120 2042 0 1947 4 0 4 4 0 8 0 lockfpl 104 31 0 30 1 0 1 1 0 8 0 lockfspl 48 13 0 12 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 29 0 19 1 0 1 1 0 8 0 ucredpl 96 167 0 160 1 0 1 1 0 8 0 zombiepl 144 334 0 334 1 0 1 1 0 8 1 processpl 920 362 0 334 4 0 4 4 0 8 0 procpl 624 531 0 496 4 0 4 4 0 8 1 sosppl 128 4 0 4 2 1 1 1 0 8 1 sockpl 400 273 0 256 3 0 3 3 0 8 1 mcl64k 65536 11 0 11 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 5 0 5 1 0 1 1 0 8 1 mcl9k 9216 3 0 3 2 1 1 1 0 8 1 mcl8k 8192 5 0 4 1 0 1 1 0 8 0 mcl4k 4096 13 0 13 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 78905 0 78858 19 11 8 17 0 8 1 mtagpl 96 17 0 2 2 1 1 1 0 8 0 mbufpl 256 125587 0 125428 17 4 13 13 0 8 2 bufpl 280 3489 0 126 241 0 241 241 0 8 0 anonpl 16 49189 0 32827 71 2 69 69 0 107 2 amapchunkpl 152 1751 0 1612 8 1 7 8 0 158 0 amappl16 192 1574 0 659 48 0 48 48 0 8 2 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 25 0 22 1 0 1 1 0 8 0 amappl13 168 99 0 95 1 0 1 1 0 8 0 amappl12 160 76 0 70 2 1 1 1 0 8 0 amappl11 152 47 0 38 1 0 1 1 0 8 0 amappl10 144 19 0 11 1 0 1 1 0 8 0 amappl9 136 426 0 424 1 0 1 1 0 8 0 amappl8 128 353 0 309 2 0 2 2 0 8 0 amappl7 120 115 0 102 1 0 1 1 0 8 0 amappl6 112 26 0 20 1 0 1 1 0 8 0 amappl5 104 264 0 253 1 0 1 1 0 8 0 amappl4 96 478 0 452 1 0 1 1 0 8 0 amappl3 88 151 0 144 1 0 1 1 0 8 0 amappl2 80 1891 0 1832 2 0 2 2 0 8 0 amappl1 72 16507 0 16100 22 12 10 17 0 8 0 amappl 80 776 0 735 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 9 0 5 1 0 1 1 0 8 0 uaddrrnd 24 351 0 335 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 351 0 335 1 0 1 1 0 8 0 vmmpekpl 168 6482 0 6454 2 0 2 2 0 8 0 vmmpepl 168 49019 0 47103 153 9 144 149 0 357 55 vmsppl 272 350 0 335 2 0 2 2 0 8 0 pdppl 4096 708 0 673 7 1 6 6 0 8 1 pvpl 32 161066 0 141803 165 0 165 165 0 265 7 pmappl 200 350 0 335 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 252 0 21 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(ffffffff824190f9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80538e5300,cd4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2320) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da62968,9,fffffd80538e5200,0,0,ffff80001d717010) at tcp_usrreq+0xa54 sosend(fffffd805da62968,0,ffff80001d71e058,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717010,4,ffff80001d71e058,0,ffff80001d71e140) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717010,ffff80001d71e0f0,ffff80001d71e140) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e1c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd8c00, 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(ffffffff824190f9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80538e5300,cd4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2320) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da62968,9,fffffd80538e5200,0,0,ffff80001d717010) at tcp_usrreq+0xa54 sosend(fffffd805da62968,0,ffff80001d71e058,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717010,4,ffff80001d71e058,0,ffff80001d71e140) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717010,ffff80001d71e0f0,ffff80001d71e140) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e1c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd8c00, count: -10