panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *489850 67679 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240580b) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805bac7f00,c10,204,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(fffffd805da6d648,9,fffffd805bac7700,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da6d648,0,ffff80001d71dfa8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d717eb0,4,ffff80001d71dfa8,0,ffff80001d71e090) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e040,ffff80001d71e090) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e110) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffec7a0, 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(ffffffff8240580b) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805bac7f00,c10,204,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(fffffd805da6d648,9,fffffd805bac7700,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da6d648,0,ffff80001d71dfa8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d717eb0,4,ffff80001d71dfa8,0,ffff80001d71e090) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e040,ffff80001d71e090) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e110) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffec7a0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71da70 rbx 0xffff80001d71db20 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff821959cf kprintf+0x15f r9 0x1 r10 0x2 r11 0x2304c12a0819f92e r12 0x3000000008 r13 0xffff80001d71da80 r14 0x100 r15 0x1 rip 0xffffffff81e0dea8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71da60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=489850 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718600,0xffff80001d717020 process=0xffff8000ffff8ae0 user=0xffff80001d719000, vmspace=0xfffffd806bc0aaa0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 78534 362259 44913 0 2 0 syz-executor.1 78534 119 44913 0 2 0x4000000 syz-executor.1 88410 291424 329 0 2 0x2 syz-executor.0 44913 505061 329 0 3 0x82 nanosleep syz-executor.1 329 302330 16683 0 3 0x82 thrsleep syz-fuzzer 329 229720 16683 0 2 0x4000482 syz-fuzzer 329 504000 16683 0 3 0x4000082 thrsleep syz-fuzzer 329 467456 16683 0 3 0x4000082 thrsleep syz-fuzzer 329 370766 16683 0 3 0x4000082 thrsleep syz-fuzzer 329 64459 16683 0 2 0x4000002 syz-fuzzer 329 188235 16683 0 3 0x4000082 thrsleep syz-fuzzer 16683 214983 67679 0 3 0x10008a pause ksh *67679 489850 14942 0 7 0x12 sshd 63726 410073 1 0 3 0x100083 ttyin getty 14942 513931 1 0 3 0x80 select sshd 21450 245722 50396 73 3 0x100090 kqread syslogd 50396 134456 1 0 3 0x100082 netio syslogd 80638 146597 1 77 3 0x100090 poll dhclient 7749 328882 1 0 3 0x80 poll dhclient 35559 201332 0 0 3 0x14200 bored smr 10334 398771 0 0 2 0x14200 zerothread 66154 273919 0 0 3 0x14200 aiodoned aiodoned 27829 339414 0 0 3 0x14200 syncer update 65138 366169 0 0 3 0x14200 cleaner cleaner 4404 104009 0 0 3 0x14200 reaper reaper 6763 360587 0 0 3 0x14200 pgdaemon pagedaemon 54722 16107 0 0 3 0x14200 bored crynlk 10185 347447 0 0 3 0x14200 bored crypto 9910 165157 0 0 3 0x40014200 acpi0 acpi0 17048 378066 0 0 3 0x14200 bored softnet 7468 260044 0 0 3 0x14200 bored systqmp 84842 402209 0 0 3 0x14200 bored systq 12132 128219 0 0 3 0x40014200 bored softclock 59158 182037 0 0 3 0x40014200 idle0 1 522107 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 6344K 6714K 78643K 10892 0 pcb 13 8K 8K 78643K 55 0 rtable 111 12K 15K 78643K 415 0 ifaddr 62 13K 14K 78643K 125 0 counters 21 16K 16K 78643K 26 0 ioctlops 0 0K 4K 78643K 55 0 iov 0 0K 24K 78643K 35 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1332 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 12 0K 0K 78643K 41 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 226 0 sigio 0 0K 0K 78643K 5 0 proc 49 38K 63K 78643K 379 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 20 0 in_multi 49 2K 2K 78643K 94 0 ether_multi 1 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 209 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 124 71K 71K 78643K 1373 0 UVM aobj 12 4K 4K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 46 0 NDP 9 0K 0K 78643K 23 0 temp 116 3850K 3917K 78643K 8840 0 kqueue 3 4K 8K 78643K 11 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 1 1 0 1 1 0 8 0 rtpcb 80 42 0 40 1 0 1 1 0 8 0 rtentry 112 71 0 29 2 0 2 2 0 8 0 unpcb 120 315 0 307 1 0 1 1 0 8 0 syncache 264 10 0 10 3 2 1 1 0 8 1 sackhl 24 4 0 4 2 1 1 1 0 8 1 tcpqe 32 704 0 704 2 1 1 1 0 8 1 tcpcb 544 240 0 236 1 0 1 1 0 8 0 ipq 40 4 0 4 1 1 0 1 0 8 0 ipqe 40 98 0 98 1 1 0 1 0 8 0 inpcb 280 414 0 406 2 0 2 2 0 8 1 nd6 48 14 0 9 1 0 1 1 0 8 0 pfrke_plain 160 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 49 0 46 1 0 1 1 0 8 0 pftag 88 8 0 8 1 0 1 1 0 8 1 pfrule 1360 14 0 8 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 356 0 163 14 0 14 14 0 8 1 art_table 32 357 0 163 2 0 2 2 0 8 0 art_node 16 70 0 32 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 4 1 0 1 1 0 8 0 semapl 112 39 0 29 1 0 1 1 0 8 0 shmpl 112 10 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1719 0 319 88 0 88 88 0 8 0 ffsino 240 1719 0 319 83 0 83 83 0 8 0 nchpl 144 2223 0 621 60 0 60 60 0 8 0 rtmask 32 4 0 2 1 0 1 1 0 8 0 uvmvnodes 72 1826 0 0 34 0 34 34 0 8 0 vnodes 208 1826 0 0 97 0 97 97 0 8 0 namei 1024 5930 0 5930 3 2 1 1 0 8 1 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 528 6 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 14 0 12 1 0 1 1 0 8 0 scxspl 192 7233 0 7233 2 1 1 1 0 8 1 plimitpl 152 34 0 27 1 0 1 1 0 8 0 sigapl 424 412 0 384 4 0 4 4 0 8 0 futexpl 56 4772 0 4772 1 0 1 1 0 8 1 knotepl 112 76 0 57 1 0 1 1 0 8 0 kqueuepl 144 32 0 30 1 0 1 1 0 8 0 pipepl 272 112 0 102 3 1 2 2 0 8 1 fdescpl 432 398 0 384 2 0 2 2 0 8 0 filepl 120 2676 0 2581 4 0 4 4 0 8 1 lockfpl 104 51 0 50 1 0 1 1 0 8 0 lockfspl 48 21 0 20 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 341 0 334 1 0 1 1 0 8 0 zombiepl 144 384 0 384 3 2 1 1 0 8 1 processpl 920 412 0 384 4 0 4 4 0 8 0 procpl 624 663 0 628 4 0 4 4 0 8 1 sockpl 400 775 0 758 4 1 3 4 0 8 1 mcl64k 65536 26 0 26 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 7 0 7 1 0 1 1 0 8 1 mcl9k 9216 3 0 3 3 2 1 1 0 8 1 mcl8k 8192 10 0 10 1 0 1 1 0 8 1 mcl4k 4096 21 0 21 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 74359 0 74297 25 15 10 19 0 8 0 mtagpl 80 24 0 2 2 1 1 1 0 8 0 mbufpl 256 120505 0 120322 28 7 21 21 0 8 4 bufpl 280 4073 0 126 282 0 282 282 0 8 0 anonpl 16 51359 0 35131 68 2 66 66 0 107 0 amapchunkpl 152 1763 0 1615 12 5 7 10 0 158 0 amappl16 192 1841 0 968 45 0 45 45 0 8 1 amappl15 184 95 0 93 1 0 1 1 0 8 0 amappl14 176 25 0 20 1 0 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 143 0 133 1 0 1 1 0 8 0 amappl10 144 112 0 107 1 0 1 1 0 8 0 amappl9 136 367 0 365 1 0 1 1 0 8 0 amappl8 128 318 0 280 2 0 2 2 0 8 0 amappl7 120 206 0 192 1 0 1 1 0 8 0 amappl6 112 25 0 19 1 0 1 1 0 8 0 amappl5 104 348 0 337 1 0 1 1 0 8 0 amappl4 96 417 0 393 1 0 1 1 0 8 0 amappl3 88 119 0 111 1 0 1 1 0 8 0 amappl2 80 2445 0 2380 2 0 2 2 0 8 0 amappl1 72 16790 0 16376 24 15 9 17 0 8 0 amappl 80 895 0 850 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 11 0 0 1 0 1 1 0 8 0 uaddrrnd 24 404 0 384 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 404 0 384 1 0 1 1 0 8 0 vmmpekpl 168 6634 0 6607 2 0 2 2 0 8 0 vmmpepl 168 53666 0 51700 126 34 92 108 0 357 3 vmsppl 272 403 0 384 3 1 2 2 0 8 0 pdppl 4096 814 0 774 7 1 6 6 0 8 0 pvpl 32 169629 0 150692 166 6 160 160 0 265 6 pmappl 200 403 0 384 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 276 0 32 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(ffffffff8240580b) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805bac7f00,c10,204,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(fffffd805da6d648,9,fffffd805bac7700,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da6d648,0,ffff80001d71dfa8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d717eb0,4,ffff80001d71dfa8,0,ffff80001d71e090) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e040,ffff80001d71e090) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e110) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffec7a0, 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(ffffffff8240580b) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805bac7f00,c10,204,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(fffffd805da6d648,9,fffffd805bac7700,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da6d648,0,ffff80001d71dfa8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d717eb0,4,ffff80001d71dfa8,0,ffff80001d71e090) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e040,ffff80001d71e090) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e110) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffec7a0, count: -10