panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *328188 17839 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241d798) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8058334300,1f4,554,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6a7d8,9,fffffd8058334200,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da6a7d8,0,ffff80001d723ad8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d723ad8,0,ffff80001d723bc0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d723b70,ffff80001d723bc0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723c40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb77f0, 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(ffffffff8241d798) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8058334300,1f4,554,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6a7d8,9,fffffd8058334200,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da6a7d8,0,ffff80001d723ad8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d723ad8,0,ffff80001d723bc0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d723b70,ffff80001d723bc0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723c40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb77f0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d7235a0 rbx 0xffff80001d723650 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff815dc43f kprintf+0x15f r9 0x1 r10 0x2 r11 0xdbf691b937117b8f r12 0x3000000008 r13 0xffff80001d7235b0 r14 0x100 r15 0x1 rip 0xffffffff8118a508 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d723590 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=328188 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d870,0xffff80001d71c770 process=0xffff80001d706758 user=0xffff80001d71e000, 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 93605 119400 30058 0 2 0 syz-executor.1 93605 434782 30058 0 2 0x4000000 syz-executor.1 7159 298562 0 0 3 0x14200 acct acct 30058 52499 99313 0 3 0x82 nanosleep syz-executor.1 2655 501240 0 0 3 0x14200 bored sosplice 76903 17594 99313 0 2 0x2 syz-executor.0 99313 279714 40010 0 2 0x2 syz-fuzzer 99313 50081 40010 0 3 0x4000082 nanosleep syz-fuzzer 99313 428725 40010 0 3 0x4000082 thrsleep syz-fuzzer 99313 286914 40010 0 3 0x4000082 thrsleep syz-fuzzer 99313 68579 40010 0 3 0x4000082 thrsleep syz-fuzzer 99313 353905 40010 0 3 0x4000082 thrsleep syz-fuzzer 99313 152925 40010 0 3 0x4000082 thrsleep syz-fuzzer 40010 69403 17839 0 3 0x10008a pause ksh *17839 328188 94245 0 7 0x12 sshd 53502 365964 1 0 3 0x100083 ttyin getty 94245 478502 1 0 3 0x80 select sshd 89780 275066 49770 73 3 0x100090 kqread syslogd 49770 430202 1 0 3 0x100082 netio syslogd 84247 123839 1 77 3 0x100090 poll dhclient 19471 304184 1 0 3 0x80 poll dhclient 12823 284521 0 0 3 0x14200 bored smr 37911 130487 0 0 2 0x14200 zerothread 31462 359338 0 0 3 0x14200 aiodoned aiodoned 72674 29148 0 0 3 0x14200 syncer update 37830 87355 0 0 3 0x14200 cleaner cleaner 49180 380759 0 0 3 0x14200 reaper reaper 7700 421221 0 0 3 0x14200 pgdaemon pagedaemon 7604 273115 0 0 3 0x14200 bored crynlk 72677 486582 0 0 3 0x14200 bored crypto 71749 127246 0 0 3 0x40014200 acpi0 acpi0 3188 27221 0 0 3 0x14200 bored softnet 3224 372377 0 0 3 0x14200 bored systqmp 44407 5849 0 0 3 0x14200 bored systq 88457 145213 0 0 3 0x40014200 bored softclock 69004 285947 0 0 3 0x40014200 idle0 1 253128 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 9493 6480K 7450K 78643K 11345 0 pcb 13 8K 8K 78643K 41 0 rtable 82 10K 10K 78643K 338 0 ifaddr 62 13K 15K 78643K 112 0 counters 21 16K 17K 78643K 28 0 ioctlops 0 0K 4K 78643K 74 0 iov 0 0K 12K 78643K 27 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1431 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 0K 78643K 64 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 233 0 proc 50 38K 63K 78643K 421 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 5 0 in_multi 50 2K 3K 78643K 100 0 ether_multi 1 0K 0K 78643K 5 0 mrt 0 0K 0K 78643K 2 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 214 0 pfkey data 0 0K 0K 78643K 2 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 125 39K 40K 78643K 1391 0 UVM aobj 15 4K 4K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 24 0 NDP 9 0K 0K 78643K 26 0 temp 96 3852K 3926K 78643K 5507 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 8 0 2 1 0 1 1 0 8 0 rtpcb 80 33 0 31 1 0 1 1 0 8 0 rtentry 112 69 0 38 2 0 2 2 0 8 0 unpcb 120 146 0 135 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 647 0 647 2 1 1 1 0 8 1 tcpcb 544 130 0 126 1 0 1 1 0 8 0 ipq 40 3 0 3 2 1 1 1 0 8 1 ipqe 40 51 0 51 2 1 1 1 0 8 1 inpcb 296 379 0 372 2 0 2 2 0 8 1 nd6 48 13 0 11 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 2 0 0 1 0 1 1 0 8 0 pfstate 328 1 0 0 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 298 0 171 13 0 13 13 0 8 2 art_table 32 300 0 171 2 0 2 2 0 8 0 art_node 16 68 0 41 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 60 0 50 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1689 0 289 88 0 88 88 0 8 0 ffsino 240 1689 0 289 83 0 83 83 0 8 0 nchpl 144 2187 0 597 60 0 60 60 0 8 0 uvmvnodes 72 1915 0 0 35 0 35 35 0 8 0 vnodes 208 1915 0 0 101 0 101 101 0 8 0 namei 1024 5943 0 5943 1 0 1 1 0 8 1 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 528 4 0 1 1 0 1 1 0 8 0 scxspl 192 6534 0 6534 1 0 1 1 0 8 1 plimitpl 152 27 0 20 1 0 1 1 0 8 0 sigapl 424 418 0 388 4 0 4 4 0 8 0 futexpl 56 4984 0 4984 1 0 1 1 0 8 1 knotepl 112 81 0 62 1 0 1 1 0 8 0 kqueuepl 144 40 0 38 1 0 1 1 0 8 0 pipepl 272 104 0 94 2 1 1 2 0 8 0 fdescpl 432 402 0 388 2 0 2 2 0 8 0 filepl 120 2463 0 2368 4 0 4 4 0 8 1 lockfpl 104 45 0 44 1 0 1 1 0 8 0 lockfspl 48 16 0 15 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 20 0 10 1 0 1 1 0 8 0 ucredpl 96 190 0 183 1 0 1 1 0 8 0 zombiepl 144 388 0 388 1 0 1 1 0 8 1 processpl 928 418 0 388 4 0 4 4 0 8 0 procpl 624 648 0 611 4 0 4 4 0 8 1 sosppl 128 4 0 4 1 0 1 1 0 8 1 sockpl 400 563 0 543 4 0 4 4 0 8 1 mcl64k 65536 18 0 18 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 8 0 8 1 0 1 1 0 8 1 mcl9k 9216 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 11 0 11 1 0 1 1 0 8 1 mcl4k 4096 35 0 35 2 1 1 1 0 8 1 mcl2k2 2112 3 0 3 1 1 0 1 0 8 0 mcl2k 2048 76337 0 76264 26 16 10 18 0 8 0 mtagpl 96 112 0 24 4 1 3 3 0 8 0 mbufpl 256 123412 0 123101 33 6 27 29 0 8 7 bufpl 280 4210 0 128 292 0 292 292 0 8 0 anonpl 16 66873 0 50012 91 2 89 89 0 107 17 amapchunkpl 152 1900 0 1771 11 2 9 9 0 158 3 amappl16 192 2379 0 1399 62 4 58 62 0 8 8 amappl15 184 93 0 90 1 0 1 1 0 8 0 amappl14 176 26 0 21 1 0 1 1 0 8 0 amappl13 168 126 0 122 1 0 1 1 0 8 0 amappl12 160 94 0 93 2 1 1 1 0 8 0 amappl11 152 46 0 37 1 0 1 1 0 8 0 amappl10 144 104 0 96 1 0 1 1 0 8 0 amappl9 136 371 0 370 1 0 1 1 0 8 0 amappl8 128 339 0 297 2 0 2 2 0 8 0 amappl7 120 164 0 152 1 0 1 1 0 8 0 amappl6 112 26 0 19 1 0 1 1 0 8 0 amappl5 104 338 0 325 1 0 1 1 0 8 0 amappl4 96 437 0 410 1 0 1 1 0 8 0 amappl3 88 112 0 106 1 0 1 1 0 8 0 amappl2 80 2471 0 2402 2 0 2 2 0 8 0 amappl1 72 17161 0 16748 23 13 10 17 0 8 0 amappl 80 882 0 840 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 14 0 0 1 0 1 1 0 8 0 uaddrrnd 24 406 0 389 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 406 0 389 1 0 1 1 0 8 0 vmmpekpl 168 6644 0 6612 2 0 2 2 0 8 0 vmmpepl 168 56716 0 54631 140 13 127 127 0 357 33 vmsppl 272 405 0 389 3 1 2 2 0 8 0 pdppl 4096 818 0 781 7 1 6 6 0 8 1 pvpl 32 190041 0 170187 212 3 209 209 0 265 40 pmappl 200 405 0 389 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 277 0 29 8 0 8 8 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(ffffffff8241d798) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8058334300,1f4,554,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6a7d8,9,fffffd8058334200,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da6a7d8,0,ffff80001d723ad8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d723ad8,0,ffff80001d723bc0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d723b70,ffff80001d723bc0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723c40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb77f0, 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(ffffffff8241d798) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8058334300,1f4,554,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6a7d8,9,fffffd8058334200,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da6a7d8,0,ffff80001d723ad8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d723ad8,0,ffff80001d723bc0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d723b70,ffff80001d723bc0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723c40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb77f0, count: -10