panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 29092 47492 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82403f3a) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805ee68c00,2dc,2f4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da60648,9,fffffd805ee68b00,0,0,ffff80001d7179d0) at tcp_usrreq+0xa54 sosend(fffffd805da60648,0,ffff80001d71df98,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d7179d0,4,ffff80001d71df98,0,ffff80001d71e080) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7179d0,ffff80001d71e030,ffff80001d71e080) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e100) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0ea0, 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(ffffffff82403f3a) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805ee68c00,2dc,2f4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da60648,9,fffffd805ee68b00,0,0,ffff80001d7179d0) at tcp_usrreq+0xa54 sosend(fffffd805da60648,0,ffff80001d71df98,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d7179d0,4,ffff80001d71df98,0,ffff80001d71e080) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7179d0,ffff80001d71e030,ffff80001d71e080) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e100) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0ea0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d71da60 rbx 0xffff80001d71db10 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff811e221f kprintf+0x15f r9 0x1 r10 0x2 r11 0xee940d616d4498b1 r12 0x3000000008 r13 0xffff80001d71da70 r14 0x100 r15 0x1 rip 0xffffffff81abebf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d71da50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=29092 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718870,0xffff80001d717020 process=0xffff8000ffff83b0 user=0xffff80001d719000, vmspace=0xfffffd806bc0aaa0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 69066 464936 71686 0 3 0x80 nanosleep syz-executor.1 69066 482599 71686 0 3 0x4000080 kqread syz-executor.1 69066 504236 71686 0 3 0x4000080 fsleep syz-executor.1 15295 510122 0 0 3 0x14280 nfsidl nfsio 68913 302026 0 0 3 0x14280 nfsidl nfsio 23590 382418 0 0 3 0x14280 nfsidl nfsio 78053 138923 0 0 3 0x14280 nfsidl nfsio 33529 87683 0 0 3 0x14280 nfsidl nfsio 34683 389515 0 0 3 0x14280 nfsidl nfsio 29879 185948 0 0 3 0x14280 nfsidl nfsio 9898 461003 0 0 3 0x14280 nfsidl nfsio 82810 198486 0 0 3 0x14280 nfsidl nfsio 95542 308205 0 0 3 0x14280 nfsidl nfsio 88606 373562 0 0 3 0x14280 nfsidl nfsio 38881 126450 0 0 3 0x14280 nfsidl nfsio 74671 405447 0 0 3 0x14280 nfsidl nfsio 4527 183248 0 0 3 0x14280 nfsidl nfsio 72302 121513 0 0 3 0x14280 nfsidl nfsio 34534 190441 0 0 3 0x14280 nfsidl nfsio 30296 17076 0 0 3 0x14280 nfsidl nfsio 1910 47594 0 0 3 0x14280 nfsidl nfsio 95504 84881 0 0 3 0x14280 nfsidl nfsio 95979 279924 0 0 3 0x14280 nfsidl nfsio 71686 232679 85425 0 3 0x82 nanosleep syz-executor.1 66485 93919 0 0 3 0x14200 bored sosplice 44684 334672 85425 0 2 0x2 syz-executor.0 85425 480221 85304 0 3 0x82 thrsleep syz-fuzzer 85425 487279 85304 0 2 0x4000002 syz-fuzzer 85425 124734 85304 0 3 0x4000082 thrsleep syz-fuzzer 85425 50106 85304 0 3 0x4000082 thrsleep syz-fuzzer 85425 490327 85304 0 2 0x4000002 syz-fuzzer 85425 405200 85304 0 3 0x4000082 thrsleep syz-fuzzer 85425 174354 85304 0 3 0x4000082 thrsleep syz-fuzzer 85425 450853 85304 0 3 0x4000082 thrsleep syz-fuzzer 85304 106744 47492 0 3 0x10008a pause ksh *47492 29092 13644 0 7 0x12 sshd 11580 77363 1 0 3 0x100083 ttyin getty 13644 162380 1 0 3 0x80 select sshd 83145 420457 64424 73 3 0x100090 kqread syslogd 64424 435339 1 0 3 0x100082 netio syslogd 42834 78486 1 77 3 0x100090 poll dhclient 92560 133986 1 0 3 0x80 poll dhclient 44739 332475 0 0 3 0x14200 bored smr 47972 368565 0 0 3 0x14200 pgzero zerothread 76765 229969 0 0 3 0x14200 aiodoned aiodoned 88597 446086 0 0 3 0x14200 syncer update 67003 378878 0 0 3 0x14200 cleaner cleaner 4898 336359 0 0 3 0x14200 reaper reaper 4531 345762 0 0 3 0x14200 pgdaemon pagedaemon 15696 98904 0 0 3 0x14200 bored crynlk 34805 46761 0 0 3 0x14200 bored crypto 43595 346724 0 0 3 0x40014200 acpi0 acpi0 70572 27821 0 0 3 0x14200 bored softnet 71605 65913 0 0 3 0x14200 bored systqmp 23188 349435 0 0 3 0x14200 bored systq 55358 324273 0 0 3 0x40014200 bored softclock 62870 96684 0 0 3 0x40014200 idle0 1 498531 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 9491 6337K 6595K 78643K 10874 0 pcb 15 8K 8K 78643K 131 0 rtable 104 4K 8K 78643K 444 0 ifaddr 59 12K 13K 78643K 136 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 27 0 ioctlops 0 0K 4K 78643K 54 0 iov 0 0K 12K 78643K 32 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1325 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 43 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 212 0 sigio 0 0K 0K 78643K 2 0 proc 49 38K 54K 78643K 400 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 8 0 in_multi 36 2K 2K 78643K 75 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 103 466K 466K 78643K 103 0 exec 0 0K 1K 78643K 206 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 118 22K 38K 78643K 1464 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 30 0 NDP 9 0K 0K 78643K 24 0 temp 118 3864K 3928K 78643K 5176 0 kqueue 3 4K 20K 78643K 63 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 10 0 4 1 0 1 1 0 8 0 rtpcb 80 31 0 29 1 0 1 1 0 8 0 rtentry 112 68 0 27 2 0 2 2 0 8 0 unpcb 120 228 0 220 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 77 0 77 1 1 0 1 0 8 0 tcpcb 544 48 0 44 1 0 1 1 0 8 0 inpcb 296 258 0 249 5 3 2 2 0 8 1 nd6 48 12 0 8 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 pfrktable 1344 69 0 67 1 0 1 1 0 8 0 pftag 88 10 0 10 2 2 0 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 2 0 0 1 0 1 1 0 8 0 pfstate 328 1 0 0 1 0 1 1 0 8 0 pfrule 1360 16 0 8 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 270 0 98 14 1 13 13 0 8 0 art_table 32 271 0 98 2 0 2 2 0 8 0 art_node 16 67 0 29 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 2 1 0 1 1 0 8 0 semapl 112 40 0 30 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 1652 0 252 88 0 88 88 0 8 0 ffsino 240 1652 0 252 83 0 83 83 0 8 0 nchpl 144 2083 0 495 60 0 60 60 0 8 0 uvmvnodes 72 1768 0 0 33 0 33 33 0 8 0 vnodes 208 1768 0 0 94 0 94 94 0 8 0 namei 1024 6007 0 6007 4 3 1 1 0 8 1 vmpool 528 2 0 2 1 1 0 1 0 8 0 pfiaddrpl 120 22 0 20 1 0 1 1 0 8 0 scxspl 192 6625 0 6625 2 1 1 1 0 8 1 plimitpl 152 27 0 20 1 0 1 1 0 8 0 sigapl 424 416 0 367 6 0 6 6 0 8 0 futexpl 56 3876 0 3875 4 3 1 1 0 8 0 knotepl 112 175 0 156 1 0 1 1 0 8 0 kqueuepl 144 154 0 151 1 0 1 1 0 8 0 pipelkpl 16 96 0 86 1 0 1 1 0 8 0 pipepl 120 192 0 173 1 0 1 1 0 8 0 fdescpl 432 381 0 367 2 0 2 2 0 8 0 filepl 120 2701 0 2601 5 1 4 5 0 8 0 lockfpl 104 42 0 41 1 0 1 1 0 8 0 lockfspl 48 15 0 14 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 18 0 8 1 0 1 1 0 8 0 ucredpl 96 549 0 542 1 0 1 1 0 8 0 zombiepl 144 367 0 367 1 0 1 1 0 8 1 processpl 920 416 0 367 7 0 7 7 0 8 0 procpl 624 711 0 653 6 1 5 5 0 8 0 sockpl 400 521 0 502 4 1 3 4 0 8 1 mcl64k 65536 12 0 12 4 3 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 5 0 5 2 2 0 1 0 8 0 mcl8k 8192 11 0 11 3 3 0 1 0 8 0 mcl4k 4096 19 0 19 5 4 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 75166 0 75118 14 7 7 12 0 8 0 mtagpl 96 24 0 6 2 1 1 1 0 8 0 mbufpl 256 120571 0 120404 15 1 14 14 0 8 0 bufpl 280 4005 0 126 278 0 278 278 0 8 0 anonpl 16 58818 0 43750 77 15 62 75 0 107 0 amapchunkpl 152 2839 0 2708 23 16 7 19 0 158 1 amappl16 192 1929 0 1076 52 8 44 48 0 8 0 amappl15 184 4 0 1 1 0 1 1 0 8 0 amappl14 176 22 0 18 1 0 1 1 0 8 0 amappl13 168 41 0 37 1 0 1 1 0 8 0 amappl12 160 50 0 46 1 0 1 1 0 8 0 amappl11 152 108 0 97 1 0 1 1 0 8 0 amappl10 144 99 0 94 1 0 1 1 0 8 0 amappl9 136 348 0 347 1 0 1 1 0 8 0 amappl8 128 342 0 301 2 0 2 2 0 8 0 amappl7 120 195 0 184 1 0 1 1 0 8 0 amappl6 112 81 0 71 1 0 1 1 0 8 0 amappl5 104 387 0 376 1 0 1 1 0 8 0 amappl4 96 436 0 411 1 0 1 1 0 8 0 amappl3 88 109 0 103 1 0 1 1 0 8 0 amappl2 80 2158 0 2094 2 0 2 2 0 8 0 amappl1 72 17087 0 16675 22 13 9 17 0 8 0 amappl 80 958 0 917 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 383 0 369 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 383 0 369 1 0 1 1 0 8 0 vmmpekpl 168 6908 0 6874 2 0 2 2 0 8 0 vmmpepl 168 53531 0 51597 140 45 95 122 0 357 8 vmsppl 272 382 0 369 4 3 1 2 0 8 0 pdppl 4096 772 0 738 6 1 5 6 0 8 0 pvpl 32 180407 0 162241 186 34 152 179 0 265 3 pmappl 200 382 0 369 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 259 0 31 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(ffffffff82403f3a) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805ee68c00,2dc,2f4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da60648,9,fffffd805ee68b00,0,0,ffff80001d7179d0) at tcp_usrreq+0xa54 sosend(fffffd805da60648,0,ffff80001d71df98,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d7179d0,4,ffff80001d71df98,0,ffff80001d71e080) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7179d0,ffff80001d71e030,ffff80001d71e080) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e100) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0ea0, 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(ffffffff82403f3a) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805ee68c00,2dc,2f4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac0980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da60648,9,fffffd805ee68b00,0,0,ffff80001d7179d0) at tcp_usrreq+0xa54 sosend(fffffd805da60648,0,ffff80001d71df98,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d7179d0,4,ffff80001d71df98,0,ffff80001d71e080) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d7179d0,ffff80001d71e030,ffff80001d71e080) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d71e100) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0ea0, count: -10