panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *107432 4661 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82401ba7) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053913b00,23c,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da58328,9,fffffd8053913a00,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da58328,0,ffff80001d71e0f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d71e0f8,0,ffff80001d71e1e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e190,ffff80001d71e1e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e260) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcdbb0, 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(ffffffff82401ba7) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053913b00,23c,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da58328,9,fffffd8053913a00,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da58328,0,ffff80001d71e0f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d71e0f8,0,ffff80001d71e1e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e190,ffff80001d71e1e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e260) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcdbb0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71dbc0 rbx 0xffff80001d71dc70 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff813801af kprintf+0x15f r9 0x1 r10 0x2 r11 0xe19e199acf1815b r12 0x3000000008 r13 0xffff80001d71dbd0 r14 0x100 r15 0x1 rip 0xffffffff811a1d68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71dbb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=107432 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718ae0,0xffff80001d717290 process=0xffff8000ffff9210 user=0xffff80001d719000, vmspace=0xfffffd806bc0a440 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 50142 495837 26946 0 2 0 syz-executor.0 50142 447755 26946 0 3 0x4000080 netio syz-executor.0 26946 60347 10065 0 3 0x82 nanosleep syz-executor.0 63513 433781 10065 0 2 0x2 syz-executor.1 10065 498874 66912 0 3 0x82 thrsleep syz-fuzzer 10065 456853 66912 0 2 0x4000002 syz-fuzzer 10065 443471 66912 0 2 0x4000002 syz-fuzzer 10065 57055 66912 0 3 0x4000082 thrsleep syz-fuzzer 10065 369089 66912 0 3 0x4000082 thrsleep syz-fuzzer 10065 257235 66912 0 3 0x4000082 thrsleep syz-fuzzer 10065 490587 66912 0 3 0x4000082 thrsleep syz-fuzzer 66912 253115 4661 0 3 0x10008a pause ksh * 4661 107432 89028 0 7 0x12 sshd 44901 345879 1 0 3 0x100083 ttyin getty 89028 465431 1 0 3 0x80 select sshd 33877 125521 14335 73 3 0x100090 kqread syslogd 14335 221838 1 0 3 0x100082 netio syslogd 70785 417986 1 77 3 0x100090 poll dhclient 9365 404477 1 0 3 0x80 poll dhclient 9910 452324 0 0 3 0x14200 bored smr 37162 357944 0 0 2 0x14200 zerothread 36717 22909 0 0 3 0x14200 aiodoned aiodoned 39270 192526 0 0 3 0x14200 syncer update 41996 321897 0 0 3 0x14200 cleaner cleaner 81155 103110 0 0 3 0x14200 reaper reaper 69621 345343 0 0 3 0x14200 pgdaemon pagedaemon 79270 383474 0 0 3 0x14200 bored crynlk 76737 247464 0 0 3 0x14200 bored crypto 75744 210396 0 0 3 0x40014200 acpi0 acpi0 58362 427549 0 0 3 0x14200 bored softnet 41463 24507 0 0 3 0x14200 bored systqmp 12772 375776 0 0 3 0x14200 bored systq 85603 500575 0 0 3 0x40014200 bored softclock 50378 291431 0 0 3 0x40014200 idle0 1 290548 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 9452 6324K 6713K 78643K 10637 0 pcb 13 8K 8K 78643K 27 0 rtable 105 3K 3K 78643K 193 0 ifaddr 41 10K 10K 78643K 47 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 23 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1243 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 5 13K 25K 78643K 62 0 proc 47 38K 63K 78643K 358 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 3 0 in_multi 40 2K 2K 78643K 53 0 ether_multi 1 0K 0K 78643K 3 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 183 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 22K 23K 78643K 984 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 5 0K 0K 78643K 11 0 temp 61 3839K 3903K 78643K 1835 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 19 0 17 1 0 1 1 0 8 0 rtentry 112 47 0 3 2 0 2 2 0 8 0 unpcb 120 31 0 21 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 249 0 249 1 0 1 1 0 8 1 tcpcb 544 38 0 34 1 0 1 1 0 8 0 inpcb 296 82 0 75 2 0 2 2 0 8 1 nd6 48 8 0 2 1 0 1 1 0 8 0 pfrule 1360 3 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 46 0 6 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 6 0 2 1 0 1 1 0 8 0 shmpl 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 1450 0 51 88 0 88 88 0 8 0 ffsino 240 1450 0 51 83 0 83 83 0 8 0 nchpl 144 1708 0 106 60 0 60 60 0 8 0 uvmvnodes 72 1513 0 0 28 0 28 28 0 8 0 vnodes 208 1513 0 0 80 0 80 80 0 8 0 namei 1024 4255 0 4255 2 1 1 1 0 8 1 scxspl 192 4765 0 4765 1 0 1 1 0 8 1 plimitpl 152 18 0 11 1 0 1 1 0 8 0 sigapl 424 248 0 220 4 0 4 4 0 8 0 futexpl 56 669 0 669 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 2 0 0 1 0 1 1 0 8 0 pipelkpl 16 74 0 64 1 0 1 1 0 8 0 pipepl 120 148 0 129 1 0 1 1 0 8 0 fdescpl 432 234 0 220 2 0 2 2 0 8 0 filepl 120 1203 0 1105 4 0 4 4 0 8 1 lockfpl 104 21 0 20 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 19 0 9 1 0 1 1 0 8 0 ucredpl 96 78 0 71 1 0 1 1 0 8 0 zombiepl 144 220 0 220 2 1 1 1 0 8 1 processpl 920 248 0 220 4 0 4 4 0 8 0 procpl 624 288 0 253 3 0 3 3 0 8 0 sockpl 400 132 0 113 3 0 3 3 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 10 0 10 2 1 1 1 0 8 1 mcl2k 2048 70074 0 70014 16 1 15 15 0 8 6 mtagpl 96 14 0 2 2 1 1 1 0 8 0 mbufpl 256 111416 0 111199 15 1 14 14 0 8 0 bufpl 280 3303 0 126 227 0 227 227 0 8 0 anonpl 16 38483 0 22393 67 2 65 65 0 107 0 amapchunkpl 152 1116 0 973 8 0 8 8 0 158 1 amappl16 192 1093 0 219 44 0 44 44 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 39 0 31 1 0 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 22 0 21 2 1 1 1 0 8 0 amappl11 152 46 0 37 1 0 1 1 0 8 0 amappl10 144 29 0 22 1 0 1 1 0 8 0 amappl9 136 370 0 369 1 0 1 1 0 8 0 amappl8 128 316 0 280 2 0 2 2 0 8 0 amappl7 120 123 0 108 1 0 1 1 0 8 0 amappl6 112 23 0 20 1 0 1 1 0 8 0 amappl5 104 163 0 153 1 0 1 1 0 8 0 amappl4 96 428 0 404 1 0 1 1 0 8 0 amappl3 88 119 0 109 1 0 1 1 0 8 0 amappl2 80 1056 0 990 2 0 2 2 0 8 0 amappl1 72 13842 0 13429 23 9 14 17 0 8 5 amappl 80 515 0 473 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 234 0 220 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 234 0 220 1 0 1 1 0 8 0 vmmpekpl 168 5808 0 5783 3 1 2 2 0 8 0 vmmpepl 168 35410 0 33464 155 6 149 149 0 357 64 vmsppl 272 233 0 220 2 0 2 2 0 8 1 pdppl 4096 474 0 440 6 0 6 6 0 8 1 pvpl 32 129198 0 110164 155 0 155 155 0 265 1 pmappl 200 233 0 220 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 241 0 6 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(ffffffff82401ba7) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053913b00,23c,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da58328,9,fffffd8053913a00,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da58328,0,ffff80001d71e0f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d71e0f8,0,ffff80001d71e1e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e190,ffff80001d71e1e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e260) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcdbb0, 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(ffffffff82401ba7) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053913b00,23c,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da58328,9,fffffd8053913a00,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da58328,0,ffff80001d71e0f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d71e0f8,0,ffff80001d71e1e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e190,ffff80001d71e1e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e260) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcdbb0, count: -10