panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *449893 61965 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(fffffd805c4abb00,1d4,580,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(fffffd805da754b8,9,fffffd805c4aba00,0,0,ffff80001d71d120) at tcp_usrreq+0xa54 sosend(fffffd805da754b8,0,ffff80001d6ccfe8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71d120,4,ffff80001d6ccfe8,0,ffff80001d6cd0d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71d120,ffff80001d6cd080,ffff80001d6cd0d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd150) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0610, 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(fffffd805c4abb00,1d4,580,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(fffffd805da754b8,9,fffffd805c4aba00,0,0,ffff80001d71d120) at tcp_usrreq+0xa54 sosend(fffffd805da754b8,0,ffff80001d6ccfe8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71d120,4,ffff80001d6ccfe8,0,ffff80001d6cd0d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71d120,ffff80001d6cd080,ffff80001d6cd0d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd150) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0610, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6ccab0 rbx 0xffff80001d6ccb60 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8163080f kprintf+0x15f r9 0x1 r10 0x2 r11 0x71b97745f62e5ef1 r12 0x3000000008 r13 0xffff80001d6ccac0 r14 0x100 r15 0x1 rip 0xffffffff8114a6e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6ccaa0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=449893 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d870,0xffff80001d71cec0 process=0xffff80001d706e98 user=0xffff80001d6c8000, vmspace=0xfffffd806bc09cc0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 58730 372756 69542 0 2 0 syz-executor.0 58730 215581 69542 0 2 0x4000000 syz-executor.0 69542 487877 65113 0 2 0x482 syz-executor.0 40105 170226 65113 0 2 0x2 syz-executor.1 65113 80549 15163 0 3 0x82 thrsleep syz-fuzzer 65113 133462 15163 0 2 0x4000482 syz-fuzzer 65113 422915 15163 0 2 0x4000002 syz-fuzzer 65113 355732 15163 0 3 0x4000082 thrsleep syz-fuzzer 65113 114472 15163 0 3 0x4000082 thrsleep syz-fuzzer 65113 482559 15163 0 2 0x4000482 syz-fuzzer 65113 70888 15163 0 3 0x4000082 thrsleep syz-fuzzer 15163 150012 61965 0 3 0x10008a pause ksh *61965 449893 9343 0 7 0x12 sshd 99589 253336 1 0 3 0x100083 ttyin getty 9343 277147 1 0 3 0x80 select sshd 26645 204802 58096 73 3 0x100090 kqread syslogd 58096 299025 1 0 3 0x100082 netio syslogd 94610 481141 1 77 3 0x100090 poll dhclient 8660 208222 1 0 3 0x80 poll dhclient 12081 40515 0 0 3 0x14200 bored smr 66544 85176 0 0 2 0x14200 zerothread 24007 226830 0 0 3 0x14200 aiodoned aiodoned 3386 507117 0 0 3 0x14200 syncer update 55022 15085 0 0 3 0x14200 cleaner cleaner 74060 461418 0 0 3 0x14200 reaper reaper 85950 56375 0 0 3 0x14200 pgdaemon pagedaemon 25567 201618 0 0 3 0x14200 bored crynlk 24561 469987 0 0 3 0x14200 bored crypto 43018 341413 0 0 3 0x40014200 acpi0 acpi0 71169 249239 0 0 3 0x14200 bored softnet 48252 286098 0 0 3 0x14200 bored systqmp 78434 471009 0 0 3 0x14200 bored systq 13030 283204 0 0 3 0x40014200 bored softclock 19885 443022 0 0 3 0x40014200 idle0 1 308666 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 9461 6325K 6585K 78643K 10639 0 pcb 13 8K 8K 78643K 45 0 rtable 78 2K 3K 78643K 215 0 ifaddr 50 11K 11K 78643K 63 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 29 0 iov 0 0K 12K 78643K 6 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1253 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 28 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 129 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 ip_moptions 0 0K 0K 78643K 11 0 in_multi 39 2K 2K 78643K 60 0 ether_multi 1 0K 0K 78643K 3 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 185 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 121 22K 23K 78643K 1126 0 UVM aobj 12 2K 2K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 7 0K 0K 78643K 12 0 temp 78 3849K 3913K 78643K 2018 0 kqueue 3 4K 8K 78643K 6 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 49 0 19 2 0 2 2 0 8 0 unpcb 120 109 0 101 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 426 0 426 1 1 0 1 0 8 0 tcpcb 544 100 0 96 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 1 1 0 1 1 0 8 0 inpcb 296 182 0 175 2 0 2 2 0 8 1 nd6 48 7 0 3 1 0 1 1 0 8 0 pfrktable 1344 6 0 6 1 0 1 1 0 8 1 pfrule 1360 4 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 213 0 81 12 0 12 12 0 8 1 art_table 32 214 0 81 2 0 2 2 0 8 0 art_node 16 48 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 9 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1535 0 138 88 0 88 88 0 8 0 ffsino 240 1535 0 138 83 0 83 83 0 8 0 nchpl 144 1923 0 318 60 0 60 60 0 8 0 uvmvnodes 72 1603 0 0 30 0 30 30 0 8 0 vnodes 208 1603 0 0 85 0 85 85 0 8 0 namei 1024 4699 0 4699 1 0 1 1 0 8 1 vmpool 528 2 0 2 1 0 1 1 0 8 1 pfiaddrpl 120 2 0 2 1 0 1 1 0 8 1 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 5410 0 5410 1 0 1 1 0 8 1 plimitpl 152 18 0 11 1 0 1 1 0 8 0 sigapl 424 315 0 287 4 0 4 4 0 8 0 futexpl 56 1744 0 1744 1 0 1 1 0 8 1 knotepl 112 66 0 47 1 0 1 1 0 8 0 kqueuepl 144 10 0 8 1 0 1 1 0 8 0 pipepl 272 74 0 64 1 0 1 1 0 8 0 fdescpl 432 301 0 287 2 0 2 2 0 8 0 filepl 120 1535 0 1440 4 0 4 4 0 8 1 lockfpl 104 20 0 19 1 0 1 1 0 8 0 lockfspl 48 8 0 7 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 61 0 54 1 0 1 1 0 8 0 zombiepl 144 287 0 287 1 0 1 1 0 8 1 processpl 928 315 0 287 4 0 4 4 0 8 0 procpl 624 433 0 398 4 0 4 4 0 8 1 sockpl 400 310 0 293 4 0 4 4 0 8 2 mcl64k 65536 4 0 4 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 15 0 15 2 1 1 1 0 8 1 mcl2k 2048 92613 0 92553 22 8 14 19 0 8 5 mtagpl 96 10 0 4 2 1 1 1 0 8 0 mbufpl 256 146616 0 146504 14 2 12 12 0 8 0 bufpl 280 3386 0 126 233 0 233 233 0 8 0 anonpl 16 48602 0 29315 81 2 79 79 0 107 0 amapchunkpl 152 1257 0 1109 7 1 6 7 0 158 0 amappl16 192 1562 0 488 55 0 55 55 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 78 0 71 1 0 1 1 0 8 0 amappl13 168 70 0 64 1 0 1 1 0 8 0 amappl12 160 52 0 46 1 0 1 1 0 8 0 amappl11 152 48 0 39 1 0 1 1 0 8 0 amappl10 144 16 0 10 1 0 1 1 0 8 0 amappl9 136 376 0 373 1 0 1 1 0 8 0 amappl8 128 329 0 287 2 0 2 2 0 8 0 amappl7 120 106 0 95 1 0 1 1 0 8 0 amappl6 112 22 0 19 1 0 1 1 0 8 0 amappl5 104 259 0 246 1 0 1 1 0 8 0 amappl4 96 425 0 395 1 0 1 1 0 8 0 amappl3 88 155 0 150 1 0 1 1 0 8 0 amappl2 80 1630 0 1558 2 0 2 2 0 8 0 amappl1 72 15414 0 15008 23 13 10 17 0 8 1 amappl 80 656 0 615 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 11 0 0 1 0 1 1 0 8 0 uaddrrnd 24 303 0 289 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 303 0 289 1 0 1 1 0 8 0 vmmpekpl 168 5994 0 5969 2 0 2 2 0 8 0 vmmpepl 168 43806 0 41628 117 7 110 111 0 357 15 vmsppl 272 302 0 289 2 1 1 2 0 8 0 pdppl 4096 612 0 578 6 1 5 6 0 8 0 pvpl 32 151807 0 129571 183 0 183 183 0 265 0 pmappl 200 302 0 289 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 250 0 15 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(ffffffff82425de7) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805c4abb00,1d4,580,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(fffffd805da754b8,9,fffffd805c4aba00,0,0,ffff80001d71d120) at tcp_usrreq+0xa54 sosend(fffffd805da754b8,0,ffff80001d6ccfe8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71d120,4,ffff80001d6ccfe8,0,ffff80001d6cd0d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71d120,ffff80001d6cd080,ffff80001d6cd0d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd150) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0610, 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(fffffd805c4abb00,1d4,580,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(fffffd805da754b8,9,fffffd805c4aba00,0,0,ffff80001d71d120) at tcp_usrreq+0xa54 sosend(fffffd805da754b8,0,ffff80001d6ccfe8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71d120,4,ffff80001d6ccfe8,0,ffff80001d6cd0d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71d120,ffff80001d6cd080,ffff80001d6cd0d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd150) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0610, count: -10