panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 81352 18222 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824233fe) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805e42bb00,1d4,22c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2660) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70328,9,fffffd805e42ba00,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da70328,0,ffff80001d723918,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d723918,0,ffff80001d723a00) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d7239b0,ffff80001d723a00) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723a80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9380, 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(ffffffff824233fe) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805e42bb00,1d4,22c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2660) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70328,9,fffffd805e42ba00,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da70328,0,ffff80001d723918,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d723918,0,ffff80001d723a00) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d7239b0,ffff80001d723a00) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723a80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9380, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d7233e0 rbx 0xffff80001d723490 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81fc279f kprintf+0x15f r9 0x1 r10 0x2 r11 0x2d963e4a701d5377 r12 0x3000000008 r13 0xffff80001d7233f0 r14 0x100 r15 0x1 rip 0xffffffff8175b418 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d7233d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=81352 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71c760,0xffff80001d71cc50 process=0xffff80001d706af8 user=0xffff80001d71e000, 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 81336 264861 75093 0 2 0 syz-executor.1 81336 162215 75093 0 2 0x4000000 syz-executor.1 87836 356433 0 0 3 0x14200 bored sosplice 95940 83170 0 0 3 0x14200 acct acct 61039 14810 51128 0 2 0x2 syz-executor.0 75093 429903 51128 0 3 0x82 nanosleep syz-executor.1 51128 41450 43075 0 3 0x82 thrsleep syz-fuzzer 51128 490939 43075 0 2 0x4000002 syz-fuzzer 51128 480474 43075 0 3 0x4000082 thrsleep syz-fuzzer 51128 217183 43075 0 3 0x4000082 thrsleep syz-fuzzer 51128 227898 43075 0 3 0x4000082 thrsleep syz-fuzzer 51128 415462 43075 0 2 0x4000002 syz-fuzzer 51128 307790 43075 0 3 0x4000082 thrsleep syz-fuzzer 43075 277664 18222 0 3 0x10008a pause ksh *18222 81352 1893 0 7 0x12 sshd 52653 412544 1 0 3 0x100083 ttyin getty 1893 478835 1 0 3 0x80 select sshd 84091 46501 3207 73 3 0x100090 kqread syslogd 3207 436825 1 0 3 0x100082 netio syslogd 49149 375026 1 77 3 0x100090 poll dhclient 58647 988 1 0 3 0x80 poll dhclient 89221 477317 0 0 3 0x14200 bored smr 40259 259791 0 0 2 0x14200 zerothread 45422 465925 0 0 3 0x14200 aiodoned aiodoned 23027 320839 0 0 3 0x14200 syncer update 49565 409128 0 0 3 0x14200 cleaner cleaner 42220 258168 0 0 3 0x14200 reaper reaper 38312 160498 0 0 3 0x14200 pgdaemon pagedaemon 84430 31221 0 0 3 0x14200 bored crynlk 57221 150009 0 0 3 0x14200 bored crypto 76870 505407 0 0 3 0x40014200 acpi0 acpi0 50583 159849 0 0 3 0x14200 bored softnet 44320 359212 0 0 3 0x14200 bored systqmp 33105 241169 0 0 3 0x14200 bored systq 36520 383385 0 0 3 0x40014200 bored softclock 42767 88296 0 0 3 0x40014200 idle0 1 484015 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 9457 6326K 6715K 78643K 10715 0 pcb 13 8K 8K 78643K 55 0 rtable 92 4K 8K 78643K 380 0 ifaddr 49 11K 12K 78643K 104 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 41 0 iov 0 0K 16K 78643K 20 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1279 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 48 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 191 0 proc 49 38K 54K 78643K 370 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 12 0 in_multi 37 2K 2K 78643K 60 0 ether_multi 1 0K 0K 78643K 9 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 189 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 23K 23K 78643K 1281 0 UVM aobj 13 6K 7K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 27 0 NDP 6 0K 0K 78643K 10 0 temp 73 3854K 3918K 78643K 3848 0 kqueue 3 4K 22K 78643K 17 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 85 0 83 1 0 1 1 0 8 0 rtentry 112 46 0 12 2 0 2 2 0 8 0 unpcb 120 77 0 69 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 192 0 192 1 1 0 1 0 8 0 tcpcb 544 168 0 144 2 0 2 2 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 8 0 8 1 1 0 1 0 8 0 inpcb 296 446 0 439 2 0 2 2 0 8 1 nd6 48 7 0 0 1 0 1 1 0 8 0 pfrktable 1344 86 0 83 1 0 1 1 0 8 0 pftag 88 15 0 14 1 0 1 1 0 8 0 pfrule 1360 14 0 10 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 205 0 28 13 0 13 13 0 8 0 art_table 32 206 0 28 2 0 2 2 0 8 0 art_node 16 45 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 40 0 30 1 0 1 1 0 8 0 shmpl 112 12 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1626 0 225 88 0 88 88 0 8 0 ffsino 240 1626 0 225 83 0 83 83 0 8 0 nchpl 144 2067 0 475 60 0 60 60 0 8 0 uvmvnodes 72 1709 0 0 32 0 32 32 0 8 0 vnodes 208 1709 0 0 90 0 90 90 0 8 0 namei 1024 5252 0 5252 1 0 1 1 0 8 1 pfiaddrpl 120 26 0 24 1 0 1 1 0 8 0 scxspl 192 6371 0 6371 1 0 1 1 0 8 1 plimitpl 152 17 0 10 1 0 1 1 0 8 0 sigapl 424 379 0 349 4 0 4 4 0 8 0 futexpl 56 3499 0 3499 1 0 1 1 0 8 1 knotepl 112 79 0 60 1 0 1 1 0 8 0 kqueuepl 144 28 0 26 1 0 1 1 0 8 0 pipepl 272 85 0 75 1 0 1 1 0 8 0 fdescpl 432 363 0 349 2 0 2 2 0 8 0 filepl 120 2140 0 2045 4 0 4 4 0 8 1 lockfpl 104 36 0 35 1 0 1 1 0 8 0 lockfspl 48 14 0 13 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 181 0 174 1 0 1 1 0 8 0 zombiepl 144 349 0 349 1 0 1 1 0 8 1 processpl 928 379 0 349 4 0 4 4 0 8 0 procpl 624 584 0 547 5 1 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 609 0 592 4 0 4 4 0 8 2 mcl64k 65536 524 0 524 33 16 17 33 0 8 17 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl12k 12288 4 0 4 3 2 1 1 0 8 1 mcl9k 9216 5 0 5 2 2 0 1 0 8 0 mcl8k 8192 11 0 11 1 1 0 1 0 8 0 mcl4k 4096 20 0 20 3 2 1 1 0 8 1 mcl2k2 2112 2 0 2 2 1 1 1 0 8 1 mcl2k 2048 95185 0 95139 15 8 7 13 0 8 0 mtagpl 96 10 0 4 2 1 1 1 0 8 0 mbufpl 256 152212 0 152123 22 13 9 21 0 8 1 bufpl 280 3794 0 124 263 0 263 263 0 8 0 anonpl 16 52560 0 35972 80 10 70 78 0 107 3 amapchunkpl 152 1512 0 1381 7 1 6 7 0 158 0 amappl16 192 1897 0 989 55 8 47 54 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 110 0 101 1 0 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 11 0 8 1 0 1 1 0 8 0 amappl11 152 122 0 111 1 0 1 1 0 8 0 amappl10 144 13 0 9 1 0 1 1 0 8 0 amappl9 136 438 0 436 1 0 1 1 0 8 0 amappl8 128 404 0 364 2 0 2 2 0 8 0 amappl7 120 106 0 94 1 0 1 1 0 8 0 amappl6 112 24 0 19 1 0 1 1 0 8 0 amappl5 104 255 0 245 1 0 1 1 0 8 0 amappl4 96 505 0 469 1 0 1 1 0 8 0 amappl3 88 188 0 180 1 0 1 1 0 8 0 amappl2 80 2081 0 2015 2 0 2 2 0 8 0 amappl1 72 17227 0 16823 22 13 9 17 0 8 0 amappl 80 806 0 765 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 14 0 2 1 0 1 1 0 8 0 uaddrrnd 24 363 0 349 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 363 0 349 1 0 1 1 0 8 0 vmmpekpl 168 6399 0 6372 2 0 2 2 0 8 0 vmmpepl 168 51928 0 49928 122 19 103 118 0 357 14 vmsppl 272 362 0 349 2 1 1 2 0 8 0 pdppl 4096 732 0 698 6 1 5 6 0 8 0 pvpl 32 165782 0 146228 185 8 177 185 0 265 19 pmappl 200 362 0 349 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 287 0 46 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(ffffffff824233fe) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805e42bb00,1d4,22c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2660) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70328,9,fffffd805e42ba00,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da70328,0,ffff80001d723918,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d723918,0,ffff80001d723a00) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d7239b0,ffff80001d723a00) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723a80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9380, 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(ffffffff824233fe) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805e42bb00,1d4,22c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2660) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70328,9,fffffd805e42ba00,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da70328,0,ffff80001d723918,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d723918,0,ffff80001d723a00) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d7239b0,ffff80001d723a00) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723a80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9380, count: -10