panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *249014 91289 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(fffffd805a9bb300,224,524,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1880) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da73e18,9,fffffd805a9bb200,0,0,ffff80001d717010) at tcp_usrreq+0xa54 sosend(fffffd805da73e18,0,ffff80001d71eaa8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717010,4,ffff80001d71eaa8,0,ffff80001d71eb90) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717010,ffff80001d71eb40,ffff80001d71eb90) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71ec10) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9be0, 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(fffffd805a9bb300,224,524,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1880) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da73e18,9,fffffd805a9bb200,0,0,ffff80001d717010) at tcp_usrreq+0xa54 sosend(fffffd805da73e18,0,ffff80001d71eaa8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717010,4,ffff80001d71eaa8,0,ffff80001d71eb90) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717010,ffff80001d71eb40,ffff80001d71eb90) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71ec10) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9be0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71e570 rbx 0xffff80001d71e620 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff811c348f kprintf+0x15f r9 0x1 r10 0x2 r11 0x515501773c1be7c r12 0x3000000008 r13 0xffff80001d71e580 r14 0x100 r15 0x1 rip 0xffffffff813bfda8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71e560 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=249014 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d7179d0,0xffff80001d717ec0 process=0xffff8000ffff8ae0 user=0xffff80001d719000, vmspace=0xfffffd806bc0acc0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 2642 419248 7200 0 2 0 syz-executor.0 2642 131262 7200 0 2 0x4000000 syz-executor.0 95567 285485 49151 0 2 0x2 syz-executor.1 7200 67176 49151 0 3 0x82 nanosleep syz-executor.0 49151 415473 49986 0 3 0x82 thrsleep syz-fuzzer 49151 523793 49986 0 3 0x4000082 nanosleep syz-fuzzer 49151 94782 49986 0 3 0x4000082 thrsleep syz-fuzzer 49151 478500 49986 0 3 0x4000082 thrsleep syz-fuzzer 49151 115368 49986 0 3 0x4000082 thrsleep syz-fuzzer 49151 220380 49986 0 2 0x4000002 syz-fuzzer 49151 340407 49986 0 3 0x4000082 thrsleep syz-fuzzer 49151 503704 49986 0 3 0x4000082 thrsleep syz-fuzzer 49986 237234 91289 0 3 0x10008a pause ksh *91289 249014 1718 0 7 0x12 sshd 37165 451219 1 0 3 0x100083 ttyin getty 1718 292571 1 0 3 0x80 select sshd 76189 301907 86861 73 3 0x100090 kqread syslogd 86861 445789 1 0 3 0x100082 netio syslogd 21454 2575 1 77 3 0x100090 poll dhclient 14971 465986 1 0 3 0x80 poll dhclient 3029 428029 0 0 3 0x14200 bored smr 38777 417895 0 0 2 0x14200 zerothread 74289 252751 0 0 3 0x14200 aiodoned aiodoned 55813 517621 0 0 3 0x14200 syncer update 36498 521101 0 0 3 0x14200 cleaner cleaner 63608 517578 0 0 3 0x14200 reaper reaper 35960 28459 0 0 3 0x14200 pgdaemon pagedaemon 32633 415542 0 0 3 0x14200 bored crynlk 85303 448882 0 0 3 0x14200 bored crypto 40272 383328 0 0 3 0x40014200 acpi0 acpi0 4741 473633 0 0 3 0x14200 bored softnet 52354 510381 0 0 3 0x14200 bored systqmp 13344 57884 0 0 3 0x14200 bored systq 77512 509760 0 0 3 0x40014200 bored softclock 4081 343745 0 0 3 0x40014200 idle0 1 329775 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 9483 6524K 7042K 78643K 10711 0 pcb 13 8K 8K 78643K 32 0 rtable 110 4K 4K 78643K 204 0 ifaddr 51 11K 12K 78643K 55 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 19 0 iov 0 0K 4K 78643K 6 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1258 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 22 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 64 0 proc 48 38K 54K 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 6 0 in_multi 40 2K 2K 78643K 59 0 ether_multi 1 0K 0K 78643K 6 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 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 115 22K 23K 78643K 979 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 14 0 NDP 7 0K 0K 78643K 11 0 temp 70 3849K 3913K 78643K 1866 0 kqueue 3 4K 4K 78643K 3 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 47 0 3 2 0 2 2 0 8 0 unpcb 120 49 0 41 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 151 0 151 2 1 1 1 0 8 1 tcpcb 544 30 0 24 1 0 1 1 0 8 0 inpcb 296 87 0 78 2 0 2 2 0 8 1 nd6 48 8 0 2 1 0 1 1 0 8 0 pfrktable 1344 3 0 1 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfrule 1360 2 0 0 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 46 0 6 1 0 1 1 0 8 0 semapl 112 20 0 10 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1459 0 59 88 0 88 88 0 8 0 ffsino 240 1459 0 59 83 0 83 83 0 8 0 nchpl 144 1726 0 123 60 0 60 60 0 8 0 uvmvnodes 72 1534 0 0 28 0 28 28 0 8 0 vnodes 208 1534 0 0 81 0 81 81 0 8 0 namei 1024 4330 0 4330 1 0 1 1 0 8 1 vmpool 528 2 0 2 1 0 1 1 0 8 1 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 scxspl 192 4925 0 4925 1 0 1 1 0 8 1 plimitpl 152 14 0 7 1 0 1 1 0 8 0 sigapl 424 250 0 222 4 0 4 4 0 8 0 futexpl 56 852 0 852 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 6 0 4 1 0 1 1 0 8 0 pipepl 272 74 0 64 2 0 2 2 0 8 1 fdescpl 432 236 0 222 2 0 2 2 0 8 0 filepl 120 1232 0 1137 4 0 4 4 0 8 1 lockfpl 104 17 0 16 1 0 1 1 0 8 0 lockfspl 48 9 0 8 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 75 0 68 1 0 1 1 0 8 0 zombiepl 144 222 0 222 1 0 1 1 0 8 1 processpl 920 250 0 222 4 0 4 4 0 8 0 procpl 624 292 0 256 4 0 4 4 0 8 1 sockpl 400 156 0 137 3 0 3 3 0 8 1 mcl64k 65536 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 mcl4k 4096 10 0 10 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 77293 0 77253 18 5 13 15 0 8 7 mtagpl 96 21 0 2 2 1 1 1 0 8 0 mbufpl 256 123184 0 123064 11 2 9 9 0 8 0 bufpl 280 3306 0 126 228 0 228 228 0 8 0 anonpl 16 39069 0 22934 68 2 66 66 0 107 0 amapchunkpl 152 1115 0 972 8 0 8 8 0 158 2 amappl16 192 1090 0 214 44 0 44 44 0 8 0 amappl15 184 21 0 17 1 0 1 1 0 8 0 amappl14 176 37 0 31 1 0 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 8 0 4 1 0 1 1 0 8 0 amappl11 152 41 0 32 1 0 1 1 0 8 0 amappl10 144 12 0 6 1 0 1 1 0 8 0 amappl9 136 28 0 26 1 0 1 1 0 8 0 amappl8 128 324 0 284 2 0 2 2 0 8 0 amappl7 120 105 0 93 1 0 1 1 0 8 0 amappl6 112 26 0 20 2 1 1 1 0 8 0 amappl5 104 879 0 868 1 0 1 1 0 8 0 amappl4 96 416 0 389 1 0 1 1 0 8 0 amappl3 88 116 0 109 1 0 1 1 0 8 0 amappl2 80 1071 0 1007 2 0 2 2 0 8 0 amappl1 72 14114 0 13704 24 7 17 17 0 8 8 amappl 80 517 0 476 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 238 0 224 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 238 0 224 1 0 1 1 0 8 0 vmmpekpl 168 5830 0 5803 2 0 2 2 0 8 0 vmmpepl 168 36324 0 34365 130 12 118 118 0 357 32 vmsppl 272 237 0 224 2 0 2 2 0 8 1 pdppl 4096 482 0 448 6 0 6 6 0 8 1 pvpl 32 131896 0 112812 156 0 156 156 0 265 0 pmappl 200 237 0 224 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 241 0 10 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(fffffd805a9bb300,224,524,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1880) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da73e18,9,fffffd805a9bb200,0,0,ffff80001d717010) at tcp_usrreq+0xa54 sosend(fffffd805da73e18,0,ffff80001d71eaa8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717010,4,ffff80001d71eaa8,0,ffff80001d71eb90) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717010,ffff80001d71eb40,ffff80001d71eb90) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71ec10) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9be0, 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(fffffd805a9bb300,224,524,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1880) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da73e18,9,fffffd805a9bb200,0,0,ffff80001d717010) at tcp_usrreq+0xa54 sosend(fffffd805da73e18,0,ffff80001d71eaa8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717010,4,ffff80001d71eaa8,0,ffff80001d71eb90) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717010,ffff80001d71eb40,ffff80001d71eb90) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71ec10) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb9be0, count: -10