panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *386197 19728 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241d9d0) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8058e43a00,8d4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da7c7d8,9,fffffd8058e43900,0,0,ffff80001d718120) at tcp_usrreq+0xa54 sosend(fffffd805da7c7d8,0,ffff80001d71e498,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718120,4,ffff80001d71e498,0,ffff80001d71e580) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718120,ffff80001d71e530,ffff80001d71e580) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e600) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff1960, 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(ffffffff8241d9d0) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8058e43a00,8d4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da7c7d8,9,fffffd8058e43900,0,0,ffff80001d718120) at tcp_usrreq+0xa54 sosend(fffffd805da7c7d8,0,ffff80001d71e498,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718120,4,ffff80001d71e498,0,ffff80001d71e580) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718120,ffff80001d71e530,ffff80001d71e580) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e600) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff1960, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71df60 rbx 0xffff80001d71e010 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81ec181f kprintf+0x15f r9 0x1 r10 0x2 r11 0x86108633db53b002 r12 0x3000000008 r13 0xffff80001d71df70 r14 0x100 r15 0x1 rip 0xffffffff818a5a48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71df50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=386197 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718ae0,0xffff80001d717020 process=0xffff8000ffff8748 user=0xffff80001d719000, vmspace=0xfffffd806bc0a660 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 59199 507015 79856 0 2 0 syz-executor.1 59199 314471 79856 0 3 0x4000080 ttyout syz-executor.1 21477 80934 30716 0 2 0x2 syz-executor.0 79856 188607 30716 0 3 0x82 nanosleep syz-executor.1 40649 429126 0 0 3 0x14200 acct acct 20714 107377 0 0 3 0x14200 bored sosplice 81802 60853 0 0 3 0x14280 nfsidl nfsio 36169 1721 0 0 3 0x14280 nfsidl nfsio 60892 284415 0 0 3 0x14280 nfsidl nfsio 36109 341433 0 0 3 0x14280 nfsidl nfsio 43945 120292 0 0 3 0x14280 nfsidl nfsio 41092 112246 0 0 3 0x14280 nfsidl nfsio 48429 132915 0 0 3 0x14280 nfsidl nfsio 29669 66542 0 0 3 0x14280 nfsidl nfsio 29205 477227 0 0 3 0x14280 nfsidl nfsio 8661 149240 0 0 3 0x14280 nfsidl nfsio 140 59890 0 0 3 0x14280 nfsidl nfsio 52086 238880 0 0 3 0x14280 nfsidl nfsio 80334 83627 0 0 3 0x14280 nfsidl nfsio 48633 127114 0 0 3 0x14280 nfsidl nfsio 60884 165872 0 0 3 0x14280 nfsidl nfsio 14372 141920 0 0 3 0x14280 nfsidl nfsio 83261 197696 0 0 3 0x14280 nfsidl nfsio 62731 26311 0 0 3 0x14280 nfsidl nfsio 57404 193521 0 0 3 0x14280 nfsidl nfsio 74701 12772 0 0 3 0x14280 nfsidl nfsio 30716 489224 18062 0 3 0x82 thrsleep syz-fuzzer 30716 136845 18062 0 2 0x4000002 syz-fuzzer 30716 323511 18062 0 3 0x4000082 thrsleep syz-fuzzer 30716 424994 18062 0 3 0x4000082 thrsleep syz-fuzzer 30716 427974 18062 0 3 0x4000082 thrsleep syz-fuzzer 30716 321312 18062 0 2 0x4000002 syz-fuzzer 30716 475689 18062 0 3 0x4000082 thrsleep syz-fuzzer 30716 519638 18062 0 3 0x4000082 thrsleep syz-fuzzer 30716 31364 18062 0 3 0x4000082 thrsleep syz-fuzzer 18062 53106 19728 0 3 0x10008a pause ksh *19728 386197 1373 0 7 0x12 sshd 19264 120158 1 0 3 0x100083 ttyin getty 1373 46580 1 0 3 0x80 select sshd 78501 117954 7787 73 3 0x100090 kqread syslogd 7787 133837 1 0 3 0x100082 netio syslogd 33283 521596 1 77 3 0x100090 poll dhclient 28635 330392 1 0 3 0x80 poll dhclient 64206 247457 0 0 3 0x14200 bored smr 72633 408082 0 0 2 0x14200 zerothread 19984 251894 0 0 3 0x14200 aiodoned aiodoned 46926 57056 0 0 3 0x14200 syncer update 98239 448031 0 0 3 0x14200 cleaner cleaner 58527 133417 0 0 3 0x14200 reaper reaper 67684 44115 0 0 3 0x14200 pgdaemon pagedaemon 52662 240724 0 0 3 0x14200 bored crynlk 90876 456510 0 0 3 0x14200 bored crypto 25248 203084 0 0 3 0x40014200 acpi0 acpi0 10255 217278 0 0 2 0x14200 softnet 23364 348737 0 0 3 0x14200 bored systqmp 12435 512484 0 0 3 0x14200 bored systq 45596 501911 0 0 3 0x40014200 bored softclock 34898 257817 0 0 3 0x40014200 idle0 1 436300 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 9504 6360K 7059K 78643K 11713 0 pcb 13 8K 8K 78643K 132 0 rtable 124 9K 12K 78643K 754 0 ifaddr 82 16K 17K 78643K 270 0 counters 21 16K 16K 78643K 29 0 ioctlops 0 0K 4K 78643K 121 0 iov 0 0K 16K 78643K 344 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 76K 77K 78643K 1590 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 73 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 907 0 sigio 0 0K 0K 78643K 18 0 proc 49 38K 55K 78643K 520 0 subproc 32 2K 2K 78643K 85 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 39 0 in_multi 67 3K 3K 78643K 204 0 ether_multi 1 0K 0K 78643K 16 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 244 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 147 56K 60K 78643K 2927 0 UVM aobj 34 2K 2K 78643K 35 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 98 0 NDP 12 0K 0K 78643K 39 0 temp 107 3861K 3925K 78643K 14631 0 kqueue 3 4K 12K 78643K 35 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 14 0 7 1 0 1 1 0 8 0 rtpcb 80 62 0 60 1 0 1 1 0 8 0 rtentry 112 121 0 79 3 1 2 2 0 8 0 unpcb 120 177 0 169 1 0 1 1 0 8 0 syncache 264 9 0 9 3 3 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 199 0 199 2 2 0 1 0 8 0 tcpcb 544 631 0 626 3 2 1 2 0 8 0 ipq 40 7 0 7 2 2 0 1 0 8 0 ipqe 40 102 0 102 2 2 0 1 0 8 0 inpcb 296 2202 0 2194 3 2 1 2 0 8 0 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 33 0 29 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pfrke_plain 160 32 0 28 1 0 1 1 0 8 0 pfrktable 1344 122 0 114 4 3 1 2 0 8 0 pftag 88 18 0 16 1 0 1 1 0 8 0 pfrule 1360 32 0 24 2 1 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 500 0 321 18 4 14 14 0 8 0 art_table 32 501 0 321 2 0 2 2 0 8 0 art_node 16 120 0 81 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 69 0 59 1 0 1 1 0 8 0 shmpl 112 33 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2554 0 1156 88 0 88 88 0 8 0 ffsino 240 2554 0 1156 83 0 83 83 0 8 0 nchpl 144 3890 0 2313 60 0 60 60 0 8 0 rtmask 32 6 0 4 1 0 1 1 0 8 0 uvmvnodes 72 2899 0 0 53 0 53 53 0 8 0 vnodes 208 2899 0 0 153 0 153 153 0 8 0 namei 1024 10323 0 10323 3 2 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 5 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 40 0 34 1 0 1 1 0 8 0 scxspl 192 12336 0 12336 1 0 1 1 0 8 1 plimitpl 152 44 0 36 1 0 1 1 0 8 0 sigapl 424 1106 0 1056 6 0 6 6 0 8 0 futexpl 56 18299 0 18299 2 1 1 1 0 8 1 knotepl 112 127 0 108 1 0 1 1 0 8 0 kqueuepl 144 95 0 93 1 0 1 1 0 8 0 pipepl 272 177 0 167 3 2 1 2 0 8 0 fdescpl 432 1070 0 1056 2 0 2 2 0 8 0 filepl 120 6200 0 6103 4 0 4 4 0 8 1 lockfpl 104 111 0 110 1 0 1 1 0 8 0 lockfspl 48 49 0 48 1 0 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 24 0 14 1 0 1 1 0 8 0 ucredpl 96 325 0 318 1 0 1 1 0 8 0 zombiepl 144 1056 0 1056 2 1 1 1 0 8 1 processpl 920 1106 0 1056 7 0 7 7 0 8 0 procpl 624 2066 0 2007 6 1 5 6 0 8 0 sosppl 128 4 0 4 2 2 0 1 0 8 0 sockpl 400 2443 0 2425 6 3 3 4 0 8 1 mcl64k 65536 39 0 39 3 2 1 1 0 8 1 mcl16k 16384 4 0 4 2 2 0 1 0 8 0 mcl12k 12288 14 0 14 4 4 0 1 0 8 0 mcl9k 9216 9 0 9 5 4 1 1 0 8 1 mcl8k 8192 44 0 44 2 2 0 1 0 8 0 mcl4k 4096 143 0 142 4 3 1 1 0 8 0 mcl2k2 2112 8 0 8 3 2 1 1 0 8 1 mcl2k 2048 78146 0 78097 20 13 7 15 0 8 0 mtagpl 96 101 0 51 3 1 2 2 0 8 0 mbufpl 256 129174 0 128926 34 13 21 21 0 8 0 bufpl 280 5371 0 130 375 0 375 375 0 8 0 anonpl 16 118156 0 101920 99 29 70 82 0 107 2 amapchunkpl 152 5178 0 5038 30 24 6 20 0 158 0 amappl16 192 4635 0 3708 77 30 47 59 0 8 0 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 693 0 686 1 0 1 1 0 8 0 amappl13 168 55 0 52 1 0 1 1 0 8 0 amappl12 160 18 0 13 1 0 1 1 0 8 0 amappl11 152 717 0 705 1 0 1 1 0 8 0 amappl10 144 98 0 94 1 0 1 1 0 8 0 amappl9 136 447 0 445 1 0 1 1 0 8 0 amappl8 128 499 0 443 2 0 2 2 0 8 0 amappl7 120 211 0 196 1 0 1 1 0 8 0 amappl6 112 379 0 372 1 0 1 1 0 8 0 amappl5 104 344 0 334 1 0 1 1 0 8 0 amappl4 96 1133 0 1098 1 0 1 1 0 8 0 amappl3 88 426 0 418 1 0 1 1 0 8 0 amappl2 80 7563 0 7498 2 0 2 2 0 8 0 amappl1 72 28283 0 27872 24 15 9 17 0 8 0 amappl 80 2333 0 2291 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 34 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1075 0 1057 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1075 0 1057 1 0 1 1 0 8 0 vmmpekpl 168 9564 0 9530 2 0 2 2 0 8 0 vmmpepl 168 131997 0 129960 158 47 111 126 0 357 17 vmsppl 272 1074 0 1057 3 1 2 2 0 8 0 pdppl 4096 2156 0 2118 8 2 6 6 0 8 1 pvpl 32 325112 0 305763 214 33 181 193 0 265 20 pmappl 200 1074 0 1057 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 294 0 55 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(ffffffff8241d9d0) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8058e43a00,8d4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da7c7d8,9,fffffd8058e43900,0,0,ffff80001d718120) at tcp_usrreq+0xa54 sosend(fffffd805da7c7d8,0,ffff80001d71e498,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718120,4,ffff80001d71e498,0,ffff80001d71e580) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718120,ffff80001d71e530,ffff80001d71e580) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e600) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff1960, 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(ffffffff8241d9d0) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8058e43a00,8d4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da7c7d8,9,fffffd8058e43900,0,0,ffff80001d718120) at tcp_usrreq+0xa54 sosend(fffffd805da7c7d8,0,ffff80001d71e498,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718120,4,ffff80001d71e498,0,ffff80001d71e580) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718120,ffff80001d71e530,ffff80001d71e580) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e600) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff1960, count: -10