login: panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *340503 30073 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824190f9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806371dc00,10fc,1b4,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(fffffd805da6e7d8,9,fffffd806371db00,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da6e7d8,0,ffff80001d6cac58,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d6cac58,0,ffff80001d6cad40) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d6cacf0,ffff80001d6cad40) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cadc0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca000, 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(ffffffff824190f9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806371dc00,10fc,1b4,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(fffffd805da6e7d8,9,fffffd806371db00,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da6e7d8,0,ffff80001d6cac58,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d6cac58,0,ffff80001d6cad40) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d6cacf0,ffff80001d6cad40) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cadc0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca000, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6ca720 rbx 0xffff80001d6ca7d0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8148f4df kprintf+0x15f r9 0x1 r10 0x2 r11 0xb02338ae9058b9d0 r12 0x3000000008 r13 0xffff80001d6ca730 r14 0x100 r15 0x1 rip 0xffffffff82231408 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6ca710 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=340503 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718600,0xffff80001d717290 process=0xffff8000ffff8ae0 user=0xffff80001d6c5000, 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 47528 319132 48783 0 3 0x80 nanosleep syz-executor.1 47528 150467 48783 0 3 0x4000080 pipewr syz-executor.1 47528 125374 48783 0 3 0x4000080 fsleep syz-executor.1 48783 522139 83226 0 3 0x82 nanosleep syz-executor.1 44373 501499 83226 0 2 0x2 syz-executor.0 83226 341306 83618 0 3 0x82 thrsleep syz-fuzzer 83226 354894 83618 0 2 0x4000002 syz-fuzzer 83226 213765 83618 0 3 0x4000082 thrsleep syz-fuzzer 83226 37458 83618 0 3 0x4000082 thrsleep syz-fuzzer 83226 479976 83618 0 3 0x4000082 thrsleep syz-fuzzer 83226 357237 83618 0 2 0x4000002 syz-fuzzer 83226 334277 83618 0 3 0x4000082 thrsleep syz-fuzzer 83226 209040 83618 0 3 0x4000082 thrsleep syz-fuzzer 83618 268131 30073 0 3 0x10008a pause ksh *30073 340503 48330 0 7 0x12 sshd 20612 392997 1 0 3 0x100083 ttyin getty 48330 422412 1 0 3 0x80 select sshd 97003 163521 34367 73 3 0x100090 kqread syslogd 34367 484120 1 0 3 0x100082 netio syslogd 34969 382333 1 77 3 0x100090 poll dhclient 4487 131897 1 0 3 0x80 poll dhclient 67046 214237 0 0 3 0x14200 bored smr 92350 414994 0 0 3 0x14200 pgzero zerothread 23396 253105 0 0 3 0x14200 aiodoned aiodoned 9697 378884 0 0 3 0x14200 syncer update 66868 498387 0 0 3 0x14200 cleaner cleaner 27754 154035 0 0 3 0x14200 reaper reaper 65573 243610 0 0 3 0x14200 pgdaemon pagedaemon 79505 239967 0 0 3 0x14200 bored crynlk 27764 276479 0 0 3 0x14200 bored crypto 95962 51414 0 0 3 0x40014200 acpi0 acpi0 72092 55434 0 0 2 0x14200 softnet 70585 11037 0 0 3 0x14200 bored systqmp 26540 335480 0 0 3 0x14200 bored systq 7839 321771 0 0 3 0x40014200 bored softclock 96928 61862 0 0 3 0x40014200 idle0 1 137705 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 9457 6327K 6840K 78643K 10624 0 pcb 14 8K 8K 78643K 38 0 rtable 88 3K 5K 78643K 224 0 ifaddr 40 9K 10K 78643K 52 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 29 0 iov 0 0K 12K 78643K 12 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1239 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 6 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 79 0 proc 47 38K 54K 78643K 367 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 4 0 in_multi 22 1K 2K 78643K 39 0 ether_multi 1 0K 0K 78643K 1 0 mrt 1 0K 0K 78643K 1 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 187 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 121 23K 31K 78643K 1053 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 4 0 NDP 6 0K 0K 78643K 11 0 temp 65 3847K 3911K 78643K 2015 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 2 1 0 1 1 0 8 0 rtpcb 80 25 0 23 1 0 1 1 0 8 0 rtentry 112 49 0 16 2 0 2 2 0 8 0 unpcb 120 41 0 33 1 0 1 1 0 8 0 syncache 264 8 0 8 2 1 1 1 0 8 1 tcpqe 32 124 0 124 1 0 1 1 0 8 1 tcpcb 544 30 0 26 1 0 1 1 0 8 0 inpcb 296 148 0 139 2 0 2 2 0 8 0 nd6 48 7 0 4 1 0 1 1 0 8 0 pfrktable 1344 6 0 6 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 212 0 68 13 0 13 13 0 8 3 art_table 32 213 0 68 2 0 2 2 0 8 0 art_node 16 48 0 18 1 0 1 1 0 8 0 semapl 112 4 0 0 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 1475 0 76 88 0 88 88 0 8 0 ffsino 240 1475 0 76 83 0 83 83 0 8 0 nchpl 144 1760 0 157 60 0 60 60 0 8 0 uvmvnodes 72 1531 0 0 28 0 28 28 0 8 0 vnodes 208 1531 0 0 81 0 81 81 0 8 0 namei 1024 4377 0 4377 1 0 1 1 0 8 1 pfiaddrpl 120 2 0 2 1 0 1 1 0 8 1 scxspl 192 5187 0 5187 1 0 1 1 0 8 1 plimitpl 152 14 0 7 1 0 1 1 0 8 0 sigapl 424 265 0 237 4 0 4 4 0 8 0 futexpl 56 1119 0 1118 1 0 1 1 0 8 0 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 20 0 18 1 0 1 1 0 8 0 pipepl 272 81 0 70 1 0 1 1 0 8 0 fdescpl 432 251 0 237 2 0 2 2 0 8 0 filepl 120 1341 0 1241 4 0 4 4 0 8 0 lockfpl 104 24 0 23 1 0 1 1 0 8 0 lockfspl 48 5 0 4 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 66 0 59 1 0 1 1 0 8 0 zombiepl 144 237 0 237 1 0 1 1 0 8 1 processpl 920 265 0 237 4 0 4 4 0 8 0 procpl 624 337 0 300 4 0 4 4 0 8 1 sockpl 400 214 0 195 4 0 4 4 0 8 2 mcl64k 65536 3 0 3 1 0 1 1 0 8 1 mcl16k 16384 3 0 3 1 0 1 1 0 8 1 mcl12k 12288 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 2 0 1 1 0 1 1 0 8 0 mcl4k 4096 16 0 16 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 75051 0 75000 17 2 15 15 0 8 8 mtagpl 96 12 0 2 2 1 1 1 0 8 0 mbufpl 256 119569 0 119470 16 3 13 13 0 8 3 bufpl 280 3393 0 124 234 0 234 234 0 8 0 anonpl 16 43445 0 27532 72 1 71 71 0 107 6 amapchunkpl 152 1279 0 1147 11 0 11 11 0 158 5 amappl16 192 1194 0 309 45 0 45 45 0 8 0 amappl15 184 26 0 24 1 0 1 1 0 8 0 amappl14 176 23 0 19 1 0 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 14 0 14 1 0 1 1 0 8 1 amappl11 152 47 0 38 1 0 1 1 0 8 0 amappl10 144 37 0 30 1 0 1 1 0 8 0 amappl9 136 402 0 399 1 0 1 1 0 8 0 amappl8 128 313 0 277 2 0 2 2 0 8 0 amappl7 120 129 0 117 1 0 1 1 0 8 0 amappl6 112 25 0 19 1 0 1 1 0 8 0 amappl5 104 178 0 166 1 0 1 1 0 8 0 amappl4 96 422 0 394 1 0 1 1 0 8 0 amappl3 88 105 0 99 1 0 1 1 0 8 0 amappl2 80 1153 0 1089 2 0 2 2 0 8 0 amappl1 72 14332 0 13921 22 7 15 17 0 8 6 amappl 80 578 0 536 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 251 0 237 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 251 0 237 1 0 1 1 0 8 0 vmmpekpl 168 5926 0 5898 2 0 2 2 0 8 0 vmmpepl 168 37664 0 35706 121 3 118 118 0 357 31 vmsppl 272 250 0 237 2 0 2 2 0 8 1 pdppl 4096 508 0 474 6 0 6 6 0 8 1 pvpl 32 140151 0 121250 171 0 171 171 0 265 17 pmappl 200 250 0 237 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 248 0 8 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(ffffffff824190f9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806371dc00,10fc,1b4,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(fffffd805da6e7d8,9,fffffd806371db00,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da6e7d8,0,ffff80001d6cac58,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d6cac58,0,ffff80001d6cad40) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d6cacf0,ffff80001d6cad40) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cadc0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca000, 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(ffffffff824190f9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd806371dc00,10fc,1b4,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(fffffd805da6e7d8,9,fffffd806371db00,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da6e7d8,0,ffff80001d6cac58,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d6cac58,0,ffff80001d6cad40) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d6cacf0,ffff80001d6cad40) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cadc0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca000, count: -10