panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *279456 25990 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8242019c) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805bcacf00,32c,3dc,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da71648,9,fffffd805bcace00,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da71648,0,ffff80001d723678,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d723678,0,ffff80001d723760) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d723710,ffff80001d723760) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d7237e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6030, 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(ffffffff8242019c) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805bcacf00,32c,3dc,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da71648,9,fffffd805bcace00,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da71648,0,ffff80001d723678,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d723678,0,ffff80001d723760) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d723710,ffff80001d723760) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d7237e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6030, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d723140 rbx 0xffff80001d7231f0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81cace1f kprintf+0x15f r9 0x1 r10 0x2 r11 0x85553c7eac4f7ea3 r12 0x3000000008 r13 0xffff80001d723150 r14 0x100 r15 0x1 rip 0xffffffff81ebd538 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d723130 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=279456 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d870,0xffff80001d71c500 process=0xffff80001d700af8 user=0xffff80001d71e000, vmspace=0xfffffd806bc0a880 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 72144 439257 0 0 3 0x14200 acct acct 63395 410449 99188 0 2 0x2 syz-executor.1 57665 221187 99188 0 3 0x82 piperd syz-executor.0 99188 203752 50836 0 3 0x82 thrsleep syz-fuzzer 99188 397931 50836 0 3 0x4000082 nanosleep syz-fuzzer 99188 440917 50836 0 3 0x4000082 thrsleep syz-fuzzer 99188 89366 50836 0 3 0x4000082 thrsleep syz-fuzzer 99188 478366 50836 0 3 0x4000082 thrsleep syz-fuzzer 99188 225447 50836 0 3 0x4000082 thrsleep syz-fuzzer 99188 265329 50836 0 3 0x4000082 thrsleep syz-fuzzer 99188 406958 50836 0 2 0x4000002 syz-fuzzer 50836 234723 25990 0 3 0x10008a pause ksh *25990 279456 67537 0 7 0x12 sshd 73445 68486 1 0 3 0x100083 ttyin getty 67537 441628 1 0 3 0x80 select sshd 43209 295548 62764 73 3 0x100090 kqread syslogd 62764 214737 1 0 3 0x100082 netio syslogd 42868 253503 1 77 3 0x100090 poll dhclient 85875 114205 1 0 3 0x80 poll dhclient 41882 373898 0 0 3 0x14200 bored smr 43497 82380 0 0 2 0x14200 zerothread 5767 216736 0 0 3 0x14200 aiodoned aiodoned 92069 307574 0 0 3 0x14200 syncer update 88237 461751 0 0 3 0x14200 cleaner cleaner 80020 406 0 0 3 0x14200 reaper reaper 28930 113101 0 0 3 0x14200 pgdaemon pagedaemon 52681 328471 0 0 3 0x14200 bored crynlk 14793 131322 0 0 3 0x14200 bored crypto 31239 303022 0 0 3 0x40014200 acpi0 acpi0 22795 409392 0 0 3 0x14200 bored softnet 75038 144698 0 0 3 0x14200 bored systqmp 97443 252628 0 0 3 0x14200 bored systq 54130 276401 0 0 3 0x40014200 bored softclock 13081 513416 0 0 3 0x40014200 idle0 1 321203 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 9470 6330K 6777K 78643K 10735 0 pcb 13 8K 8K 78643K 35 0 rtable 94 4K 6K 78643K 330 0 ifaddr 58 13K 13K 78643K 106 0 counters 21 16K 17K 78643K 26 0 ioctlops 0 0K 4K 78643K 51 0 iov 0 0K 12K 78643K 20 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1289 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 40 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 242 0 sigio 0 0K 0K 78643K 2 0 proc 49 38K 54K 78643K 370 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 37 0 in_multi 46 2K 2K 78643K 54 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 203 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 129 55K 56K 78643K 1498 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 26 0 NDP 7 0K 0K 78643K 16 0 temp 81 3852K 3931K 78643K 3081 0 kqueue 3 4K 8K 78643K 9 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 7 0 1 1 0 1 1 0 8 0 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 51 0 17 2 0 2 2 0 8 0 unpcb 120 81 0 73 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 71 0 71 1 1 0 1 0 8 0 tcpcb 544 419 0 415 3 2 1 2 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 8 0 8 1 1 0 1 0 8 0 inpcb 296 565 0 558 3 1 2 2 0 8 1 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pfstscr 40 4 0 3 1 0 1 1 0 8 0 pfrktable 1344 35 0 32 1 0 1 1 0 8 0 pftag 88 4 0 3 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 8 0 6 1 0 1 1 0 8 0 pfstate 328 4 0 3 1 0 1 1 0 8 0 pfrule 1360 12 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 228 0 44 12 0 12 12 0 8 0 art_table 32 229 0 44 2 0 2 2 0 8 0 art_node 16 50 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 3 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 36 0 26 1 0 1 1 0 8 0 shmpl 112 5 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1688 0 291 88 0 88 88 0 8 0 ffsino 240 1688 0 291 83 0 83 83 0 8 0 nchpl 144 2207 0 605 60 0 60 60 0 8 0 uvmvnodes 72 1781 0 0 33 0 33 33 0 8 0 vnodes 208 1781 0 0 94 0 94 94 0 8 0 namei 1024 5624 0 5624 2 1 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 4 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 12 0 10 1 0 1 1 0 8 0 scxspl 192 6407 0 6407 1 0 1 1 0 8 1 plimitpl 152 30 0 23 1 0 1 1 0 8 0 sigapl 424 429 0 401 4 0 4 4 0 8 0 futexpl 56 4535 0 4535 2 1 1 1 0 8 1 knotepl 112 69 0 50 1 0 1 1 0 8 0 kqueuepl 144 20 0 18 1 0 1 1 0 8 0 pipepl 272 95 0 85 1 0 1 1 0 8 0 fdescpl 432 414 0 401 2 0 2 2 0 8 0 filepl 120 2316 0 2221 5 1 4 4 0 8 1 lockfpl 104 36 0 35 1 0 1 1 0 8 0 lockfspl 48 12 0 11 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 21 0 11 1 0 1 1 0 8 0 ucredpl 96 161 0 154 1 0 1 1 0 8 0 zombiepl 144 401 0 401 2 1 1 1 0 8 1 processpl 928 429 0 401 4 0 4 4 0 8 0 procpl 624 764 0 729 5 1 4 4 0 8 0 sockpl 400 675 0 658 5 2 3 4 0 8 1 mcl64k 65536 7 0 7 2 2 0 1 0 8 0 mcl16k 16384 3 0 3 2 2 0 1 0 8 0 mcl12k 12288 6 0 6 3 2 1 1 0 8 1 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 8 0 8 3 2 1 1 0 8 1 mcl4k 4096 31 0 31 3 2 1 1 0 8 1 mcl2k2 2112 2 0 2 2 2 0 1 0 8 0 mcl2k 2048 92802 0 92754 17 10 7 15 0 8 0 mtagpl 96 13 0 2 2 1 1 1 0 8 0 mbufpl 256 147657 0 147544 13 5 8 9 0 8 0 bufpl 280 3594 0 127 248 0 248 248 0 8 0 anonpl 16 67744 0 50900 99 23 76 81 0 107 5 amapchunkpl 152 2415 0 2285 16 5 11 11 0 158 5 amappl16 192 2393 0 1463 68 21 47 56 0 8 0 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 133 0 128 1 0 1 1 0 8 0 amappl13 168 27 0 24 1 0 1 1 0 8 0 amappl12 160 16 0 14 1 0 1 1 0 8 0 amappl11 152 148 0 137 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 389 0 387 1 0 1 1 0 8 0 amappl8 128 325 0 282 2 0 2 2 0 8 0 amappl7 120 107 0 94 1 0 1 1 0 8 0 amappl6 112 128 0 119 1 0 1 1 0 8 0 amappl5 104 335 0 325 1 0 1 1 0 8 0 amappl4 96 422 0 395 1 0 1 1 0 8 0 amappl3 88 216 0 210 1 0 1 1 0 8 0 amappl2 80 2500 0 2444 2 0 2 2 0 8 0 amappl1 72 19107 0 18712 24 15 9 17 0 8 0 amappl 80 1008 0 967 2 1 1 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 418 0 401 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 418 0 401 1 0 1 1 0 8 0 vmmpekpl 168 6881 0 6850 2 0 2 2 0 8 0 vmmpepl 168 58815 0 56884 142 46 96 118 0 357 7 vmsppl 272 417 0 401 2 0 2 2 0 8 0 pdppl 4096 842 0 806 7 1 6 6 0 8 1 pvpl 32 190369 0 170617 225 45 180 191 0 265 18 pmappl 200 417 0 401 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 255 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(ffffffff8242019c) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805bcacf00,32c,3dc,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da71648,9,fffffd805bcace00,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da71648,0,ffff80001d723678,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d723678,0,ffff80001d723760) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d723710,ffff80001d723760) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d7237e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6030, 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(ffffffff8242019c) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805bcacf00,32c,3dc,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da71648,9,fffffd805bcace00,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da71648,0,ffff80001d723678,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d723678,0,ffff80001d723760) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d723710,ffff80001d723760) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d7237e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6030, count: -10