panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *220113 16627 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241b778) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805a9cee00,334,41c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da69648,9,fffffd805a9ced00,0,0,ffff80001d718390) at tcp_usrreq+0xa54 sosend(fffffd805da69648,0,ffff80001d6cabe8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718390,4,ffff80001d6cabe8,0,ffff80001d6cacd0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718390,ffff80001d6cac80,ffff80001d6cacd0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cad50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd2050, 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(ffffffff8241b778) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805a9cee00,334,41c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da69648,9,fffffd805a9ced00,0,0,ffff80001d718390) at tcp_usrreq+0xa54 sosend(fffffd805da69648,0,ffff80001d6cabe8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718390,4,ffff80001d6cabe8,0,ffff80001d6cacd0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718390,ffff80001d6cac80,ffff80001d6cacd0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cad50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd2050, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6ca6b0 rbx 0xffff80001d6ca760 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81e150bf kprintf+0x15f r9 0x1 r10 0x2 r11 0x9135f4b42c526175 r12 0x3000000008 r13 0xffff80001d6ca6c0 r14 0x100 r15 0x1 rip 0xffffffff812acc18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6ca6a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=220113 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718ae0,0xffff80001d717c50 process=0xffff8000ffff8e78 user=0xffff80001d6c5000, vmspace=0xfffffd806bc09aa0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92541 480627 0 0 3 0x14200 bored sosplice 72747 208936 73298 0 3 0x80 nanosleep syz-executor.1 72747 171413 73298 0 3 0x4000080 netcon2 syz-executor.1 72747 149849 73298 0 3 0x4000080 fsleep syz-executor.1 43144 42054 20417 0 2 0x2 syz-executor.0 73298 217010 20417 0 3 0x82 nanosleep syz-executor.1 20417 467369 9615 0 3 0x82 thrsleep syz-fuzzer 20417 65021 9615 0 2 0x4000002 syz-fuzzer 20417 134328 9615 0 3 0x4000082 thrsleep syz-fuzzer 20417 232331 9615 0 3 0x4000082 thrsleep syz-fuzzer 20417 328295 9615 0 3 0x4000082 thrsleep syz-fuzzer 20417 17765 9615 0 2 0x4000002 syz-fuzzer 20417 29256 9615 0 3 0x4000082 thrsleep syz-fuzzer 9615 127954 16627 0 3 0x10008a pause ksh *16627 220113 13136 0 7 0x12 sshd 98159 185816 1 0 3 0x100083 ttyin getty 13136 10218 1 0 3 0x80 select sshd 7837 222003 1307 73 3 0x100090 kqread syslogd 1307 375657 1 0 3 0x100082 netio syslogd 22640 186816 1 77 3 0x100090 poll dhclient 84905 483948 1 0 3 0x80 poll dhclient 14959 124420 0 0 3 0x14200 bored smr 43314 367011 0 0 3 0x14200 pgzero zerothread 9504 464081 0 0 3 0x14200 aiodoned aiodoned 46996 2098 0 0 3 0x14200 syncer update 97601 203308 0 0 3 0x14200 cleaner cleaner 72378 385210 0 0 3 0x14200 reaper reaper 32880 495504 0 0 3 0x14200 pgdaemon pagedaemon 23506 348163 0 0 3 0x14200 bored crynlk 55446 226794 0 0 3 0x14200 bored crypto 70708 25386 0 0 3 0x40014200 acpi0 acpi0 54662 379053 0 0 3 0x14200 bored softnet 92210 367363 0 0 3 0x14200 bored systqmp 40672 147343 0 0 3 0x14200 bored systq 2962 217634 0 0 3 0x40014200 bored softclock 63551 267993 0 0 3 0x40014200 idle0 1 300672 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 9474 6333K 6591K 78643K 10676 0 pcb 13 8K 8K 78643K 29 0 rtable 113 4K 5K 78643K 225 0 ifaddr 57 12K 13K 78643K 67 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 4K 78643K 31 0 iov 0 0K 12K 78643K 12 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1249 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 8 0K 0K 78643K 14 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 90 0 proc 48 38K 63K 78643K 359 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 46 2K 2K 78643K 51 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 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 113 22K 38K 78643K 1064 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 1K 78643K 26 0 NDP 8 0K 0K 78643K 13 0 temp 77 3850K 3914K 78643K 3967 0 kqueue 3 4K 6K 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 21 0 19 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 71 0 63 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 424 0 424 1 1 0 1 0 8 0 tcpcb 544 35 0 30 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 45 0 45 1 0 1 1 0 8 1 inpcb 296 182 0 173 2 0 2 2 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 pfrktable 1344 5 0 3 1 0 1 1 0 8 0 pfrule 1360 6 0 4 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 44 0 4 1 0 1 1 0 8 0 semupl 112 2 0 2 2 1 1 1 0 8 1 semapl 112 10 0 4 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 1492 0 95 88 0 88 88 0 8 0 ffsino 240 1492 0 95 83 0 83 83 0 8 0 nchpl 144 1782 0 179 60 0 60 60 0 8 0 uvmvnodes 72 1555 0 0 29 0 29 29 0 8 0 vnodes 208 1555 0 0 82 0 82 82 0 8 0 namei 1024 4458 0 4458 2 1 1 1 0 8 1 vmpool 528 2 0 2 1 1 0 1 0 8 0 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 scxspl 192 5359 0 5359 1 0 1 1 0 8 1 plimitpl 152 18 0 11 1 0 1 1 0 8 0 sigapl 424 277 0 248 4 0 4 4 0 8 0 futexpl 56 1305 0 1304 1 0 1 1 0 8 0 knotepl 112 65 0 46 1 0 1 1 0 8 0 kqueuepl 144 10 0 8 1 0 1 1 0 8 0 pipepl 272 84 0 74 1 0 1 1 0 8 0 fdescpl 432 262 0 248 2 0 2 2 0 8 0 filepl 120 1439 0 1342 4 0 4 4 0 8 1 lockfpl 104 35 0 34 1 0 1 1 0 8 0 lockfspl 48 14 0 13 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 80 0 72 1 0 1 1 0 8 0 zombiepl 144 248 0 248 2 1 1 1 0 8 1 processpl 920 277 0 248 4 0 4 4 0 8 0 procpl 624 360 0 323 4 0 4 4 0 8 1 sosppl 128 1 0 0 1 0 1 1 0 8 0 sockpl 400 274 0 255 4 0 4 4 0 8 2 mcl64k 65536 5 0 5 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 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 78372 0 78318 19 9 10 16 0 8 2 mtagpl 96 14 0 2 2 1 1 1 0 8 0 mbufpl 256 124778 0 124660 21 3 18 18 0 8 7 bufpl 280 3489 0 126 241 0 241 241 0 8 0 anonpl 16 42073 0 26467 65 1 64 64 0 107 0 amapchunkpl 152 1266 0 1137 8 2 6 8 0 158 0 amappl16 192 1208 0 338 45 0 45 45 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 57 0 50 1 0 1 1 0 8 0 amappl13 168 56 0 50 1 0 1 1 0 8 0 amappl12 160 11 0 10 1 0 1 1 0 8 0 amappl11 152 80 0 70 1 0 1 1 0 8 0 amappl10 144 25 0 19 1 0 1 1 0 8 0 amappl9 136 378 0 377 1 0 1 1 0 8 0 amappl8 128 316 0 280 2 0 2 2 0 8 0 amappl7 120 107 0 95 1 0 1 1 0 8 0 amappl6 112 52 0 47 1 0 1 1 0 8 0 amappl5 104 165 0 154 1 0 1 1 0 8 0 amappl4 96 474 0 447 1 0 1 1 0 8 0 amappl3 88 104 0 97 1 0 1 1 0 8 0 amappl2 80 1265 0 1202 2 0 2 2 0 8 0 amappl1 72 14486 0 14062 24 15 9 17 0 8 0 amappl 80 600 0 559 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 264 0 250 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 264 0 250 1 0 1 1 0 8 0 vmmpekpl 168 6038 0 6013 2 0 2 2 0 8 0 vmmpepl 168 38973 0 37018 118 14 104 108 0 357 17 vmsppl 272 263 0 250 2 1 1 2 0 8 0 pdppl 4096 534 0 500 6 1 5 6 0 8 0 pvpl 32 139500 0 120925 156 0 156 156 0 265 5 pmappl 200 263 0 250 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 255 0 19 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(ffffffff8241b778) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805a9cee00,334,41c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da69648,9,fffffd805a9ced00,0,0,ffff80001d718390) at tcp_usrreq+0xa54 sosend(fffffd805da69648,0,ffff80001d6cabe8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718390,4,ffff80001d6cabe8,0,ffff80001d6cacd0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718390,ffff80001d6cac80,ffff80001d6cacd0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cad50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd2050, 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(ffffffff8241b778) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805a9cee00,334,41c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da69648,9,fffffd805a9ced00,0,0,ffff80001d718390) at tcp_usrreq+0xa54 sosend(fffffd805da69648,0,ffff80001d6cabe8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718390,4,ffff80001d6cabe8,0,ffff80001d6cacd0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718390,ffff80001d6cac80,ffff80001d6cacd0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cad50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd2050, count: -10