panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *174294 73965 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82425de7) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e20cd00,194,46c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6c4b8,9,fffffd805e20cc00,0,0,ffff80001d71c280) at tcp_usrreq+0xa54 sosend(fffffd805da6c4b8,0,ffff80001d6cd798,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c280,4,ffff80001d6cd798,0,ffff80001d6cd880) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c280,ffff80001d6cd830,ffff80001d6cd880) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd900) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9af0, 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(ffffffff82425de7) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e20cd00,194,46c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6c4b8,9,fffffd805e20cc00,0,0,ffff80001d71c280) at tcp_usrreq+0xa54 sosend(fffffd805da6c4b8,0,ffff80001d6cd798,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c280,4,ffff80001d6cd798,0,ffff80001d6cd880) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c280,ffff80001d6cd830,ffff80001d6cd880) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd900) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9af0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6cd260 rbx 0xffff80001d6cd310 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8163080f kprintf+0x15f r9 0x1 r10 0x2 r11 0x6bc6242e26ba5332 r12 0x3000000008 r13 0xffff80001d6cd270 r14 0x100 r15 0x1 rip 0xffffffff8114a6e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6cd250 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=174294 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71c4f0,0xffff80001d71cc50 process=0xffff80001d701238 user=0xffff80001d6c8000, vmspace=0xfffffd806bc09110 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 28840 419428 0 0 3 0x14200 bored sosplice 19620 189820 5501 0 2 0x2 syz-executor.1 68209 293910 5501 0 2 0x482 syz-executor.0 5501 240582 73556 0 3 0x82 thrsleep syz-fuzzer 5501 445235 73556 0 3 0x4000082 nanosleep syz-fuzzer 5501 399136 73556 0 3 0x4000082 thrsleep syz-fuzzer 5501 128193 73556 0 3 0x4000082 thrsleep syz-fuzzer 5501 263299 73556 0 3 0x4000082 thrsleep syz-fuzzer 5501 69714 73556 0 2 0x4000002 syz-fuzzer 5501 443459 73556 0 3 0x4000082 thrsleep syz-fuzzer 5501 523054 73556 0 3 0x4000082 thrsleep syz-fuzzer 73556 101663 73965 0 3 0x10008a pause ksh *73965 174294 72478 0 7 0x12 sshd 33765 298011 1 0 3 0x100083 ttyin getty 72478 188752 1 0 3 0x80 select sshd 65778 285375 30645 73 3 0x100090 kqread syslogd 30645 137415 1 0 3 0x100082 netio syslogd 17550 351984 1 77 3 0x100090 poll dhclient 7004 362347 1 0 3 0x80 poll dhclient 84398 348180 0 0 3 0x14200 bored smr 79906 177859 0 0 3 0x14200 pgzero zerothread 74286 309288 0 0 3 0x14200 aiodoned aiodoned 15900 285848 0 0 3 0x14200 syncer update 93790 461971 0 0 3 0x14200 cleaner cleaner 10622 291400 0 0 3 0x14200 reaper reaper 97735 369806 0 0 3 0x14200 pgdaemon pagedaemon 44446 293102 0 0 3 0x14200 bored crynlk 77094 181440 0 0 3 0x14200 bored crypto 69584 392617 0 0 3 0x40014200 acpi0 acpi0 29283 501109 0 0 3 0x14200 bored softnet 48495 390881 0 0 3 0x14200 bored systqmp 94350 386381 0 0 3 0x14200 bored systq 81233 465286 0 0 3 0x40014200 bored softclock 93372 371044 0 0 3 0x40014200 idle0 1 110170 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 9487 6338K 6661K 78643K 10863 0 pcb 13 8K 8K 78643K 53 0 rtable 102 3K 7K 78643K 352 0 ifaddr 60 12K 12K 78643K 116 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 24 0 ioctlops 0 0K 4K 78643K 78 0 iov 0 0K 16K 78643K 33 0 mount 1 1K 1K 78643K 1 0 vnodes 1214 76K 77K 78643K 1317 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 64 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 308 0 proc 49 38K 63K 78643K 368 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 20 0 in_multi 29 1K 2K 78643K 79 0 ether_multi 1 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 217 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 134 39K 40K 78643K 1550 0 UVM aobj 20 4K 4K 78643K 29 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 30 0 NDP 10 0K 0K 78643K 24 0 temp 86 3849K 3929K 78643K 7844 0 kqueue 3 4K 8K 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 8 0 2 1 0 1 1 0 8 0 rtpcb 80 35 0 33 1 0 1 1 0 8 0 rtentry 112 65 0 23 2 0 2 2 0 8 0 unpcb 120 145 0 137 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 252 0 252 1 0 1 1 0 8 1 tcpcb 544 69 0 65 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 2 1 0 1 1 0 8 0 inpcb 296 235 0 228 2 0 2 2 0 8 1 nd6 48 17 0 12 1 0 1 1 0 8 0 pkpcb 40 8 0 8 1 0 1 1 0 8 1 pfstscr 40 4 0 3 1 0 1 1 0 8 0 pfrktable 1344 40 0 40 1 1 0 1 0 8 0 pftag 88 8 0 8 1 1 0 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 4 0 4 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 240 0 48 13 0 13 13 0 8 0 art_table 32 241 0 48 2 0 2 2 0 8 0 art_node 16 64 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 6 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 52 0 42 1 0 1 1 0 8 0 shmpl 112 26 0 9 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1804 0 409 88 0 88 88 0 8 0 ffsino 240 1804 0 409 83 0 83 83 0 8 0 nchpl 144 2606 0 1013 60 0 60 60 0 8 0 uvmvnodes 72 1905 0 0 35 0 35 35 0 8 0 vnodes 208 1905 0 0 101 0 101 101 0 8 0 namei 1024 6689 0 6689 1 0 1 1 0 8 1 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 6 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 12 0 12 1 1 0 1 0 8 0 scxspl 192 7166 0 7166 1 0 1 1 0 8 1 plimitpl 152 31 0 24 1 0 1 1 0 8 0 sigapl 424 495 0 467 4 0 4 4 0 8 0 futexpl 56 5525 0 5525 1 0 1 1 0 8 1 knotepl 112 65 0 46 1 0 1 1 0 8 0 kqueuepl 144 24 0 22 1 0 1 1 0 8 0 pipepl 272 119 0 109 2 1 1 2 0 8 0 fdescpl 432 480 0 467 2 0 2 2 0 8 0 filepl 120 2810 0 2715 4 0 4 4 0 8 1 lockfpl 104 56 0 55 1 0 1 1 0 8 0 lockfspl 48 20 0 19 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 293 0 286 1 0 1 1 0 8 0 zombiepl 144 467 0 466 1 0 1 1 0 8 0 processpl 928 495 0 466 4 0 4 4 0 8 0 procpl 624 830 0 794 4 0 4 4 0 8 1 sockpl 400 423 0 406 4 0 4 4 0 8 2 mcl64k 65536 24 0 24 1 0 1 1 0 8 1 mcl16k 16384 3 0 3 1 0 1 1 0 8 1 mcl12k 12288 8 0 8 1 0 1 1 0 8 1 mcl9k 9216 5 0 5 1 0 1 1 0 8 1 mcl8k 8192 11 0 11 1 0 1 1 0 8 1 mcl4k 4096 30 0 30 2 1 1 1 0 8 1 mcl2k 2048 95190 0 95136 22 13 9 19 0 8 1 mtagpl 96 25 0 5 2 1 1 1 0 8 0 mbufpl 256 157871 0 157688 33 16 17 29 0 8 0 bufpl 280 4456 0 130 309 0 309 309 0 8 0 anonpl 16 66736 0 49242 89 2 87 87 0 107 7 amapchunkpl 152 2232 0 2085 12 0 12 12 0 158 5 amappl16 192 2462 0 1407 55 0 55 55 0 8 2 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 31 0 26 1 0 1 1 0 8 0 amappl13 168 34 0 30 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 46 0 37 1 0 1 1 0 8 0 amappl10 144 160 0 153 1 0 1 1 0 8 0 amappl9 136 498 0 496 1 0 1 1 0 8 0 amappl8 128 474 0 431 2 0 2 2 0 8 0 amappl7 120 244 0 233 1 0 1 1 0 8 0 amappl6 112 28 0 21 1 0 1 1 0 8 0 amappl5 104 438 0 428 1 0 1 1 0 8 0 amappl4 96 427 0 397 1 0 1 1 0 8 0 amappl3 88 111 0 103 1 0 1 1 0 8 0 amappl2 80 3011 0 2955 2 0 2 2 0 8 0 amappl1 72 19493 0 19093 23 13 10 17 0 8 0 amappl 80 1063 0 1019 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 28 0 9 1 0 1 1 0 8 0 uaddrrnd 24 486 0 471 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 486 0 471 1 0 1 1 0 8 0 vmmpekpl 168 6862 0 6836 2 0 2 2 0 8 0 vmmpepl 168 65545 0 63483 157 11 146 151 0 357 51 vmsppl 272 485 0 471 3 1 2 2 0 8 0 pdppl 4096 978 0 944 7 1 6 6 0 8 1 pvpl 32 193139 0 172742 203 0 203 203 0 265 21 pmappl 200 485 0 471 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 273 0 36 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(ffffffff82425de7) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e20cd00,194,46c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6c4b8,9,fffffd805e20cc00,0,0,ffff80001d71c280) at tcp_usrreq+0xa54 sosend(fffffd805da6c4b8,0,ffff80001d6cd798,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c280,4,ffff80001d6cd798,0,ffff80001d6cd880) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c280,ffff80001d6cd830,ffff80001d6cd880) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd900) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9af0, 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(ffffffff82425de7) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e20cd00,194,46c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6c4b8,9,fffffd805e20cc00,0,0,ffff80001d71c280) at tcp_usrreq+0xa54 sosend(fffffd805da6c4b8,0,ffff80001d6cd798,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c280,4,ffff80001d6cd798,0,ffff80001d6cd880) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c280,ffff80001d6cd830,ffff80001d6cd880) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd900) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9af0, count: -10