panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *501717 65582 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82419929) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80538cb300,26c,580,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(fffffd805da704b8,9,fffffd80538cb200,0,0,ffff80001d718390) at tcp_usrreq+0xa54 sosend(fffffd805da704b8,0,ffff80001d71e2f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718390,4,ffff80001d71e2f8,0,ffff80001d71e3e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718390,ffff80001d71e390,ffff80001d71e3e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e460) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6fe0, 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(ffffffff82419929) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80538cb300,26c,580,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(fffffd805da704b8,9,fffffd80538cb200,0,0,ffff80001d718390) at tcp_usrreq+0xa54 sosend(fffffd805da704b8,0,ffff80001d71e2f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718390,4,ffff80001d71e2f8,0,ffff80001d71e3e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718390,ffff80001d71e390,ffff80001d71e3e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e460) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6fe0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71ddc0 rbx 0xffff80001d71de70 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81e65fff kprintf+0x15f r9 0x1 r10 0x2 r11 0x13a4ee6c3d9a4c0c r12 0x3000000008 r13 0xffff80001d71ddd0 r14 0x100 r15 0x1 rip 0xffffffff81e40448 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71ddb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=501717 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d717c40,0xffff80001d717ec0 process=0xffff8000ffff8ae0 user=0xffff80001d719000, vmspace=0xfffffd806bc09880 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 71338 294155 63260 0 2 0 syz-executor.1 71338 156432 63260 0 3 0x4000080 msgwait syz-executor.1 71338 25286 63260 0 3 0x4000080 msgwait syz-executor.1 27635 206470 1 0 3 0x100083 ttyin getty 10243 358345 0 0 3 0x14200 acct acct 45551 482685 0 0 3 0x14200 bored sosplice 90832 144892 46422 0 2 0x2 syz-executor.0 63260 197865 46422 0 3 0x82 nanosleep syz-executor.1 46422 199920 72992 0 3 0x82 thrsleep syz-fuzzer 46422 453917 72992 0 2 0x4000002 syz-fuzzer 46422 287419 72992 0 3 0x4000082 thrsleep syz-fuzzer 46422 491748 72992 0 3 0x4000082 thrsleep syz-fuzzer 46422 328253 72992 0 2 0x4000002 syz-fuzzer 46422 89163 72992 0 3 0x4000082 thrsleep syz-fuzzer 46422 466532 72992 0 3 0x4000082 thrsleep syz-fuzzer 46422 106761 72992 0 3 0x4000082 thrsleep syz-fuzzer 72992 144523 65582 0 3 0x10008a pause ksh *65582 501717 42763 0 7 0x12 sshd 42763 410707 1 0 3 0x80 select sshd 69588 276167 20393 73 3 0x100090 kqread syslogd 20393 105736 1 0 3 0x100082 netio syslogd 13744 156548 1 77 3 0x100090 poll dhclient 81286 432489 1 0 3 0x80 poll dhclient 68355 143965 0 0 3 0x14200 bored smr 75750 92205 0 0 2 0x14200 zerothread 19056 378679 0 0 3 0x14200 aiodoned aiodoned 45073 98515 0 0 3 0x14200 syncer update 78623 185899 0 0 3 0x14200 cleaner cleaner 47682 86818 0 0 3 0x14200 reaper reaper 54397 207992 0 0 3 0x14200 pgdaemon pagedaemon 25438 112378 0 0 3 0x14200 bored crynlk 83587 57957 0 0 3 0x14200 bored crypto 44350 195571 0 0 3 0x40014200 acpi0 acpi0 46190 156272 0 0 3 0x14200 bored softnet 4987 97514 0 0 3 0x14200 bored systqmp 90719 31040 0 0 3 0x14200 bored systq 85421 240560 0 0 3 0x40014200 bored softclock 7600 188323 0 0 3 0x40014200 idle0 1 26957 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 9527 6487K 6875K 78643K 11291 0 pcb 13 8K 8K 78643K 110 0 rtable 121 11K 14K 78643K 611 0 ifaddr 98 19K 19K 78643K 207 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 28 0 ioctlops 0 0K 4K 78643K 115 0 iov 0 0K 16K 78643K 76 0 mount 1 1K 1K 78643K 1 0 vnodes 1213 76K 77K 78643K 1450 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 12 0K 0K 78643K 79 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 499 0 sigio 0 0K 0K 78643K 21 0 proc 53 39K 55K 78643K 432 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 59 0 in_multi 70 3K 3K 78643K 150 0 ether_multi 1 0K 0K 78643K 23 0 mrt 0 0K 0K 78643K 3 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 235 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 137 39K 43K 78643K 2018 0 UVM aobj 10 2K 2K 78643K 10 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 109 0 NDP 14 0K 0K 78643K 29 0 temp 123 3871K 3934K 78643K 17278 0 kqueue 3 4K 16K 78643K 46 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 7 0 1 1 0 1 1 0 8 0 rtpcb 80 52 0 50 1 0 1 1 0 8 0 rtentry 112 55 0 22 2 0 2 2 0 8 0 unpcb 120 1569 0 1551 1 0 1 1 0 8 0 syncache 264 14 0 14 3 2 1 1 0 8 1 tcpqe 32 139 0 139 1 1 0 1 0 8 0 tcpcb 544 648 0 644 2 1 1 2 0 8 0 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 4 0 4 1 0 1 1 0 8 1 inpcb 296 1036 0 1029 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 10 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 151 0 134 2 0 2 2 0 8 0 pftag 88 20 0 16 2 1 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 1 0 0 1 0 1 1 0 8 0 pfstkey 112 1 0 0 1 0 1 1 0 8 0 pfstate 328 1 0 0 1 0 1 1 0 8 0 pfrule 1360 36 0 24 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 221 0 84 13 0 13 13 0 8 1 art_table 32 223 0 84 2 0 2 2 0 8 0 art_node 16 54 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 9 1 0 1 1 0 8 0 semapl 112 75 0 65 1 0 1 1 0 8 0 shmpl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2207 0 812 88 0 88 88 0 8 0 ffsino 240 2207 0 812 83 0 83 83 0 8 0 nchpl 144 3158 0 1552 60 0 60 60 0 8 0 uvmvnodes 72 2395 0 0 44 0 44 44 0 8 0 vnodes 208 2395 0 0 127 0 127 127 0 8 0 namei 1024 8368 0 8368 1 0 1 1 0 8 1 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 4 0 2 2 1 1 1 0 8 0 pfiaddrpl 120 54 0 38 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 9133 0 9133 1 0 1 1 0 8 1 plimitpl 152 64 0 57 1 0 1 1 0 8 0 sigapl 424 689 0 659 4 0 4 4 0 8 0 futexpl 56 12358 0 12358 1 0 1 1 0 8 1 knotepl 112 110 0 91 1 0 1 1 0 8 0 kqueuepl 144 104 0 102 1 0 1 1 0 8 0 pipelkpl 16 134 0 124 1 0 1 1 0 8 0 pipepl 120 268 0 249 1 0 1 1 0 8 0 fdescpl 432 673 0 659 2 0 2 2 0 8 0 filepl 120 5639 0 5534 4 0 4 4 0 8 0 lockfpl 104 97 0 96 1 0 1 1 0 8 0 lockfspl 48 40 0 39 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 344 0 337 1 0 1 1 0 8 0 zombiepl 144 659 0 659 1 0 1 1 0 8 1 processpl 920 689 0 659 4 0 4 4 0 8 0 procpl 624 1265 0 1226 4 0 4 4 0 8 0 sosppl 128 9 0 9 2 1 1 1 0 8 1 sockpl 400 2663 0 2636 4 0 4 4 0 8 0 mcl64k 65536 31 0 31 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 13 0 13 2 1 1 1 0 8 1 mcl9k 9216 5 0 5 2 1 1 1 0 8 1 mcl8k 8192 27 0 27 1 0 1 1 0 8 1 mcl4k 4096 61 0 61 2 1 1 1 0 8 1 mcl2k2 2112 8 0 8 2 1 1 1 0 8 1 mcl2k 2048 77543 0 77494 18 10 8 14 0 8 1 mtagpl 96 56 0 26 3 1 2 2 0 8 0 mbufpl 256 126961 0 126793 20 2 18 18 0 8 1 bufpl 280 4118 0 130 285 0 285 285 0 8 0 anonpl 16 94774 0 78825 96 13 83 83 0 107 15 amapchunkpl 152 3791 0 3659 32 13 19 19 0 158 13 amappl16 192 4318 0 3399 69 14 55 59 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 265 0 258 1 0 1 1 0 8 0 amappl13 168 27 0 24 1 0 1 1 0 8 0 amappl12 160 234 0 231 1 0 1 1 0 8 0 amappl11 152 51 0 41 1 0 1 1 0 8 0 amappl10 144 12 0 8 1 0 1 1 0 8 0 amappl9 136 379 0 377 1 0 1 1 0 8 0 amappl8 128 339 0 297 2 0 2 2 0 8 0 amappl7 120 108 0 97 1 0 1 1 0 8 0 amappl6 112 29 0 20 1 0 1 1 0 8 0 amappl5 104 839 0 826 1 0 1 1 0 8 0 amappl4 96 426 0 404 1 0 1 1 0 8 0 amappl3 88 356 0 348 1 0 1 1 0 8 0 amappl2 80 4578 0 4512 2 0 2 2 0 8 0 amappl1 72 21443 0 21018 24 15 9 17 0 8 0 amappl 80 1503 0 1461 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 9 0 0 1 0 1 1 0 8 0 uaddrrnd 24 677 0 661 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 677 0 661 1 0 1 1 0 8 0 vmmpekpl 168 7933 0 7905 2 0 2 2 0 8 0 vmmpepl 168 86513 0 84494 126 22 104 109 0 357 11 vmsppl 272 676 0 661 4 2 2 2 0 8 0 pdppl 4096 1360 0 1324 6 1 5 6 0 8 0 pvpl 32 253544 0 234593 208 12 196 196 0 265 37 pmappl 200 676 0 661 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 256 0 20 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(ffffffff82419929) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80538cb300,26c,580,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(fffffd805da704b8,9,fffffd80538cb200,0,0,ffff80001d718390) at tcp_usrreq+0xa54 sosend(fffffd805da704b8,0,ffff80001d71e2f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718390,4,ffff80001d71e2f8,0,ffff80001d71e3e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718390,ffff80001d71e390,ffff80001d71e3e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e460) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6fe0, 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(ffffffff82419929) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd80538cb300,26c,580,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(fffffd805da704b8,9,fffffd80538cb200,0,0,ffff80001d718390) at tcp_usrreq+0xa54 sosend(fffffd805da704b8,0,ffff80001d71e2f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d718390,4,ffff80001d71e2f8,0,ffff80001d71e3e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d718390,ffff80001d71e390,ffff80001d71e3e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e460) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6fe0, count: -10