panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *241514 41871 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82428759) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd8057caef00,6c,464,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac5030) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da63328,9,fffffd8057caee00,0,0,ffff80001d702500) at tcp_usrreq+0xa54 sosend(fffffd805da63328,0,ffff80001d6c9b58,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d702500,4,ffff80001d6c9b58,0,ffff80001d6c9c40) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d702500,ffff80001d6c9bf0,ffff80001d6c9c40) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9cc0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeb8a0, 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(ffffffff82428759) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd8057caef00,6c,464,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac5030) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da63328,9,fffffd8057caee00,0,0,ffff80001d702500) at tcp_usrreq+0xa54 sosend(fffffd805da63328,0,ffff80001d6c9b58,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d702500,4,ffff80001d6c9b58,0,ffff80001d6c9c40) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d702500,ffff80001d6c9bf0,ffff80001d6c9c40) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9cc0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeb8a0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6c9620 rbx 0xffff80001d6c96d0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff80001d6c95e0 r9 0xffffffff815b7cff kprintf+0x15f r10 0x1 r11 0x9ebb0e36a8f092f7 r12 0x3000000008 r13 0xffff80001d6c9630 r14 0x100 r15 0x1 rip 0xffffffff82254f08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6c9610 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=241514 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d703648,0xffff80001d702a00 process=0xffff80001d704778 user=0xffff80001d6c4000, vmspace=0xfffffd806bc0abb0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 43594 357027 57295 0 2 0x2 syz-executor.0 31199 295369 57295 0 2 0x2 syz-executor.1 46090 3105 0 0 3 0x14200 bored sosplice 57295 498654 44589 0 3 0x82 thrsleep syz-fuzzer 57295 107836 44589 0 3 0x4000082 nanosleep syz-fuzzer 57295 389090 44589 0 3 0x4000082 thrsleep syz-fuzzer 57295 101977 44589 0 3 0x4000082 thrsleep syz-fuzzer 57295 58638 44589 0 3 0x4000082 thrsleep syz-fuzzer 57295 52986 44589 0 3 0x4000082 thrsleep syz-fuzzer 57295 307417 44589 0 2 0x4000002 syz-fuzzer 44589 202086 41871 0 3 0x10008a pause ksh *41871 241514 50238 0 7 0x12 sshd 54154 334223 1 0 3 0x100083 ttyin getty 50238 381991 1 0 3 0x80 select sshd 59028 84173 16728 73 3 0x100090 kqread syslogd 16728 274036 1 0 3 0x100082 netio syslogd 38185 383734 1 77 3 0x100090 poll dhclient 7456 64807 1 0 3 0x80 poll dhclient 91647 36114 0 0 3 0x14200 bored smr 13762 83782 0 0 2 0x14200 zerothread 66128 155854 0 0 3 0x14200 aiodoned aiodoned 48115 359915 0 0 3 0x14200 syncer update 42715 312270 0 0 3 0x14200 cleaner cleaner 83681 51226 0 0 3 0x14200 reaper reaper 6730 258638 0 0 3 0x14200 pgdaemon pagedaemon 18240 461722 0 0 3 0x14200 bored crynlk 43940 98135 0 0 3 0x14200 bored crypto 45738 116587 0 0 3 0x40014200 acpi0 acpi0 9737 246689 0 0 3 0x14200 bored softnet 47911 237200 0 0 3 0x14200 bored systqmp 57233 78852 0 0 3 0x14200 bored systq 99883 264229 0 0 3 0x40014200 bored softclock 79456 519593 0 0 3 0x40014200 idle0 1 332634 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 9513 6358K 6990K 78643K 12421 0 pcb 13 8K 8K 78643K 566 0 rtable 101 5K 9K 78643K 748 0 ifaddr 79 14K 15K 78643K 228 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 32 0 ioctlops 0 0K 4K 78643K 720 0 iov 0 0K 16K 78643K 110 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1814 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 17 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 268 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 1426 0 sigio 0 0K 0K 78643K 2 0 proc 49 38K 63K 78643K 646 0 subproc 32 2K 2K 78643K 119 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 439 0 in_multi 54 3K 3K 78643K 794 0 ether_multi 1 0K 0K 78643K 265 0 mrt 0 0K 0K 78643K 8 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 319 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 140 40K 43K 78643K 4078 0 UVM aobj 49 2K 2K 78643K 56 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 792 0 NDP 16 0K 0K 78643K 52 0 temp 142 3874K 3951K 78643K 12753 0 kqueue 3 4K 14K 78643K 43 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 17 0 11 1 0 1 1 0 8 0 rtpcb 88 73 0 71 1 0 1 1 0 8 0 rtentry 112 157 0 123 2 0 2 2 0 8 0 unpcb 120 477 0 469 1 0 1 1 0 8 0 syncache 272 5 0 5 2 2 0 1 0 8 0 tcpqe 32 25 0 25 1 1 0 1 0 8 0 tcpcb 592 1079 0 1073 7 6 1 5 0 8 0 ipq 40 4 0 4 2 2 0 1 0 8 0 ipqe 40 10 0 10 2 2 0 1 0 8 0 inpcb 296 3811 0 3804 3 1 2 2 0 8 1 rttmr 72 3 0 3 2 2 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 4 0 4 1 1 0 1 0 8 0 nd6 48 45 0 41 1 0 1 1 0 8 0 pkpcb 40 8 0 8 4 4 0 1 0 8 0 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pfrktable 1344 63 0 60 1 0 1 1 0 8 0 pftag 88 8 0 8 1 1 0 1 0 8 0 pfrule 1360 26 0 18 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 811 0 640 20 7 13 16 0 8 0 art_table 32 813 0 640 3 1 2 3 0 8 0 art_node 16 156 0 127 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 6 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 264 0 254 1 0 1 1 0 8 0 shmpl 112 53 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3042 0 1648 88 0 88 88 0 8 0 ffsino 240 3042 0 1648 83 0 83 83 0 8 0 nchpl 144 5027 0 3447 60 0 60 60 0 8 0 uvmvnodes 72 3586 0 0 66 0 66 66 0 8 0 vnodes 208 3586 0 0 189 0 189 189 0 8 0 namei 1024 14347 0 14346 3 2 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 10 0 8 5 4 1 1 0 8 0 pfiaddrpl 120 18 0 16 2 1 1 1 0 8 0 scxspl 200 15483 0 15483 2 1 1 1 0 8 1 plimitpl 152 73 0 66 1 0 1 1 0 8 0 sigapl 424 1618 0 1590 6 2 4 6 0 8 0 futexpl 56 29005 0 29005 3 2 1 1 0 8 1 knotepl 112 170 0 150 1 0 1 1 0 8 0 kqueuepl 152 134 0 130 1 0 1 1 0 8 0 pipepl 272 232 0 221 3 2 1 2 0 8 0 fdescpl 432 1583 0 1570 2 0 2 2 0 8 0 filepl 120 10064 0 9967 4 0 4 4 0 8 1 lockfpl 104 195 0 194 1 0 1 1 0 8 0 lockfspl 48 72 0 71 1 0 1 1 0 8 0 sessionpl 120 22 0 12 1 0 1 1 0 8 0 pgrppl 48 32 0 22 1 0 1 1 0 8 0 ucredpl 96 649 0 642 1 0 1 1 0 8 0 zombiepl 144 1590 0 1590 2 1 1 1 0 8 1 processpl 944 1618 0 1590 7 3 4 7 0 8 0 procpl 632 3118 0 3084 5 1 4 5 0 8 1 sosppl 144 13 0 13 3 3 0 1 0 8 0 sockpl 400 4389 0 4372 7 4 3 4 0 8 1 mcl64k 65536 584 0 584 68 61 7 65 0 8 7 mcl16k 16384 5 0 5 4 4 0 1 0 8 0 mcl12k 12288 40 0 40 4 3 1 1 0 8 1 mcl9k 9216 14 0 14 6 5 1 1 0 8 1 mcl8k 8192 42 0 42 5 4 1 1 0 8 1 mcl4k 4096 107 0 107 4 3 1 1 0 8 1 mcl2k2 2112 7 0 7 5 5 0 1 0 8 0 mcl2k 2048 97910 0 97873 16 10 6 12 0 8 1 mtagpl 96 192 0 166 4 1 3 3 0 8 1 mbufpl 256 163810 0 163638 52 27 25 43 0 8 5 bufpl 280 7175 0 1821 383 0 383 383 0 8 0 anonpl 16 186091 0 171232 112 22 90 92 0 107 9 amapchunkpl 152 10114 0 9931 54 44 10 21 0 158 1 amappl16 192 7110 0 6050 77 16 61 65 0 8 7 amappl15 184 13 0 10 1 0 1 1 0 8 0 amappl14 176 2 0 1 1 0 1 1 0 8 0 amappl13 168 601 0 598 1 0 1 1 0 8 0 amappl12 160 752 0 748 1 0 1 1 0 8 0 amappl11 152 235 0 226 1 0 1 1 0 8 0 amappl10 144 11 0 9 1 0 1 1 0 8 0 amappl9 136 781 0 778 1 0 1 1 0 8 0 amappl8 128 876 0 836 3 1 2 2 0 8 0 amappl7 120 138 0 125 1 0 1 1 0 8 0 amappl6 112 184 0 176 1 0 1 1 0 8 0 amappl5 104 1218 0 1207 1 0 1 1 0 8 0 amappl4 96 985 0 956 1 0 1 1 0 8 0 amappl3 88 644 0 636 1 0 1 1 0 8 0 amappl2 80 11579 0 11522 2 0 2 2 0 8 0 amappl1 72 43846 0 43445 23 14 9 17 0 8 0 amappl 80 3434 0 3381 2 0 2 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 55 0 7 1 0 1 1 0 8 0 uaddrrnd 24 1593 0 1578 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1593 0 1578 1 0 1 1 0 8 0 vmmpekpl 168 11915 0 11884 2 0 2 2 0 8 0 vmmpepl 168 199365 0 197299 214 76 138 138 0 357 40 vmsppl 272 1592 0 1578 5 3 2 2 0 8 1 pdppl 4096 3192 0 3158 6 1 5 6 0 8 0 pvpl 32 552719 0 534893 370 60 310 317 0 265 124 pmappl 200 1592 0 1578 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 374 0 132 9 0 9 9 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(ffffffff82428759) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd8057caef00,6c,464,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac5030) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da63328,9,fffffd8057caee00,0,0,ffff80001d702500) at tcp_usrreq+0xa54 sosend(fffffd805da63328,0,ffff80001d6c9b58,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d702500,4,ffff80001d6c9b58,0,ffff80001d6c9c40) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d702500,ffff80001d6c9bf0,ffff80001d6c9c40) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9cc0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeb8a0, 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(ffffffff82428759) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd8057caef00,6c,464,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac5030) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da63328,9,fffffd8057caee00,0,0,ffff80001d702500) at tcp_usrreq+0xa54 sosend(fffffd805da63328,0,ffff80001d6c9b58,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d702500,4,ffff80001d6c9b58,0,ffff80001d6c9c40) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d702500,ffff80001d6c9bf0,ffff80001d6c9c40) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9cc0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeb8a0, count: -10