panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *514481 78386 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82402d80) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053ba3100,154,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6d4b8,9,fffffd8053ba3000,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da6d4b8,0,ffff80001d71e778,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d7174f0,4,ffff80001d71e778,0,ffff80001d71e860) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d71e810,ffff80001d71e860) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e8e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2c90, 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(ffffffff82402d80) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053ba3100,154,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6d4b8,9,fffffd8053ba3000,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da6d4b8,0,ffff80001d71e778,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d7174f0,4,ffff80001d71e778,0,ffff80001d71e860) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d71e810,ffff80001d71e860) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e8e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2c90, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71e240 rbx 0xffff80001d71e2f0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81af19ef kprintf+0x15f r9 0x1 r10 0x2 r11 0x5aa760082395c473 r12 0x3000000008 r13 0xffff80001d71e250 r14 0x100 r15 0x1 rip 0xffffffff82278138 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71e230 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=514481 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718390,0xffff80001d717290 process=0xffff8000ffff8748 user=0xffff80001d719000, vmspace=0xfffffd806bc0a660 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 2874 459945 57852 0 2 0 syz-executor.0 2874 161937 57852 0 2 0x4000000 syz-executor.0 42240 190535 74597 0 2 0x2 syz-executor.1 57852 107787 74597 0 2 0x482 syz-executor.0 74597 280510 98344 0 2 0x482 syz-fuzzer 74597 101778 98344 0 2 0x4000002 syz-fuzzer 74597 70166 98344 0 2 0x4000002 syz-fuzzer 74597 182003 98344 0 3 0x4000082 thrsleep syz-fuzzer 74597 114538 98344 0 3 0x4000082 thrsleep syz-fuzzer 74597 72175 98344 0 3 0x4000082 thrsleep syz-fuzzer 74597 523985 98344 0 3 0x4000082 thrsleep syz-fuzzer 98344 350690 78386 0 3 0x10008a pause ksh *78386 514481 75968 0 7 0x12 sshd 13265 477973 1 0 3 0x100083 ttyin getty 75968 28402 1 0 3 0x80 select sshd 64988 340069 55366 73 3 0x100090 kqread syslogd 55366 388446 1 0 3 0x100082 netio syslogd 47072 231663 1 77 3 0x100090 poll dhclient 9814 155641 1 0 3 0x80 poll dhclient 41409 360639 0 0 3 0x14200 bored smr 19678 414444 0 0 2 0x14200 zerothread 98219 205989 0 0 3 0x14200 aiodoned aiodoned 93592 484839 0 0 3 0x14200 syncer update 68732 268889 0 0 3 0x14200 cleaner cleaner 39949 22368 0 0 3 0x14200 reaper reaper 5785 333125 0 0 3 0x14200 pgdaemon pagedaemon 94205 104636 0 0 3 0x14200 bored crynlk 12894 345664 0 0 3 0x14200 bored crypto 12738 249701 0 0 3 0x40014200 acpi0 acpi0 94046 416973 0 0 3 0x14200 bored softnet 40736 295919 0 0 3 0x14200 bored systqmp 25140 219246 0 0 3 0x14200 bored systq 42536 363677 0 0 3 0x40014200 bored softclock 22450 168909 0 0 3 0x40014200 idle0 1 156239 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 9486 6588K 6717K 78643K 10709 0 pcb 13 8K 8K 78643K 28 0 rtable 107 3K 3K 78643K 213 0 ifaddr 54 12K 12K 78643K 67 0 counters 21 16K 16K 78643K 23 0 ioctlops 0 0K 4K 78643K 31 0 iov 0 0K 12K 78643K 12 0 mount 1 1K 1K 78643K 1 0 vnodes 1213 76K 77K 78643K 1264 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 23 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 106 0 proc 49 38K 63K 78643K 370 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 2 0 in_multi 53 3K 3K 78643K 56 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 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 189 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 120 55K 55K 78643K 1089 0 UVM aobj 6 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 6 0 NDP 7 0K 0K 78643K 13 0 temp 73 3840K 3904K 78643K 8027 0 kqueue 3 4K 8K 78643K 5 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 27 0 25 1 0 1 1 0 8 0 rtentry 112 46 0 1 2 0 2 2 0 8 0 unpcb 120 53 0 45 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6 0 6 1 1 0 1 0 8 0 tcpcb 544 26 0 22 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 1 1 0 1 1 0 8 0 inpcb 280 267 0 260 3 1 2 2 0 8 1 nd6 48 7 0 0 1 0 1 1 0 8 0 pftag 88 2 0 2 1 0 1 1 0 8 1 pfrule 1360 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 218 0 0 14 0 14 14 0 8 0 art_table 32 219 0 0 2 0 2 2 0 8 0 art_node 16 45 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1525 0 130 88 0 88 88 0 8 0 ffsino 240 1525 0 130 83 0 83 83 0 8 0 nchpl 144 1839 0 237 60 0 60 60 0 8 0 uvmvnodes 72 1596 0 0 30 0 30 30 0 8 0 vnodes 208 1596 0 0 84 0 84 84 0 8 0 namei 1024 4617 0 4617 1 0 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 6 0 2 1 0 1 1 0 8 0 scxspl 192 5400 0 5400 1 0 1 1 0 8 1 plimitpl 152 24 0 17 1 0 1 1 0 8 0 sigapl 424 292 0 264 4 0 4 4 0 8 0 futexpl 56 1741 0 1741 1 0 1 1 0 8 1 knotepl 112 63 0 44 1 0 1 1 0 8 0 kqueuepl 144 7 0 5 1 0 1 1 0 8 0 pipelkpl 16 80 0 70 1 0 1 1 0 8 0 pipepl 120 160 0 141 1 0 1 1 0 8 0 fdescpl 432 278 0 264 2 0 2 2 0 8 0 filepl 120 1531 0 1436 4 0 4 4 0 8 1 lockfpl 104 20 0 19 1 0 1 1 0 8 0 lockfspl 48 8 0 7 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 108 0 101 1 0 1 1 0 8 0 zombiepl 144 264 0 264 1 0 1 1 0 8 1 processpl 920 292 0 264 4 0 4 4 0 8 0 procpl 624 389 0 354 4 1 3 4 0 8 0 sockpl 400 347 0 330 3 0 3 3 0 8 1 mcl64k 65536 11 0 11 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 1 1 0 1 0 8 0 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 2 0 2 2 1 1 1 0 8 1 mcl4k 4096 17 0 17 3 2 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 71721 0 71673 16 8 8 13 0 8 1 mtagpl 80 10 0 2 2 1 1 1 0 8 0 mbufpl 256 114327 0 114204 13 4 9 9 0 8 0 bufpl 280 3420 0 126 236 0 236 236 0 8 0 anonpl 16 44539 0 29258 77 2 75 75 0 107 13 amapchunkpl 152 1288 0 1163 8 1 7 8 0 158 0 amappl16 192 1440 0 600 51 1 50 51 0 8 7 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 64 0 56 1 0 1 1 0 8 0 amappl13 168 98 0 90 1 0 1 1 0 8 0 amappl12 160 7 0 7 1 1 0 1 0 8 0 amappl11 152 49 0 40 1 0 1 1 0 8 0 amappl10 144 19 0 14 1 0 1 1 0 8 0 amappl9 136 374 0 372 1 0 1 1 0 8 0 amappl8 128 322 0 284 2 0 2 2 0 8 0 amappl7 120 110 0 98 1 0 1 1 0 8 0 amappl6 112 24 0 19 1 0 1 1 0 8 0 amappl5 104 195 0 186 1 0 1 1 0 8 0 amappl4 96 465 0 431 1 0 1 1 0 8 0 amappl3 88 176 0 166 1 0 1 1 0 8 0 amappl2 80 1392 0 1329 2 0 2 2 0 8 0 amappl1 72 14550 0 14141 23 14 9 17 0 8 0 amappl 80 618 0 578 2 1 1 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 284 0 266 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 284 0 266 1 0 1 1 0 8 0 vmmpekpl 168 6002 0 5976 2 0 2 2 0 8 0 vmmpepl 168 40606 0 38685 112 10 102 107 0 357 18 vmsppl 272 283 0 266 2 0 2 2 0 8 0 pdppl 4096 574 0 536 6 1 5 6 0 8 0 pvpl 32 142453 0 124215 178 0 178 178 0 265 30 pmappl 200 283 0 266 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 245 0 20 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(ffffffff82402d80) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053ba3100,154,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6d4b8,9,fffffd8053ba3000,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da6d4b8,0,ffff80001d71e778,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d7174f0,4,ffff80001d71e778,0,ffff80001d71e860) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d71e810,ffff80001d71e860) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e8e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2c90, 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(ffffffff82402d80) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053ba3100,154,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6d4b8,9,fffffd8053ba3000,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da6d4b8,0,ffff80001d71e778,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d7174f0,4,ffff80001d71e778,0,ffff80001d71e860) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d71e810,ffff80001d71e860) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e8e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2c90, count: -10