panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 37964 84307 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241e349) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805891c100,4b4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2ee0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da75008,9,fffffd805891c000,0,0,ffff80001d71c4f0) at tcp_usrreq+0xa54 sosend(fffffd805da75008,0,ffff80001d723b28,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c4f0,4,ffff80001d723b28,0,ffff80001d723c10) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c4f0,ffff80001d723bc0,ffff80001d723c10) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723c90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc600, 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(ffffffff8241e349) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805891c100,4b4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2ee0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da75008,9,fffffd805891c000,0,0,ffff80001d71c4f0) at tcp_usrreq+0xa54 sosend(fffffd805da75008,0,ffff80001d723b28,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c4f0,4,ffff80001d723b28,0,ffff80001d723c10) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c4f0,ffff80001d723bc0,ffff80001d723c10) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723c90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc600, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d7235f0 rbx 0xffff80001d7236a0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8228533f kprintf+0x15f r9 0x1 r10 0x2 r11 0xecb1fb8539937403 r12 0x3000000008 r13 0xffff80001d723600 r14 0x100 r15 0x1 rip 0xffffffff81cfcf18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d7235e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=37964 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d600,0xffff80001d71c9e0 process=0xffff80001d706af8 user=0xffff80001d71e000, vmspace=0xfffffd806bc09880 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 89330 443090 77248 0 2 0x480 syz-executor.1 89330 309512 77248 0 3 0x4000080 bell syz-executor.1 89330 398561 77248 0 3 0x4000080 netcon2 syz-executor.1 77248 151433 77937 0 3 0x82 nanosleep syz-executor.1 56301 267312 77937 0 2 0x2 syz-executor.0 77937 318322 32875 0 3 0x82 thrsleep syz-fuzzer 77937 209570 32875 0 2 0x4000482 syz-fuzzer 77937 93756 32875 0 2 0x4000002 syz-fuzzer 77937 255409 32875 0 3 0x4000082 thrsleep syz-fuzzer 77937 243305 32875 0 3 0x4000082 thrsleep syz-fuzzer 77937 443082 32875 0 3 0x4000082 thrsleep syz-fuzzer 77937 108159 32875 0 3 0x4000082 thrsleep syz-fuzzer 32875 410624 84307 0 3 0x10008a pause ksh *84307 37964 89686 0 7 0x12 sshd 83307 274124 1 0 3 0x100083 ttyin getty 89686 343710 1 0 3 0x80 select sshd 76206 183627 76650 73 3 0x100090 kqread syslogd 76650 450911 1 0 3 0x100082 netio syslogd 30165 118641 1 77 3 0x100090 poll dhclient 97038 45776 1 0 3 0x80 poll dhclient 330 263885 0 0 3 0x14200 bored smr 80293 120128 0 0 2 0x14200 zerothread 20838 502748 0 0 3 0x14200 aiodoned aiodoned 85175 349098 0 0 3 0x14200 syncer update 22148 278305 0 0 3 0x14200 cleaner cleaner 65418 298283 0 0 3 0x14200 reaper reaper 56554 320055 0 0 3 0x14200 pgdaemon pagedaemon 99170 127118 0 0 3 0x14200 bored crynlk 60552 59330 0 0 3 0x14200 bored crypto 30877 418133 0 0 3 0x40014200 acpi0 acpi0 56339 324520 0 0 3 0x14200 bored softnet 22375 458694 0 0 3 0x14200 bored systqmp 57415 266107 0 0 3 0x14200 bored systq 73055 413235 0 0 3 0x40014200 bored softclock 71005 120154 0 0 3 0x40014200 idle0 1 317071 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 9447 6323K 6339K 78643K 10554 0 pcb 13 8K 8K 78643K 13 0 rtable 107 3K 3K 78643K 192 0 ifaddr 39 10K 10K 78643K 41 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 2K 78643K 15 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1225 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 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 38 0 proc 47 38K 63K 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 in_multi 33 2K 2K 78643K 33 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 31 148K 148K 78643K 31 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 126 23K 23K 78643K 974 0 UVM aobj 5 2K 2K 78643K 5 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 5 0K 0K 78643K 9 0 temp 61 3847K 3911K 78643K 1778 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 46 0 1 2 0 2 2 0 8 0 unpcb 120 25 0 17 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 612 0 612 1 0 1 1 0 8 1 tcpcb 544 11 0 6 1 0 1 1 0 8 0 inpcb 296 36 0 27 1 0 1 1 0 8 0 nd6 48 7 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 203 0 0 13 0 13 13 0 8 0 art_table 32 204 0 0 2 0 2 2 0 8 0 art_node 16 45 0 4 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 1421 0 23 88 0 88 88 0 8 0 ffsino 240 1421 0 23 83 0 83 83 0 8 0 nchpl 144 1646 0 43 60 0 60 60 0 8 0 uvmvnodes 72 1468 0 0 27 0 27 27 0 8 0 vnodes 208 1468 0 0 78 0 78 78 0 8 0 namei 1024 4057 0 4057 2 1 1 1 0 8 1 scxspl 192 4789 0 4789 2 1 1 1 0 8 1 plimitpl 152 14 0 7 1 0 1 1 0 8 0 sigapl 424 224 0 196 4 0 4 4 0 8 0 futexpl 56 121 0 121 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 2 0 0 1 0 1 1 0 8 0 pipepl 272 70 0 60 1 0 1 1 0 8 0 fdescpl 432 210 0 196 2 0 2 2 0 8 0 filepl 120 1034 0 936 4 0 4 4 0 8 1 lockfpl 104 8 0 7 1 0 1 1 0 8 0 lockfspl 48 4 0 3 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 54 0 47 1 0 1 1 0 8 0 zombiepl 144 196 0 196 2 1 1 1 0 8 1 processpl 928 224 0 196 4 0 4 4 0 8 0 procpl 624 238 0 202 4 0 4 4 0 8 1 sockpl 400 80 0 61 3 0 3 3 0 8 1 mcl4k 4096 9 0 9 2 1 1 1 0 8 1 mcl2k 2048 94437 0 94376 20 4 16 18 0 8 6 mtagpl 96 2 0 2 1 1 0 1 0 8 0 mbufpl 256 149142 0 148981 14 2 12 12 0 8 1 bufpl 280 3281 0 126 226 0 226 226 0 8 0 anonpl 16 40168 0 24542 65 1 64 64 0 107 1 amapchunkpl 152 1270 0 1124 8 0 8 8 0 158 2 amappl16 192 951 0 118 42 0 42 42 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 37 0 27 1 0 1 1 0 8 0 amappl13 168 27 0 24 1 0 1 1 0 8 0 amappl12 160 8 0 5 2 1 1 1 0 8 0 amappl11 152 52 0 42 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 257 0 254 1 0 1 1 0 8 0 amappl8 128 327 0 283 2 0 2 2 0 8 0 amappl7 120 108 0 96 1 0 1 1 0 8 0 amappl6 112 24 0 20 2 1 1 1 0 8 0 amappl5 104 384 0 373 1 0 1 1 0 8 0 amappl4 96 418 0 394 1 0 1 1 0 8 0 amappl3 88 98 0 93 1 0 1 1 0 8 0 amappl2 80 855 0 788 2 0 2 2 0 8 0 amappl1 72 13528 0 13100 24 13 11 17 0 8 2 amappl 80 505 0 461 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 210 0 196 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 210 0 196 1 0 1 1 0 8 0 vmmpekpl 168 5650 0 5621 2 0 2 2 0 8 0 vmmpepl 168 33883 0 31936 127 12 115 115 0 357 28 vmsppl 272 209 0 196 2 0 2 2 0 8 1 pdppl 4096 426 0 392 6 0 6 6 0 8 1 pvpl 32 128964 0 110382 160 1 159 159 0 265 8 pmappl 200 209 0 196 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 245 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(ffffffff8241e349) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805891c100,4b4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2ee0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da75008,9,fffffd805891c000,0,0,ffff80001d71c4f0) at tcp_usrreq+0xa54 sosend(fffffd805da75008,0,ffff80001d723b28,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c4f0,4,ffff80001d723b28,0,ffff80001d723c10) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c4f0,ffff80001d723bc0,ffff80001d723c10) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723c90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc600, 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(ffffffff8241e349) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805891c100,4b4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2ee0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da75008,9,fffffd805891c000,0,0,ffff80001d71c4f0) at tcp_usrreq+0xa54 sosend(fffffd805da75008,0,ffff80001d723b28,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c4f0,4,ffff80001d723b28,0,ffff80001d723c10) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c4f0,ffff80001d723bc0,ffff80001d723c10) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723c90) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc600, count: -10