panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *138939 31502 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241babb) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805baf4700,5c,344,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1ee0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6d7d8,9,fffffd805baf4600,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da6d7d8,0,ffff80001d6c9ff8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d7174f0,4,ffff80001d6c9ff8,0,ffff80001d6ca0e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d6ca090,ffff80001d6ca0e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca160) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3c60, 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(ffffffff8241babb) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805baf4700,5c,344,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1ee0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6d7d8,9,fffffd805baf4600,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da6d7d8,0,ffff80001d6c9ff8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d7174f0,4,ffff80001d6c9ff8,0,ffff80001d6ca0e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d6ca090,ffff80001d6ca0e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca160) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3c60, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6c9ac0 rbx 0xffff80001d6c9b70 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff811c348f kprintf+0x15f r9 0x1 r10 0x2 r11 0xd760716c1d719d3b r12 0x3000000008 r13 0xffff80001d6c9ad0 r14 0x100 r15 0x1 rip 0xffffffff813bfda8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6c9ab0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=138939 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718600,0xffff80001d717290 process=0xffff8000ffff8e78 user=0xffff80001d6c5000, vmspace=0xfffffd806bc0a660 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 68535 270974 0 0 3 0x14200 bored sosplice 48472 57057 32719 0 2 0x2 syz-executor.0 99133 466632 32719 0 2 0x2 syz-executor.1 32719 266475 46598 0 3 0x82 thrsleep syz-fuzzer 32719 463071 46598 0 2 0x4000002 syz-fuzzer 32719 414908 46598 0 3 0x4000082 thrsleep syz-fuzzer 32719 275648 46598 0 3 0x4000082 thrsleep syz-fuzzer 32719 463075 46598 0 3 0x4000082 thrsleep syz-fuzzer 32719 348506 46598 0 2 0x4000002 syz-fuzzer 32719 266240 46598 0 3 0x4000082 thrsleep syz-fuzzer 46598 241880 31502 0 3 0x10008a pause ksh *31502 138939 87876 0 7 0x12 sshd 69999 77206 1 0 3 0x100083 ttyin getty 87876 209642 1 0 3 0x80 select sshd 77969 508065 79974 73 3 0x100090 kqread syslogd 79974 192570 1 0 3 0x100082 netio syslogd 11605 493198 1 77 3 0x100090 poll dhclient 15932 247793 1 0 3 0x80 poll dhclient 14042 397335 0 0 3 0x14200 bored smr 95204 469598 0 0 3 0x14200 pgzero zerothread 43804 469289 0 0 3 0x14200 aiodoned aiodoned 22518 31431 0 0 3 0x14200 syncer update 1151 349861 0 0 3 0x14200 cleaner cleaner 87362 15541 0 0 3 0x14200 reaper reaper 72798 200466 0 0 3 0x14200 pgdaemon pagedaemon 93530 255189 0 0 3 0x14200 bored crynlk 11697 382534 0 0 3 0x14200 bored crypto 98677 305204 0 0 3 0x40014200 acpi0 acpi0 48955 510652 0 0 3 0x14200 bored softnet 60062 484258 0 0 3 0x14200 bored systqmp 3522 266574 0 0 3 0x14200 bored systq 9989 321921 0 0 3 0x40014200 bored softclock 49568 104812 0 0 3 0x40014200 idle0 1 258934 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 9488 6346K 6588K 78643K 10692 0 pcb 13 8K 8K 78643K 36 0 rtable 117 4K 7K 78643K 278 0 ifaddr 64 13K 14K 78643K 87 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 23 0 iov 0 0K 12K 78643K 20 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1260 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 10 0K 0K 78643K 10 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 122 0 sigio 0 0K 0K 78643K 14 0 proc 48 38K 54K 78643K 385 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 4 0 in_multi 44 2K 2K 78643K 64 0 ether_multi 1 0K 0K 78643K 3 0 mrt 0 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 195 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 119 22K 24K 78643K 1132 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 16 0 NDP 10 0K 0K 78643K 17 0 temp 85 3850K 3918K 78643K 2513 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 6 0 0 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 54 0 8 2 0 2 2 0 8 0 unpcb 120 123 0 115 1 0 1 1 0 8 0 syncache 264 8 0 8 2 1 1 1 0 8 1 tcpqe 32 87 0 87 1 1 0 1 0 8 0 tcpcb 544 60 0 56 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 45 0 45 1 0 1 1 0 8 1 inpcb 296 129 0 122 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 11 0 4 1 0 1 1 0 8 0 pfrktable 1344 22 0 20 1 0 1 1 0 8 0 pftag 88 4 0 4 1 0 1 1 0 8 1 pfrule 1360 6 0 4 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 51 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1554 0 156 88 0 88 88 0 8 0 ffsino 240 1554 0 156 83 0 83 83 0 8 0 nchpl 144 1912 0 321 60 0 60 60 0 8 0 uvmvnodes 72 1623 0 0 30 0 30 30 0 8 0 vnodes 208 1623 0 0 86 0 86 86 0 8 0 namei 1024 5089 0 5089 1 0 1 1 0 8 1 vmpool 528 2 0 2 1 0 1 1 0 8 1 pfiaddrpl 120 8 0 6 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 5729 0 5729 1 0 1 1 0 8 1 plimitpl 152 28 0 21 1 0 1 1 0 8 0 sigapl 424 309 0 281 4 0 4 4 0 8 0 futexpl 56 2454 0 2454 1 0 1 1 0 8 1 knotepl 112 68 0 49 1 0 1 1 0 8 0 kqueuepl 144 22 0 20 1 0 1 1 0 8 0 pipepl 272 86 0 76 1 0 1 1 0 8 0 fdescpl 432 294 0 281 2 0 2 2 0 8 0 filepl 120 1802 0 1707 4 0 4 4 0 8 1 lockfpl 104 31 0 30 1 0 1 1 0 8 0 lockfspl 48 13 0 12 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 126 0 119 1 0 1 1 0 8 0 zombiepl 144 281 0 281 1 0 1 1 0 8 1 processpl 920 309 0 281 4 0 4 4 0 8 0 procpl 624 432 0 398 4 0 4 4 0 8 1 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 276 0 259 4 0 4 4 0 8 2 mcl64k 65536 19 0 19 1 0 1 1 0 8 1 mcl16k 16384 6 0 6 1 0 1 1 0 8 1 mcl12k 12288 5 0 5 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 2 0 2 1 0 1 1 0 8 1 mcl4k 4096 17 0 17 2 1 1 1 0 8 1 mcl2k 2048 76238 0 76194 15 7 8 13 0 8 2 mtagpl 96 8 0 2 2 1 1 1 0 8 0 mbufpl 256 121638 0 121503 22 4 18 20 0 8 8 bufpl 280 3618 0 129 250 0 250 250 0 8 0 anonpl 16 47391 0 31404 82 2 80 80 0 107 15 amapchunkpl 152 1603 0 1476 13 0 13 13 0 158 6 amappl16 192 1592 0 714 55 3 52 55 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 77 0 71 1 0 1 1 0 8 0 amappl13 168 27 0 23 1 0 1 1 0 8 0 amappl12 160 7 0 5 2 1 1 1 0 8 0 amappl11 152 48 0 38 1 0 1 1 0 8 0 amappl10 144 14 0 9 1 0 1 1 0 8 0 amappl9 136 428 0 425 1 0 1 1 0 8 0 amappl8 128 369 0 327 2 0 2 2 0 8 0 amappl7 120 103 0 93 1 0 1 1 0 8 0 amappl6 112 30 0 23 1 0 1 1 0 8 0 amappl5 104 232 0 221 1 0 1 1 0 8 0 amappl4 96 417 0 391 1 0 1 1 0 8 0 amappl3 88 146 0 141 1 0 1 1 0 8 0 amappl2 80 1526 0 1470 2 0 2 2 0 8 0 amappl1 72 14837 0 14438 23 13 10 17 0 8 0 amappl 80 658 0 620 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 296 0 283 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 296 0 283 1 0 1 1 0 8 0 vmmpekpl 168 6129 0 6103 2 0 2 2 0 8 0 vmmpepl 168 42633 0 40777 115 11 104 109 0 357 18 vmsppl 272 295 0 283 3 1 2 2 0 8 1 pdppl 4096 598 0 566 6 1 5 6 0 8 0 pvpl 32 151769 0 132898 200 0 200 200 0 265 44 pmappl 200 295 0 283 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 252 0 16 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(ffffffff8241babb) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805baf4700,5c,344,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1ee0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6d7d8,9,fffffd805baf4600,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da6d7d8,0,ffff80001d6c9ff8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d7174f0,4,ffff80001d6c9ff8,0,ffff80001d6ca0e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d6ca090,ffff80001d6ca0e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca160) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3c60, 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(ffffffff8241babb) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805baf4700,5c,344,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1ee0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da6d7d8,9,fffffd805baf4600,0,0,ffff80001d7174f0) at tcp_usrreq+0xa54 sosend(fffffd805da6d7d8,0,ffff80001d6c9ff8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d7174f0,4,ffff80001d6c9ff8,0,ffff80001d6ca0e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7174f0,ffff80001d6ca090,ffff80001d6ca0e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6ca160) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3c60, count: -10