login: panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *505497 11176 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824181ee) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80633e2a00,1fc,51c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da78198,9,fffffd8062492700,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da78198,0,ffff80001d71e2e8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d71e2e8,0,ffff80001d71e3d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e380,ffff80001d71e3d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e450) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4070, 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(ffffffff824181ee) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80633e2a00,1fc,51c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da78198,9,fffffd8062492700,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da78198,0,ffff80001d71e2e8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d71e2e8,0,ffff80001d71e3d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e380,ffff80001d71e3d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e450) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4070, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71ddb0 rbx 0xffff80001d71de60 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8201b2ff kprintf+0x15f r9 0x1 r10 0x2 r11 0x5e8d508fe3e0771d r12 0x3000000008 r13 0xffff80001d71ddc0 r14 0x100 r15 0x1 rip 0xffffffff822f9738 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71dda0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=505497 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718ae0,0xffff80001d717020 process=0xffff8000ffff9210 user=0xffff80001d719000, vmspace=0xfffffd806bc0a880 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 61627 478873 47155 0 2 0x2 syz-executor.1 58281 294666 47155 0 2 0x482 syz-executor.0 47155 412653 68925 0 3 0x82 thrsleep syz-fuzzer 47155 60947 68925 0 2 0x4000482 syz-fuzzer 47155 401567 68925 0 3 0x4000082 thrsleep syz-fuzzer 47155 312544 68925 0 3 0x4000082 thrsleep syz-fuzzer 47155 413459 68925 0 3 0x4000082 thrsleep syz-fuzzer 47155 475639 68925 0 2 0x4000002 syz-fuzzer 47155 361349 68925 0 3 0x4000082 thrsleep syz-fuzzer 68925 396101 11176 0 3 0x10008a pause ksh *11176 505497 31817 0 7 0x12 sshd 24595 65920 1 0 3 0x100083 ttyin getty 31817 180023 1 0 3 0x80 select sshd 27719 288625 83486 73 3 0x100090 kqread syslogd 83486 128652 1 0 3 0x100082 netio syslogd 85546 493653 1 77 3 0x100090 poll dhclient 98989 477412 1 0 3 0x80 poll dhclient 16453 73546 0 0 3 0x14200 bored smr 22831 497651 0 0 3 0x14200 pgzero zerothread 25078 211152 0 0 3 0x14200 aiodoned aiodoned 98003 107999 0 0 3 0x14200 syncer update 51524 461183 0 0 3 0x14200 cleaner cleaner 62261 483214 0 0 3 0x14200 reaper reaper 52926 453522 0 0 3 0x14200 pgdaemon pagedaemon 17032 91951 0 0 3 0x14200 bored crynlk 35046 190888 0 0 3 0x14200 bored crypto 23389 127258 0 0 3 0x40014200 acpi0 acpi0 75170 515362 0 0 3 0x14200 bored softnet 4093 118508 0 0 3 0x14200 bored systqmp 26784 520293 0 0 3 0x14200 bored systq 25269 259003 0 0 3 0x40014200 bored softclock 52418 239070 0 0 3 0x40014200 idle0 1 188148 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 9463 6456K 6457K 78643K 10592 0 pcb 13 8K 8K 78643K 13 0 rtable 108 3K 7K 78643K 243 0 ifaddr 44 10K 11K 78643K 66 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 4K 78643K 23 0 iov 0 0K 12K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1234 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 4 0K 0K 78643K 4 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 58 0 proc 47 38K 63K 78643K 358 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 33 2K 2K 78643K 33 0 ether_multi 1 0K 0K 78643K 1 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 187 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 120 22K 23K 78643K 991 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 6 0K 0K 78643K 11 0 temp 66 3847K 3911K 78643K 4607 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 23 0 21 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 33 0 25 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 105 0 105 1 0 1 1 0 8 1 tcpcb 544 48 0 44 1 0 1 1 0 8 0 inpcb 296 76 0 69 2 0 2 2 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 pfrktable 1344 22 0 21 1 0 1 1 0 8 0 pftag 88 4 0 4 1 0 1 1 0 8 1 pfrule 1360 6 0 4 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 semapl 112 2 0 0 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1452 0 53 88 0 88 88 0 8 0 ffsino 240 1452 0 53 83 0 83 83 0 8 0 nchpl 144 1706 0 115 60 0 60 60 0 8 0 uvmvnodes 72 1505 0 0 28 0 28 28 0 8 0 vnodes 208 1505 0 0 80 0 80 80 0 8 0 namei 1024 4251 0 4251 1 0 1 1 0 8 1 pfiaddrpl 120 6 0 6 1 0 1 1 0 8 1 scxspl 192 4940 0 4940 1 0 1 1 0 8 1 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 244 0 217 4 0 4 4 0 8 0 futexpl 56 568 0 568 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 20 0 18 1 0 1 1 0 8 0 pipepl 272 82 0 72 1 0 1 1 0 8 0 fdescpl 432 230 0 217 2 0 2 2 0 8 0 filepl 120 1207 0 1112 4 0 4 4 0 8 1 lockfpl 104 15 0 14 1 0 1 1 0 8 0 lockfspl 48 7 0 6 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 60 0 53 1 0 1 1 0 8 0 zombiepl 144 217 0 216 1 0 1 1 0 8 0 processpl 920 244 0 216 4 0 4 4 0 8 0 procpl 624 280 0 246 4 0 4 4 0 8 1 sockpl 400 132 0 115 3 0 3 3 0 8 1 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 13 0 13 2 1 1 1 0 8 1 mcl2k 2048 77279 0 77233 16 3 13 13 0 8 7 mtagpl 96 4 0 2 2 1 1 1 0 8 0 mbufpl 256 122517 0 122450 12 3 9 9 0 8 0 bufpl 280 3336 0 125 230 0 230 230 0 8 0 anonpl 16 42140 0 23690 77 2 75 75 0 107 0 amapchunkpl 152 1171 0 1027 7 0 7 7 0 158 1 amappl16 192 1204 0 200 51 0 51 51 0 8 0 amappl15 184 9 0 7 1 0 1 1 0 8 0 amappl14 176 22 0 18 1 0 1 1 0 8 0 amappl13 168 37 0 33 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 47 0 38 1 0 1 1 0 8 0 amappl10 144 27 0 21 1 0 1 1 0 8 0 amappl9 136 387 0 384 1 0 1 1 0 8 0 amappl8 128 328 0 287 2 0 2 2 0 8 0 amappl7 120 105 0 93 1 0 1 1 0 8 0 amappl6 112 25 0 20 1 0 1 1 0 8 0 amappl5 104 170 0 160 1 0 1 1 0 8 0 amappl4 96 423 0 398 1 0 1 1 0 8 0 amappl3 88 99 0 94 1 0 1 1 0 8 0 amappl2 80 978 0 921 2 0 2 2 0 8 0 amappl1 72 13871 0 13475 24 8 16 17 0 8 7 amappl 80 523 0 483 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 230 0 217 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 230 0 217 1 0 1 1 0 8 0 vmmpekpl 168 5869 0 5842 2 0 2 2 0 8 0 vmmpepl 168 35251 0 33276 124 10 114 114 0 357 24 vmsppl 272 229 0 217 2 0 2 2 0 8 1 pdppl 4096 466 0 434 6 0 6 6 0 8 1 pvpl 32 136207 0 114874 175 0 175 175 0 265 1 pmappl 200 229 0 217 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 240 0 9 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(ffffffff824181ee) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80633e2a00,1fc,51c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da78198,9,fffffd8062492700,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da78198,0,ffff80001d71e2e8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d71e2e8,0,ffff80001d71e3d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e380,ffff80001d71e3d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e450) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4070, 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(ffffffff824181ee) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80633e2a00,1fc,51c,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac2540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da78198,9,fffffd8062492700,0,0,ffff80001d717eb0) at tcp_usrreq+0xa54 sosend(fffffd805da78198,0,ffff80001d71e2e8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717eb0,4,ffff80001d71e2e8,0,ffff80001d71e3d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717eb0,ffff80001d71e380,ffff80001d71e3d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e450) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4070, count: -10