panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *332136 13996 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241abd8) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80582a5700,6d4,2e4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1660) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da71008,9,fffffd80582a5600,0,0,ffff80001d71dae0) at tcp_usrreq+0xa54 sosend(fffffd805da71008,0,ffff80001d722eb8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71dae0,4,ffff80001d722eb8,0,ffff80001d722fa0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71dae0,ffff80001d722f50,ffff80001d722fa0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723020) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4640, 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(ffffffff8241abd8) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80582a5700,6d4,2e4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1660) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da71008,9,fffffd80582a5600,0,0,ffff80001d71dae0) at tcp_usrreq+0xa54 sosend(fffffd805da71008,0,ffff80001d722eb8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71dae0,4,ffff80001d722eb8,0,ffff80001d722fa0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71dae0,ffff80001d722f50,ffff80001d722fa0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723020) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4640, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d722980 rbx 0xffff80001d722a30 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff810c775f kprintf+0x15f r9 0x1 r10 0x2 r11 0xc825d88cc204d5f4 r12 0x3000000008 r13 0xffff80001d722990 r14 0x100 r15 0x1 rip 0xffffffff8211f228 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d722970 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=332136 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d120,0xffff80001d71c9e0 process=0xffff80001d706af8 user=0xffff80001d71e000, 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 19316 177410 15245 0 2 0x2 syz-executor.1 29398 39373 15245 0 2 0x2 syz-executor.0 15245 212368 86774 0 3 0x82 thrsleep syz-fuzzer 15245 108780 86774 0 3 0x4000082 nanosleep syz-fuzzer 15245 474639 86774 0 3 0x4000082 thrsleep syz-fuzzer 15245 59745 86774 0 3 0x4000082 thrsleep syz-fuzzer 15245 110889 86774 0 3 0x4000082 thrsleep syz-fuzzer 15245 395522 86774 0 2 0x4000002 syz-fuzzer 15245 229659 86774 0 3 0x4000082 thrsleep syz-fuzzer 86774 403731 13996 0 3 0x10008a pause ksh *13996 332136 24236 0 7 0x12 sshd 40282 307528 1 0 3 0x100083 ttyin getty 24236 457680 1 0 3 0x80 select sshd 75928 163769 74170 73 3 0x100090 kqread syslogd 74170 361118 1 0 3 0x100082 netio syslogd 99757 80441 1 77 3 0x100090 poll dhclient 52094 125429 1 0 3 0x80 poll dhclient 98043 64838 0 0 3 0x14200 bored smr 72947 55133 0 0 3 0x14200 pgzero zerothread 52560 177291 0 0 3 0x14200 aiodoned aiodoned 53370 495244 0 0 3 0x14200 syncer update 28944 440183 0 0 3 0x14200 cleaner cleaner 87956 45373 0 0 3 0x14200 reaper reaper 21401 147723 0 0 3 0x14200 pgdaemon pagedaemon 62775 357895 0 0 3 0x14200 bored crynlk 98431 217283 0 0 3 0x14200 bored crypto 15813 122110 0 0 3 0x40014200 acpi0 acpi0 65136 411595 0 0 2 0x14200 softnet 15336 439445 0 0 3 0x14200 bored systqmp 20410 323477 0 0 3 0x14200 bored systq 57815 339720 0 0 3 0x40014200 bored softclock 5156 248461 0 0 3 0x40014200 idle0 1 73935 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 9475 6397K 6846K 78643K 10735 0 pcb 13 8K 8K 78643K 31 0 rtable 105 3K 3K 78643K 195 0 ifaddr 54 12K 12K 78643K 59 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 27 0 iov 0 0K 2K 78643K 12 0 mount 1 1K 1K 78643K 1 0 vnodes 1226 77K 77K 78643K 1270 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 12 0K 0K 78643K 14 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 83 0 sigio 0 0K 0K 78643K 2 0 proc 48 38K 63K 78643K 369 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 3 0 in_multi 40 2K 2K 78643K 45 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 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 183 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 124 39K 39K 78643K 1069 0 UVM aobj 7 2K 2K 78643K 7 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 8 0K 0K 78643K 12 0 temp 75 3850K 3914K 78643K 1936 0 kqueue 3 4K 8K 78643K 5 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 45 0 1 2 0 2 2 0 8 0 unpcb 120 73 0 65 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 823 0 823 1 0 1 1 0 8 1 tcpcb 544 30 0 26 1 0 1 1 0 8 0 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 4 0 4 1 0 1 1 0 8 1 inpcb 296 134 0 127 2 0 2 2 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 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 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 44 0 4 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1487 0 88 88 0 88 88 0 8 0 ffsino 240 1487 0 88 83 0 83 83 0 8 0 nchpl 144 1778 0 176 60 0 60 60 0 8 0 uvmvnodes 72 1571 0 0 29 0 29 29 0 8 0 vnodes 208 1571 0 0 83 0 83 83 0 8 0 namei 1024 4435 0 4434 2 1 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 2 0 0 1 0 1 1 0 8 0 scxspl 192 4909 0 4909 1 0 1 1 0 8 1 plimitpl 152 18 0 11 1 0 1 1 0 8 0 sigapl 424 269 0 242 4 0 4 4 0 8 0 futexpl 56 1239 0 1239 1 0 1 1 0 8 1 knotepl 112 63 0 44 1 0 1 1 0 8 0 kqueuepl 144 12 0 10 1 0 1 1 0 8 0 pipepl 272 74 0 64 1 0 1 1 0 8 0 fdescpl 432 255 0 242 2 0 2 2 0 8 0 filepl 120 1349 0 1254 4 0 4 4 0 8 1 lockfpl 104 19 0 18 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 19 0 9 1 0 1 1 0 8 0 ucredpl 96 72 0 65 1 0 1 1 0 8 0 zombiepl 144 242 0 242 2 1 1 1 0 8 1 processpl 928 269 0 242 4 0 4 4 0 8 0 procpl 624 330 0 297 3 0 3 3 0 8 0 sockpl 400 226 0 209 4 0 4 4 0 8 2 mcl64k 65536 12 0 12 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 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 3 0 3 1 0 1 1 0 8 1 mcl4k 4096 12 0 11 2 1 1 1 0 8 0 mcl2k 2048 73329 0 73267 25 9 16 22 0 8 7 mtagpl 96 4 0 2 2 1 1 1 0 8 0 mbufpl 256 116945 0 116844 15 2 13 13 0 8 4 bufpl 280 3336 0 125 230 0 230 230 0 8 0 anonpl 16 48712 0 33165 68 1 67 67 0 107 0 amapchunkpl 152 1734 0 1591 8 0 8 8 0 158 2 amappl16 192 1264 0 369 46 0 46 46 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 25 0 19 1 0 1 1 0 8 0 amappl13 168 49 0 45 1 0 1 1 0 8 0 amappl12 160 39 0 33 1 0 1 1 0 8 0 amappl11 152 47 0 38 1 0 1 1 0 8 0 amappl10 144 16 0 12 1 0 1 1 0 8 0 amappl9 136 350 0 349 1 0 1 1 0 8 0 amappl8 128 317 0 279 2 0 2 2 0 8 0 amappl7 120 115 0 102 1 0 1 1 0 8 0 amappl6 112 20 0 19 1 0 1 1 0 8 0 amappl5 104 220 0 209 1 0 1 1 0 8 0 amappl4 96 445 0 415 1 0 1 1 0 8 0 amappl3 88 124 0 118 1 0 1 1 0 8 0 amappl2 80 1218 0 1162 2 0 2 2 0 8 0 amappl1 72 14263 0 13862 23 10 13 17 0 8 3 amappl 80 597 0 556 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 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 257 0 242 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 257 0 242 1 0 1 1 0 8 0 vmmpekpl 168 5788 0 5758 2 0 2 2 0 8 0 vmmpepl 168 38593 0 36701 120 6 114 114 0 357 26 vmsppl 272 256 0 242 2 0 2 2 0 8 1 pdppl 4096 520 0 486 6 0 6 6 0 8 1 pvpl 32 143542 0 125122 158 0 158 158 0 265 1 pmappl 200 256 0 242 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 254 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(ffffffff8241abd8) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80582a5700,6d4,2e4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1660) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da71008,9,fffffd80582a5600,0,0,ffff80001d71dae0) at tcp_usrreq+0xa54 sosend(fffffd805da71008,0,ffff80001d722eb8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71dae0,4,ffff80001d722eb8,0,ffff80001d722fa0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71dae0,ffff80001d722f50,ffff80001d722fa0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723020) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4640, 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(ffffffff8241abd8) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80582a5700,6d4,2e4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1660) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da71008,9,fffffd80582a5600,0,0,ffff80001d71dae0) at tcp_usrreq+0xa54 sosend(fffffd805da71008,0,ffff80001d722eb8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71dae0,4,ffff80001d722eb8,0,ffff80001d722fa0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71dae0,ffff80001d722f50,ffff80001d722fa0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723020) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4640, count: -10