login: panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *106326 78244 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82418d11) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e8ed600,114,d4,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(fffffd805da774b8,9,fffffd805e8ed200,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da774b8,0,ffff80001d6ca7d8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6ca7d8,0,ffff80001d6ca8c0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6ca870,ffff80001d6ca8c0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca940) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeee50, 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(ffffffff82418d11) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e8ed600,114,d4,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(fffffd805da774b8,9,fffffd805e8ed200,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da774b8,0,ffff80001d6ca7d8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6ca7d8,0,ffff80001d6ca8c0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6ca870,ffff80001d6ca8c0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca940) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeee50, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6ca2a0 rbx 0xffff80001d6ca350 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff821f0d5f kprintf+0x15f r9 0x1 r10 0x2 r11 0x786bec06c8a1bf14 r12 0x3000000008 r13 0xffff80001d6ca2b0 r14 0x100 r15 0x1 rip 0xffffffff8230ee18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6ca290 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=106326 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718600,0xffff80001d717290 process=0xffff8000ffff8e78 user=0xffff80001d6c5000, vmspace=0xfffffd806bc09770 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 11282 147332 41281 0 2 0 syz-executor.1 11282 459642 41281 0 2 0x4000000 syz-executor.1 59667 150850 0 0 3 0x14200 bored sosplice 91673 394649 24788 0 2 0x2 syz-executor.0 41281 185288 24788 0 3 0x82 nanosleep syz-executor.1 24788 31247 24712 0 3 0x82 thrsleep syz-fuzzer 24788 489285 24712 0 2 0x4000002 syz-fuzzer 24788 477502 24712 0 3 0x4000082 thrsleep syz-fuzzer 24788 305170 24712 0 3 0x4000082 thrsleep syz-fuzzer 24788 183394 24712 0 3 0x4000082 thrsleep syz-fuzzer 24788 14781 24712 0 3 0x4000082 thrsleep syz-fuzzer 24788 253763 24712 0 3 0x4000082 thrsleep syz-fuzzer 24788 519807 24712 0 2 0x4000002 syz-fuzzer 24712 466448 78244 0 3 0x10008a pause ksh *78244 106326 63845 0 7 0x12 sshd 49787 268240 1 0 3 0x100083 ttyin getty 63845 9289 1 0 3 0x80 select sshd 75931 337811 21248 73 3 0x100090 kqread syslogd 21248 201903 1 0 3 0x100082 netio syslogd 11614 176308 1 77 3 0x100090 poll dhclient 43691 28277 1 0 3 0x80 poll dhclient 79014 291724 0 0 3 0x14200 bored smr 94145 487344 0 0 2 0x14200 zerothread 2971 153817 0 0 3 0x14200 aiodoned aiodoned 78272 142569 0 0 3 0x14200 syncer update 64155 444634 0 0 3 0x14200 cleaner cleaner 86646 95895 0 0 3 0x14200 reaper reaper 38035 352497 0 0 3 0x14200 pgdaemon pagedaemon 49904 133005 0 0 3 0x14200 bored crynlk 79953 48775 0 0 3 0x14200 bored crypto 73424 238290 0 0 3 0x40014200 acpi0 acpi0 62301 85100 0 0 3 0x14200 bored softnet 14886 13502 0 0 3 0x14200 bored systqmp 96108 186830 0 0 3 0x14200 bored systq 85477 348046 0 0 3 0x40014200 bored softclock 98357 11930 0 0 3 0x40014200 idle0 1 319749 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 9475 6334K 6459K 78643K 10599 0 pcb 13 8K 8K 78643K 19 0 rtable 105 3K 3K 78643K 196 0 ifaddr 54 12K 12K 78643K 59 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 23 0 iov 0 0K 12K 78643K 8 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1236 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 4 0K 0K 78643K 4 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 61 0 proc 48 38K 63K 78643K 364 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 40 2K 2K 78643K 40 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 181 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 120 22K 23K 78643K 981 0 UVM aobj 8 4K 4K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 8 0K 0K 78643K 12 0 temp 75 3848K 3912K 78643K 1901 0 kqueue 3 4K 6K 78643K 7 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 4 0 4 1 1 0 1 0 8 0 tcpqe 32 545 0 545 1 1 0 1 0 8 0 tcpcb 544 18 0 14 1 0 1 1 0 8 0 inpcb 296 58 0 51 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 pfrule 1360 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 187 0 0 12 0 12 12 0 8 0 art_table 32 188 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semapl 112 2 0 0 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1457 0 57 88 0 88 88 0 8 0 ffsino 240 1457 0 57 83 0 83 83 0 8 0 nchpl 144 1736 0 132 60 0 60 60 0 8 0 uvmvnodes 72 1508 0 0 28 0 28 28 0 8 0 vnodes 208 1508 0 0 80 0 80 80 0 8 0 namei 1024 4313 0 4312 2 1 1 1 0 8 0 scxspl 192 4937 0 4937 1 0 1 1 0 8 1 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 248 0 219 4 0 4 4 0 8 0 futexpl 56 605 0 605 2 1 1 1 0 8 1 knotepl 112 65 0 46 1 0 1 1 0 8 0 kqueuepl 144 8 0 6 1 0 1 1 0 8 0 pipelkpl 16 76 0 66 1 0 1 1 0 8 0 pipepl 120 152 0 133 1 0 1 1 0 8 0 fdescpl 432 233 0 219 2 0 2 2 0 8 0 filepl 120 1210 0 1114 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 88 0 81 1 0 1 1 0 8 0 zombiepl 144 219 0 219 1 0 1 1 0 8 1 processpl 920 248 0 219 4 0 4 4 0 8 0 procpl 624 291 0 254 5 1 4 4 0 8 1 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 110 0 93 4 1 3 3 0 8 1 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl4k 4096 9 0 9 2 2 0 1 0 8 0 mcl2k 2048 74489 0 74430 22 9 13 18 0 8 3 mtagpl 96 4 0 2 2 1 1 1 0 8 0 mbufpl 256 118459 0 118347 13 3 10 12 0 8 0 bufpl 280 3303 0 125 227 0 227 227 0 8 0 anonpl 16 38053 0 22573 66 2 64 64 0 107 0 amapchunkpl 152 1065 0 937 8 2 6 8 0 158 0 amappl16 192 1072 0 223 44 0 44 44 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 27 0 23 1 0 1 1 0 8 0 amappl13 168 54 0 47 1 0 1 1 0 8 0 amappl12 160 21 0 19 2 1 1 1 0 8 0 amappl11 152 56 0 46 1 0 1 1 0 8 0 amappl10 144 14 0 7 1 0 1 1 0 8 0 amappl9 136 372 0 371 1 0 1 1 0 8 0 amappl8 128 311 0 275 2 0 2 2 0 8 0 amappl7 120 109 0 97 1 0 1 1 0 8 0 amappl6 112 24 0 18 1 0 1 1 0 8 0 amappl5 104 169 0 160 1 0 1 1 0 8 0 amappl4 96 434 0 403 1 0 1 1 0 8 0 amappl3 88 113 0 105 1 0 1 1 0 8 0 amappl2 80 1026 0 962 2 0 2 2 0 8 0 amappl1 72 14084 0 13671 23 14 9 17 0 8 0 amappl 80 513 0 472 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 233 0 219 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 233 0 219 1 0 1 1 0 8 0 vmmpekpl 168 5833 0 5808 2 0 2 2 0 8 0 vmmpepl 168 35488 0 33559 115 8 107 111 0 357 23 vmsppl 272 232 0 219 2 1 1 2 0 8 0 pdppl 4096 472 0 438 6 1 5 6 0 8 0 pvpl 32 129667 0 111241 157 1 156 156 0 265 6 pmappl 200 232 0 219 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 248 0 22 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(ffffffff82418d11) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e8ed600,114,d4,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(fffffd805da774b8,9,fffffd805e8ed200,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da774b8,0,ffff80001d6ca7d8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6ca7d8,0,ffff80001d6ca8c0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6ca870,ffff80001d6ca8c0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca940) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeee50, 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(ffffffff82418d11) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e8ed600,114,d4,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(fffffd805da774b8,9,fffffd805e8ed200,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da774b8,0,ffff80001d6ca7d8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6ca7d8,0,ffff80001d6ca8c0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6ca870,ffff80001d6ca8c0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca940) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeee50, count: -10