panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *258065 7352 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(fffffd805385a700,f4,2ec,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000abfcc0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da79648,9,fffffd805385a600,0,0,ffff80001d717c40) at tcp_usrreq+0xa54 sosend(fffffd805da79648,0,ffff80001d71eb88,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717c40,4,ffff80001d71eb88,0,ffff80001d71ec70) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717c40,ffff80001d71ec20,ffff80001d71ec70) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71ecf0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffda680, 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(fffffd805385a700,f4,2ec,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000abfcc0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da79648,9,fffffd805385a600,0,0,ffff80001d717c40) at tcp_usrreq+0xa54 sosend(fffffd805da79648,0,ffff80001d71eb88,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717c40,4,ffff80001d71eb88,0,ffff80001d71ec70) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717c40,ffff80001d71ec20,ffff80001d71ec70) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71ecf0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffda680, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71e650 rbx 0xffff80001d71e700 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff822e7d3f kprintf+0x15f r9 0x1 r10 0x2 r11 0x6fc81451021bb28e r12 0x3000000008 r13 0xffff80001d71e660 r14 0x100 r15 0x1 rip 0xffffffff81b9cc28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71e640 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=258065 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718870,0xffff80001d717020 process=0xffff8000ffff9210 user=0xffff80001d719000, vmspace=0xfffffd806bc0a330 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 53227 108986 0 0 3 0x14200 bored sosplice 96248 521764 90740 0 2 0x2 syz-executor.0 37488 278527 90740 0 2 0x2 syz-executor.1 90740 64982 16497 0 3 0x82 thrsleep syz-fuzzer 90740 26183 16497 0 2 0x4000002 syz-fuzzer 90740 13009 16497 0 2 0x4000002 syz-fuzzer 90740 420697 16497 0 3 0x4000082 thrsleep syz-fuzzer 90740 30133 16497 0 3 0x4000082 thrsleep syz-fuzzer 90740 285364 16497 0 3 0x4000082 thrsleep syz-fuzzer 90740 344767 16497 0 3 0x4000082 thrsleep syz-fuzzer 16497 154667 7352 0 3 0x10008a pause ksh * 7352 258065 46567 0 7 0x12 sshd 96490 383901 1 0 3 0x100083 ttyin getty 46567 145538 1 0 3 0x80 select sshd 71244 94514 16862 73 3 0x100090 kqread syslogd 16862 21566 1 0 3 0x100082 netio syslogd 13449 447220 1 77 3 0x100090 poll dhclient 76664 510057 1 0 3 0x80 poll dhclient 47918 116818 0 0 3 0x14200 bored smr 34287 167252 0 0 3 0x14200 pgzero zerothread 24922 123875 0 0 3 0x14200 aiodoned aiodoned 64144 459064 0 0 3 0x14200 syncer update 53686 293244 0 0 3 0x14200 cleaner cleaner 10773 223427 0 0 3 0x14200 reaper reaper 55723 404284 0 0 3 0x14200 pgdaemon pagedaemon 25846 445567 0 0 3 0x14200 bored crynlk 45501 56309 0 0 3 0x14200 bored crypto 15831 293683 0 0 3 0x40014200 acpi0 acpi0 72323 260320 0 0 3 0x14200 bored softnet 54607 288943 0 0 3 0x14200 bored systqmp 81289 191246 0 0 3 0x14200 bored systq 88376 101773 0 0 3 0x40014200 bored softclock 73294 499754 0 0 3 0x40014200 idle0 1 101297 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 9479 6335K 6979K 78643K 10886 0 pcb 13 8K 8K 78643K 17 0 rtable 108 3K 7K 78643K 244 0 ifaddr 56 11K 13K 78643K 79 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 4K 78643K 27 0 iov 0 0K 12K 78643K 10 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1295 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 0K 0K 78643K 2 0 sem 6 0K 0K 78643K 8 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 94 0 proc 49 38K 54K 78643K 369 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 6 0 in_multi 33 2K 2K 78643K 36 0 ether_multi 1 0K 0K 78643K 2 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 200 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 130 55K 55K 78643K 1082 0 UVM aobj 3 2K 2K 78643K 5 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 9 0K 0K 78643K 14 0 temp 87 3847K 3911K 78643K 3604 0 kqueue 3 4K 4K 78643K 3 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 21 0 19 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 91 0 83 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 37 0 37 1 0 1 1 0 8 1 tcpcb 544 31 0 27 1 0 1 1 0 8 0 inpcb 296 121 0 114 2 0 2 2 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 0 1 1 0 8 1 pfrktable 1344 20 0 20 1 0 1 1 0 8 1 pftag 88 3 0 2 1 0 1 1 0 8 0 pfrule 1360 4 0 2 1 0 1 1 0 8 0 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 8 0 8 1 0 1 1 0 8 1 semapl 112 4 0 0 1 0 1 1 0 8 0 shmpl 112 3 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1507 0 107 88 0 88 88 0 8 0 ffsino 240 1507 0 107 83 0 83 83 0 8 0 nchpl 144 1824 0 224 60 0 60 60 0 8 0 uvmvnodes 72 1619 0 0 30 0 30 30 0 8 0 vnodes 208 1619 0 0 86 0 86 86 0 8 0 namei 1024 4634 0 4634 1 0 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 4 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 6 0 6 1 0 1 1 0 8 1 scxspl 192 5362 0 5362 1 0 1 1 0 8 1 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 281 0 253 4 0 4 4 0 8 0 futexpl 56 1562 0 1562 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 10 0 8 1 0 1 1 0 8 0 pipelkpl 16 88 0 78 1 0 1 1 0 8 0 pipepl 120 176 0 157 1 0 1 1 0 8 0 fdescpl 432 266 0 253 2 0 2 2 0 8 0 filepl 120 1476 0 1381 4 0 4 4 0 8 1 lockfpl 104 25 0 24 1 0 1 1 0 8 0 lockfspl 48 11 0 10 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 75 0 67 1 0 1 1 0 8 0 zombiepl 144 253 0 253 1 0 1 1 0 8 1 processpl 920 281 0 253 4 0 4 4 0 8 0 procpl 624 367 0 333 4 0 4 4 0 8 1 sockpl 400 233 0 216 3 0 3 3 0 8 1 mcl64k 65536 5 0 5 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 3 0 3 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 2 0 2 1 0 1 1 0 8 1 mcl4k 4096 11 0 11 2 1 1 1 0 8 1 mcl2k 2048 73780 0 73734 15 3 12 12 0 8 6 mtagpl 96 53 0 2 3 1 2 2 0 8 0 mbufpl 256 117438 0 117258 14 2 12 12 0 8 0 bufpl 280 3639 0 125 251 0 251 251 0 8 0 anonpl 16 40961 0 24994 67 2 65 65 0 107 0 amapchunkpl 152 1368 0 1241 13 0 13 13 0 158 5 amappl16 192 1245 0 367 45 0 45 45 0 8 0 amappl15 184 42 0 39 1 0 1 1 0 8 0 amappl14 176 25 0 19 1 0 1 1 0 8 0 amappl13 168 27 0 24 1 0 1 1 0 8 0 amappl12 160 15 0 11 1 0 1 1 0 8 0 amappl11 152 42 0 33 1 0 1 1 0 8 0 amappl10 144 12 0 8 1 0 1 1 0 8 0 amappl9 136 374 0 372 1 0 1 1 0 8 0 amappl8 128 369 0 323 2 0 2 2 0 8 0 amappl7 120 106 0 95 1 0 1 1 0 8 0 amappl6 112 27 0 20 1 0 1 1 0 8 0 amappl5 104 254 0 243 1 0 1 1 0 8 0 amappl4 96 426 0 397 1 0 1 1 0 8 0 amappl3 88 104 0 99 1 0 1 1 0 8 0 amappl2 80 1332 0 1277 2 0 2 2 0 8 0 amappl1 72 14710 0 14315 23 7 16 17 0 8 6 amappl 80 600 0 558 2 0 2 2 0 84 1 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 4 0 2 1 0 1 1 0 8 0 uaddrrnd 24 270 0 253 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 270 0 253 1 0 1 1 0 8 0 vmmpekpl 168 5979 0 5953 2 0 2 2 0 8 0 vmmpepl 168 39430 0 37555 152 7 145 145 0 357 56 vmsppl 272 269 0 253 2 0 2 2 0 8 0 pdppl 4096 546 0 510 6 0 6 6 0 8 0 pvpl 32 139039 0 120442 157 0 157 157 0 265 3 pmappl 200 269 0 253 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 241 0 8 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(ffffffff8240667c) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805385a700,f4,2ec,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000abfcc0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da79648,9,fffffd805385a600,0,0,ffff80001d717c40) at tcp_usrreq+0xa54 sosend(fffffd805da79648,0,ffff80001d71eb88,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717c40,4,ffff80001d71eb88,0,ffff80001d71ec70) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717c40,ffff80001d71ec20,ffff80001d71ec70) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71ecf0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffda680, 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(fffffd805385a700,f4,2ec,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000abfcc0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da79648,9,fffffd805385a600,0,0,ffff80001d717c40) at tcp_usrreq+0xa54 sosend(fffffd805da79648,0,ffff80001d71eb88,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717c40,4,ffff80001d71eb88,0,ffff80001d71ec70) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717c40,ffff80001d71ec20,ffff80001d71ec70) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71ecf0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffda680, count: -10