panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *403081 42019 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82427d43) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805a278300,254,30c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3320) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da624b8,9,fffffd805a278200,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da624b8,0,ffff80001d6ccf78,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d6ccf78,0,ffff80001d6cd060) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d6cd010,ffff80001d6cd060) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd0e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4780, 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(ffffffff82427d43) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805a278300,254,30c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3320) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da624b8,9,fffffd805a278200,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da624b8,0,ffff80001d6ccf78,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d6ccf78,0,ffff80001d6cd060) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d6cd010,ffff80001d6cd060) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd0e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4780, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6cca40 rbx 0xffff80001d6ccaf0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81443f7f kprintf+0x15f r9 0x1 r10 0x2 r11 0x1aba152f92bed74e r12 0x3000000008 r13 0xffff80001d6cca50 r14 0x100 r15 0x1 rip 0xffffffff8197d558 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6cca30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=403081 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71dae0,0xffff80001d71c9e0 process=0xffff80001d7063b8 user=0xffff80001d6c8000, vmspace=0xfffffd806bc0a770 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 56081 95536 9445 0 2 0 syz-executor.1 56081 63769 9445 0 2 0x4000000 syz-executor.1 9445 237687 34813 0 3 0x82 nanosleep syz-executor.1 18788 341478 34813 0 2 0x2 syz-executor.0 34813 407304 57238 0 3 0x82 thrsleep syz-fuzzer 34813 273729 57238 0 2 0x4000002 syz-fuzzer 34813 81373 57238 0 2 0x4000002 syz-fuzzer 34813 279187 57238 0 3 0x4000082 thrsleep syz-fuzzer 34813 168249 57238 0 3 0x4000082 thrsleep syz-fuzzer 34813 75824 57238 0 3 0x4000082 thrsleep syz-fuzzer 34813 315935 57238 0 3 0x4000082 thrsleep syz-fuzzer 34813 40662 57238 0 3 0x4000082 thrsleep syz-fuzzer 57238 223449 42019 0 3 0x10008a pause ksh *42019 403081 14789 0 7 0x12 sshd 78021 416628 1 0 3 0x100083 ttyin getty 14789 171405 1 0 3 0x80 select sshd 26533 469148 70960 73 3 0x100090 kqread syslogd 70960 194440 1 0 3 0x100082 netio syslogd 16442 451522 1 77 3 0x100090 poll dhclient 63315 503805 1 0 3 0x80 poll dhclient 66273 327723 0 0 3 0x14200 bored smr 98217 38713 0 0 2 0x14200 zerothread 7578 383042 0 0 3 0x14200 aiodoned aiodoned 19687 466539 0 0 3 0x14200 syncer update 99930 50974 0 0 3 0x14200 cleaner cleaner 17851 269417 0 0 3 0x14200 reaper reaper 27084 296611 0 0 3 0x14200 pgdaemon pagedaemon 29124 156487 0 0 3 0x14200 bored crynlk 7990 8012 0 0 3 0x14200 bored crypto 39489 421380 0 0 3 0x40014200 acpi0 acpi0 92629 395828 0 0 3 0x14200 bored softnet 41728 77378 0 0 3 0x14200 bored systqmp 4497 339391 0 0 3 0x14200 bored systq 8282 494682 0 0 3 0x40014200 bored softclock 13153 295196 0 0 3 0x40014200 idle0 1 470819 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 9464 6581K 6582K 78643K 10636 0 pcb 13 8K 8K 78643K 33 0 rtable 105 3K 3K 78643K 194 0 ifaddr 42 10K 11K 78643K 48 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 2K 78643K 27 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1240 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 0K 0K 78643K 2 0 sem 6 0K 0K 78643K 10 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 82 0 proc 48 38K 54K 78643K 361 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 40 2K 2K 78643K 51 0 ether_multi 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 185 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 117 22K 32K 78643K 1021 0 UVM aobj 7 2K 2K 78643K 11 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 5 0K 0K 78643K 9 0 temp 60 3847K 3911K 78643K 1883 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 51 0 43 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 657 0 657 2 1 1 1 0 8 1 tcpcb 544 28 0 23 1 0 1 1 0 8 0 inpcb 296 124 0 116 2 0 2 2 0 8 1 nd6 48 8 0 2 1 0 1 1 0 8 0 pfstscr 40 4 0 3 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 8 0 6 1 0 1 1 0 8 0 pfstate 328 4 0 3 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 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 4 0 0 1 0 1 1 0 8 0 shmpl 112 8 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1466 0 68 88 0 88 88 0 8 0 ffsino 240 1466 0 68 83 0 83 83 0 8 0 nchpl 144 1762 0 159 60 0 60 60 0 8 0 uvmvnodes 72 1527 0 0 28 0 28 28 0 8 0 vnodes 208 1527 0 0 81 0 81 81 0 8 0 namei 1024 4444 0 4444 2 1 1 1 0 8 1 scxspl 192 4997 0 4997 1 0 1 1 0 8 1 plimitpl 152 14 0 7 1 0 1 1 0 8 0 sigapl 424 268 0 240 4 0 4 4 0 8 0 futexpl 56 1086 0 1086 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 4 0 2 1 0 1 1 0 8 0 pipepl 272 72 0 62 1 0 1 1 0 8 0 fdescpl 432 254 0 240 2 0 2 2 0 8 0 filepl 120 1349 0 1254 4 0 4 4 0 8 1 lockfpl 104 12 0 11 1 0 1 1 0 8 0 lockfspl 48 4 0 3 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 147 0 140 1 0 1 1 0 8 0 zombiepl 144 240 0 240 2 1 1 1 0 8 1 processpl 928 268 0 240 4 0 4 4 0 8 0 procpl 624 333 0 297 4 0 4 4 0 8 1 sockpl 400 198 0 180 3 0 3 3 0 8 0 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 21 0 21 2 1 1 1 0 8 1 mcl2k 2048 91906 0 91838 24 7 17 19 0 8 8 mtagpl 96 4 0 2 2 1 1 1 0 8 0 mbufpl 256 145644 0 145462 17 4 13 13 0 8 0 bufpl 280 3324 0 125 229 0 229 229 0 8 0 anonpl 16 40142 0 24020 68 2 66 66 0 107 1 amapchunkpl 152 1288 0 1159 13 0 13 13 0 158 7 amappl16 192 1166 0 290 45 0 45 45 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 27 0 21 1 0 1 1 0 8 0 amappl13 168 27 0 24 1 0 1 1 0 8 0 amappl12 160 45 0 39 2 1 1 1 0 8 0 amappl11 152 77 0 65 1 0 1 1 0 8 0 amappl10 144 13 0 8 1 0 1 1 0 8 0 amappl9 136 370 0 369 1 0 1 1 0 8 0 amappl8 128 325 0 283 2 0 2 2 0 8 0 amappl7 120 107 0 96 1 0 1 1 0 8 0 amappl6 112 49 0 42 1 0 1 1 0 8 0 amappl5 104 220 0 208 1 0 1 1 0 8 0 amappl4 96 418 0 391 1 0 1 1 0 8 0 amappl3 88 106 0 100 1 0 1 1 0 8 0 amappl2 80 1170 0 1105 2 0 2 2 0 8 0 amappl1 72 14640 0 14226 24 14 10 17 0 8 1 amappl 80 554 0 515 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 10 0 4 1 0 1 1 0 8 0 uaddrrnd 24 254 0 240 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 254 0 240 1 0 1 1 0 8 0 vmmpekpl 168 5803 0 5772 2 0 2 2 0 8 0 vmmpepl 168 38505 0 36524 127 9 118 118 0 357 31 vmsppl 272 253 0 240 2 0 2 2 0 8 1 pdppl 4096 514 0 480 6 0 6 6 0 8 1 pvpl 32 137665 0 118605 156 0 156 156 0 265 2 pmappl 200 253 0 240 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 253 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(ffffffff82427d43) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805a278300,254,30c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3320) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da624b8,9,fffffd805a278200,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da624b8,0,ffff80001d6ccf78,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d6ccf78,0,ffff80001d6cd060) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d6cd010,ffff80001d6cd060) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd0e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4780, 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(ffffffff82427d43) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805a278300,254,30c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3320) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da624b8,9,fffffd805a278200,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805da624b8,0,ffff80001d6ccf78,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d6ccf78,0,ffff80001d6cd060) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d6cd010,ffff80001d6cd060) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6cd0e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4780, count: -10