login: panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *458873 57214 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241cac9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e23e800,d3c,56c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac4760) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6c008,9,fffffd805e23e700,0,0,ffff80001d71c9d0) at tcp_usrreq+0xa54 sosend(fffffd805da6c008,0,ffff80001d723768,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c9d0,4,ffff80001d723768,0,ffff80001d723850) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c9d0,ffff80001d723800,ffff80001d723850) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d7238d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc130, 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(ffffffff8241cac9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e23e800,d3c,56c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac4760) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6c008,9,fffffd805e23e700,0,0,ffff80001d71c9d0) at tcp_usrreq+0xa54 sosend(fffffd805da6c008,0,ffff80001d723768,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c9d0,4,ffff80001d723768,0,ffff80001d723850) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c9d0,ffff80001d723800,ffff80001d723850) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d7238d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc130, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d723230 rbx 0xffff80001d7232e0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8140a10f kprintf+0x15f r9 0x1 r10 0x2 r11 0x8b137eb29da2592 r12 0x3000000008 r13 0xffff80001d723240 r14 0x100 r15 0x1 rip 0xffffffff814764a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d723220 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=458873 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d600,0xffff80001d71c290 process=0xffff80001d707238 user=0xffff80001d71e000, vmspace=0xfffffd806bc0a990 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 88048 439267 66424 0 2 0 syz-executor.0 88048 513198 66424 0 3 0x4000080 piperd syz-executor.0 66424 307588 5252 0 3 0x82 nanosleep syz-executor.0 12840 427668 5252 0 2 0x2 syz-executor.1 5252 65248 34879 0 3 0x82 thrsleep syz-fuzzer 5252 487199 34879 0 2 0x4000002 syz-fuzzer 5252 464734 34879 0 3 0x4000082 thrsleep syz-fuzzer 5252 77062 34879 0 3 0x4000082 thrsleep syz-fuzzer 5252 274857 34879 0 3 0x4000082 thrsleep syz-fuzzer 5252 221560 34879 0 2 0x4000002 syz-fuzzer 5252 190943 34879 0 3 0x4000082 thrsleep syz-fuzzer 34879 511499 57214 0 3 0x10008a pause ksh *57214 458873 38740 0 7 0x12 sshd 91095 7477 1 0 3 0x100083 ttyin getty 38740 165715 1 0 3 0x80 select sshd 91555 339471 2034 73 3 0x100090 kqread syslogd 2034 92395 1 0 3 0x100082 netio syslogd 1387 159718 1 77 3 0x100090 poll dhclient 98932 183352 1 0 3 0x80 poll dhclient 36135 259107 0 0 3 0x14200 bored smr 33285 473546 0 0 2 0x14200 zerothread 20269 143364 0 0 3 0x14200 aiodoned aiodoned 45378 148464 0 0 3 0x14200 syncer update 44909 271222 0 0 3 0x14200 cleaner cleaner 32106 71653 0 0 3 0x14200 reaper reaper 24008 405384 0 0 3 0x14200 pgdaemon pagedaemon 39364 197160 0 0 3 0x14200 bored crynlk 88431 364221 0 0 3 0x14200 bored crypto 24639 284030 0 0 3 0x40014200 acpi0 acpi0 39317 234133 0 0 2 0x14200 softnet 47752 484153 0 0 3 0x14200 bored systqmp 78973 118945 0 0 3 0x14200 bored systq 76915 155514 0 0 3 0x40014200 bored softclock 42516 64832 0 0 3 0x40014200 idle0 1 445786 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 9450 6324K 6331K 78643K 10571 0 pcb 13 8K 8K 78643K 21 0 rtable 108 3K 4K 78643K 215 0 ifaddr 39 10K 11K 78643K 59 0 counters 21 16K 17K 78643K 25 0 ioctlops 0 0K 2K 78643K 23 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1231 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 0K 0K 78643K 2 0 sem 8 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 55 0 sigio 1 0K 0K 78643K 13 0 proc 47 38K 54K 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 33 2K 2K 78643K 35 0 ether_multi 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 0 exec 0 0K 1K 78643K 185 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 118 22K 23K 78643K 984 0 UVM aobj 5 2K 2K 78643K 5 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 13 0 temp 60 3847K 3911K 78643K 1822 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 45 0 1 2 0 2 2 0 8 0 unpcb 120 31 0 23 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 168 0 168 1 0 1 1 0 8 1 tcpcb 544 24 0 20 1 0 1 1 0 8 0 inpcb 296 84 0 77 2 0 2 2 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 0 1 1 0 8 1 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 3 0 3 1 0 1 1 0 8 1 semapl 112 6 0 0 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 1449 0 51 88 0 88 88 0 8 0 ffsino 240 1449 0 51 83 0 83 83 0 8 0 nchpl 144 1692 0 89 60 0 60 60 0 8 0 uvmvnodes 72 1496 0 0 28 0 28 28 0 8 0 vnodes 208 1496 0 0 79 0 79 79 0 8 0 namei 1024 4162 0 4162 1 0 1 1 0 8 1 scxspl 192 4718 0 4718 1 0 1 1 0 8 1 plimitpl 152 14 0 7 1 0 1 1 0 8 0 sigapl 424 241 0 213 4 0 4 4 0 8 0 futexpl 56 542 0 542 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 6 0 4 1 0 1 1 0 8 0 pipepl 272 97 0 86 2 0 2 2 0 8 1 fdescpl 432 227 0 213 2 0 2 2 0 8 0 filepl 120 1172 0 1073 4 0 4 4 0 8 1 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 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 48 0 41 1 0 1 1 0 8 0 zombiepl 144 213 0 213 1 0 1 1 0 8 1 processpl 928 241 0 213 4 0 4 4 0 8 0 procpl 624 272 0 237 4 0 4 4 0 8 1 sockpl 400 134 0 117 4 0 4 4 0 8 2 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 10 2 1 1 1 0 8 1 mcl2k 2048 92728 0 92687 19 6 13 17 0 8 7 mtagpl 96 2 0 2 1 1 0 1 0 8 0 mbufpl 256 146520 0 146439 11 1 10 10 0 8 3 bufpl 280 3297 0 126 227 0 227 227 0 8 0 anonpl 16 43657 0 23707 82 1 81 81 0 107 0 amapchunkpl 152 1166 0 1014 8 0 8 8 0 158 2 amappl16 192 1283 0 187 56 0 56 56 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 26 0 22 1 0 1 1 0 8 0 amappl13 168 27 0 23 1 0 1 1 0 8 0 amappl12 160 32 0 26 1 0 1 1 0 8 0 amappl11 152 66 0 54 1 0 1 1 0 8 0 amappl10 144 14 0 9 1 0 1 1 0 8 0 amappl9 136 360 0 359 1 0 1 1 0 8 0 amappl8 128 317 0 280 2 0 2 2 0 8 0 amappl7 120 106 0 93 1 0 1 1 0 8 0 amappl6 112 34 0 28 1 0 1 1 0 8 0 amappl5 104 198 0 187 1 0 1 1 0 8 0 amappl4 96 424 0 395 1 0 1 1 0 8 0 amappl3 88 103 0 95 1 0 1 1 0 8 0 amappl2 80 995 0 929 2 0 2 2 0 8 0 amappl1 72 13788 0 13372 23 8 15 17 0 8 6 amappl 80 520 0 477 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 227 0 213 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 227 0 213 1 0 1 1 0 8 0 vmmpekpl 168 5784 0 5757 2 0 2 2 0 8 0 vmmpepl 168 35451 0 33255 117 5 112 112 0 357 11 vmsppl 272 226 0 213 2 0 2 2 0 8 1 pdppl 4096 460 0 426 6 0 6 6 0 8 1 pvpl 32 137021 0 114100 187 0 187 187 0 265 1 pmappl 200 226 0 213 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 242 0 10 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(ffffffff8241cac9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e23e800,d3c,56c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac4760) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6c008,9,fffffd805e23e700,0,0,ffff80001d71c9d0) at tcp_usrreq+0xa54 sosend(fffffd805da6c008,0,ffff80001d723768,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c9d0,4,ffff80001d723768,0,ffff80001d723850) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c9d0,ffff80001d723800,ffff80001d723850) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d7238d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc130, 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(ffffffff8241cac9) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e23e800,d3c,56c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac4760) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6c008,9,fffffd805e23e700,0,0,ffff80001d71c9d0) at tcp_usrreq+0xa54 sosend(fffffd805da6c008,0,ffff80001d723768,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c9d0,4,ffff80001d723768,0,ffff80001d723850) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c9d0,ffff80001d723800,ffff80001d723850) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d7238d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc130, count: -10