panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *168782 43634 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd802d3f2b00,304,53c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000a60320) at tcp_output+0x14d6 sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd80363c8788,9,fffffd802d3f2a00,0,0,ffff8000ffff4010) at tcp_usrreq+0xa54 sosend(fffffd80363c8788,0,ffff800014866798,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff4010,4,ffff800014866798,0,ffff800014866880) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff4010,ffff800014866830,ffff800014866880) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800014866900) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3da0, 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() at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd802d3f2b00,304,53c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000a60320) at tcp_output+0x14d6 sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd80363c8788,9,fffffd802d3f2a00,0,0,ffff8000ffff4010) at tcp_usrreq+0xa54 sosend(fffffd80363c8788,0,ffff800014866798,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff4010,4,ffff800014866798,0,ffff800014866880) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff4010,ffff800014866830,ffff800014866880) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800014866900) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3da0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014866280 rbx 0xffff800014866330 rdx 0x2 rcx 0 rax 0 r8 0xffff800014866240 r9 0x1 r10 0 r11 0x1b53ee608a7a2e7f r12 0x3000000008 r13 0xffff800014866290 r14 0x100 r15 0x1 rip 0xffffffff81a4ef68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014866270 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=168782 stat=onproc flags process=12 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff49f0,0xffff8000ffff4510 process=0xffff8000148a2a38 user=0xffff800014861000, vmspace=0xfffffd803f013bb0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 20562 470362 3666 0 2 0 syz-executor.1 20562 448534 3666 0 2 0x4000000 syz-executor.1 83867 279030 1313 0 2 0x2 syz-executor.0 3666 224935 1313 0 3 0x82 nanosleep syz-executor.1 89851 294980 0 0 3 0x14200 acct acct 5363 416187 1 0 3 0x100083 ttyin getty 53797 150653 0 0 3 0x14200 bored sosplice 1313 251175 99141 0 3 0x82 thrsleep syz-fuzzer 1313 225772 99141 0 2 0x4000002 syz-fuzzer 1313 185726 99141 0 2 0x4000002 syz-fuzzer 1313 30306 99141 0 3 0x4000082 thrsleep syz-fuzzer 1313 127420 99141 0 3 0x4000082 thrsleep syz-fuzzer 1313 335038 99141 0 3 0x4000082 thrsleep syz-fuzzer 1313 160073 99141 0 3 0x4000082 thrsleep syz-fuzzer 1313 22055 99141 0 3 0x4000082 thrsleep syz-fuzzer 99141 63473 43634 0 3 0x10008a pause ksh *43634 168782 73749 0 7 0x12 sshd 73749 201679 1 0 3 0x80 select sshd 64186 238474 78864 73 3 0x100090 kqread syslogd 78864 231416 1 0 3 0x100082 netio syslogd 21259 495721 1 77 3 0x100090 poll dhclient 99306 278123 1 0 3 0x80 poll dhclient 14552 255938 0 0 2 0x14200 zerothread 81115 301611 0 0 3 0x14200 aiodoned aiodoned 2642 113570 0 0 3 0x14200 syncer update 11777 520523 0 0 3 0x14200 cleaner cleaner 52133 108202 0 0 3 0x14200 reaper reaper 3173 488009 0 0 3 0x14200 pgdaemon pagedaemon 51787 359979 0 0 3 0x14200 bored crynlk 81405 173545 0 0 3 0x14200 bored crypto 17377 227153 0 0 3 0x40014200 acpi0 acpi0 92665 365640 0 0 3 0x14200 bored softnet 13401 227739 0 0 3 0x14200 bored systqmp 12601 228454 0 0 3 0x14200 bored systq 15525 516269 0 0 3 0x40014200 bored softclock 42798 372497 0 0 3 0x40014200 idle0 73685 89789 0 0 3 0x14200 bored smr 1 491835 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 Kern Lim devbuf 9585 7004K 7884K 78643K 15534 0 0 pcb 13 9K 9K 78643K 382 0 0 rtable 112 12K 12K 78643K 1239 0 0 ifaddr 141 20K 20K 78643K 369 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 134 0 0 iov 0 0K 28K 78643K 880 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1216 76K 77K 78643K 2785 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 23 0 0 VM map 23 5K 5K 78643K 30 0 0 sem 12 0K 1K 78643K 292 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1508 0 0 sigio 0 0K 0K 78643K 187 0 0 proc 49 38K 55K 78643K 865 0 0 subproc 32 2K 2K 78643K 187 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 112 0 0 in_multi 54 3K 3K 78643K 306 0 0 ether_multi 1 0K 0K 78643K 23 0 0 mrt 0 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 487 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 151 187K 187K 78643K 4646 0 0 UVM aobj 106 8K 8K 78643K 114 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 369 0 0 NDP 18 0K 0K 78643K 96 0 0 temp 158 3535K 3609K 78643K 63586 0 0 kqueue 0 0K 0K 78643K 10 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 46 0 42 1 0 1 1 0 8 0 rtpcb 80 735 0 733 2 1 1 2 0 8 0 rtentry 112 261 0 221 2 0 2 2 0 8 0 unpcb 120 873 0 863 2 1 1 2 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpqe 32 9 0 9 2 2 0 1 0 8 0 tcpcb 544 546 0 542 1 0 1 1 0 8 0 ipq 40 36 0 36 6 5 1 1 0 8 1 ipqe 40 992 0 992 6 5 1 1 0 8 1 inpcb 280 3479 0 3472 9 5 4 4 0 8 3 rttmr 72 4 0 4 2 2 0 1 0 8 0 nd6 48 35 0 32 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 25 0 25 7 6 1 1 0 8 1 art_heap8 4096 10 0 8 7 4 3 3 0 8 1 art_heap4 256 1145 0 924 22 7 15 17 0 8 0 art_table 32 1155 0 932 3 1 2 3 0 8 0 art_node 16 260 0 223 1 0 1 1 0 8 0 sysvmsgpl 40 79 0 54 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 288 0 278 1 0 1 1 0 8 0 shmpl 112 112 0 8 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3798 0 2399 46 0 46 46 0 8 0 ffsino 240 3798 0 2399 83 0 83 83 0 8 0 nchpl 144 6298 0 5843 60 40 20 60 0 8 0 uvmvnodes 72 5075 0 0 93 0 93 93 0 8 0 vnodes 208 5075 0 0 268 0 268 268 0 8 0 namei 1024 20783 0 20783 2 1 1 1 0 8 1 vcpupl 1984 22 0 1 3 0 3 3 0 8 0 vmpool 520 28 0 7 3 1 2 2 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 24533 0 24533 15 13 2 7 0 8 2 plimitpl 152 147 0 140 1 0 1 1 0 8 0 sigapl 432 1652 0 1639 2 0 2 2 0 8 0 futexpl 56 49401 0 49401 3 2 1 1 0 8 1 knotepl 112 369 0 350 1 0 1 1 0 8 0 kqueuepl 104 450 0 448 1 0 1 1 0 8 0 pipepl 128 1512 0 1493 4 2 2 2 0 8 0 fdescpl 424 1653 0 1639 2 0 2 2 0 8 0 filepl 120 15532 0 15437 14 8 6 6 0 8 3 lockfpl 104 649 0 648 1 0 1 1 0 8 0 lockfspl 48 202 0 201 1 0 1 1 0 8 0 sessionpl 112 27 0 17 1 0 1 1 0 8 0 pgrppl 48 51 0 41 1 0 1 1 0 8 0 ucredpl 96 1527 0 1519 1 0 1 1 0 8 0 zombiepl 144 1639 0 1639 1 0 1 1 0 8 1 processpl 864 1669 0 1639 4 0 4 4 0 8 0 procpl 632 3484 0 3446 4 0 4 4 0 8 0 sosppl 128 46 0 46 7 6 1 1 0 8 1 sockpl 384 5163 0 5144 22 16 6 8 0 8 3 mcl64k 65536 223 0 223 5 1 4 4 0 8 4 mcl16k 16384 20 0 20 8 7 1 1 0 8 1 mcl12k 12288 46 0 46 4 3 1 1 0 8 1 mcl9k 9216 28 0 28 6 6 0 1 0 8 0 mcl8k 8192 85 0 85 4 3 1 1 0 8 1 mcl4k 4096 227 0 227 3 2 1 1 0 8 1 mcl2k2 2112 25 0 25 5 4 1 1 0 8 1 mcl2k 2048 71820 0 71777 17 11 6 12 0 8 0 mtagpl 80 90 0 77 2 1 1 1 0 8 0 mbufpl 256 136731 0 136546 73 40 33 33 0 8 11 bufpl 256 13688 0 6493 450 0 450 450 0 8 0 anonpl 16 217504 0 198990 128 26 102 102 0 62 12 amapchunkpl 152 9032 0 8874 42 25 17 20 0 158 10 amappl16 192 9400 0 8141 113 42 71 75 0 8 7 amappl15 184 476 0 476 2 1 1 1 0 8 1 amappl14 176 833 0 829 1 0 1 1 0 8 0 amappl13 168 3 0 2 1 0 1 1 0 8 0 amappl12 160 20 0 18 3 2 1 1 0 8 0 amappl11 152 212 0 201 1 0 1 1 0 8 0 amappl10 144 217 0 212 1 0 1 1 0 8 0 amappl9 136 718 0 714 1 0 1 1 0 8 0 amappl8 128 313 0 272 3 1 2 2 0 8 0 amappl7 120 276 0 267 1 0 1 1 0 8 0 amappl6 112 186 0 177 1 0 1 1 0 8 0 amappl5 104 228 0 218 1 0 1 1 0 8 0 amappl4 96 1822 0 1794 1 0 1 1 0 8 0 amappl3 88 771 0 766 1 0 1 1 0 8 0 amappl2 80 12115 0 12042 3 1 2 3 0 8 0 amappl1 72 40017 0 39609 25 16 9 20 0 8 0 amappl 80 3860 0 3805 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 113 0 8 2 0 2 2 0 8 0 uaddrrnd 24 1681 0 1639 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1681 0 1639 1 0 1 1 0 8 0 vmmpekpl 168 15218 0 15189 2 0 2 2 0 8 0 vmmpepl 168 210143 0 207732 231 78 153 153 0 357 42 vmsppl 272 1652 0 1639 3 2 1 2 0 8 0 pdppl 4096 3368 0 3313 9 1 8 8 0 8 0 pvpl 32 632765 0 611863 371 104 267 333 0 265 65 pmappl 200 1680 0 1646 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 692 0 81 18 0 18 18 0 8 0