panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *195727 13495 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82427038) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805a2bab00,d64,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da76008,9,fffffd805a2baa00,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da76008,0,ffff80001d722de8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d722de8,0,ffff80001d722ed0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d722e80,ffff80001d722ed0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d722f50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1be0, 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(ffffffff82427038) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805a2bab00,d64,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da76008,9,fffffd805a2baa00,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da76008,0,ffff80001d722de8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d722de8,0,ffff80001d722ed0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d722e80,ffff80001d722ed0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d722f50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1be0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d7228b0 rbx 0xffff80001d722960 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff80001d722870 r9 0xffffffff8203e52f kprintf+0x15f r10 0x1 r11 0x392223709d8e3894 r12 0x3000000008 r13 0xffff80001d7228c0 r14 0x100 r15 0x1 rip 0xffffffff81989c28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d7228a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=195727 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71dae0,0xffff80001d71c770 process=0xffff80001d700af8 user=0xffff80001d71e000, vmspace=0xfffffd806bc0a550 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 14369 510228 0 0 3 0x14280 nfsidl nfsio 67599 296791 0 0 3 0x14280 nfsidl nfsio 40147 209326 0 0 3 0x14280 nfsidl nfsio 32619 190939 0 0 3 0x14280 nfsidl nfsio 31868 498499 0 0 3 0x14280 nfsidl nfsio 41281 93870 0 0 3 0x14280 nfsidl nfsio 75428 448804 0 0 3 0x14280 nfsidl nfsio 37712 408460 0 0 3 0x14280 nfsidl nfsio 61003 108871 0 0 3 0x14280 nfsidl nfsio 43478 232094 0 0 3 0x14280 nfsidl nfsio 96048 399215 0 0 3 0x14280 nfsidl nfsio 4060 154464 0 0 3 0x14280 nfsidl nfsio 57787 321316 0 0 3 0x14280 nfsidl nfsio 95641 288237 0 0 3 0x14280 nfsidl nfsio 38963 123509 0 0 3 0x14280 nfsidl nfsio 67245 363305 0 0 3 0x14280 nfsidl nfsio 29859 453652 0 0 3 0x14280 nfsidl nfsio 99803 138595 0 0 3 0x14280 nfsidl nfsio 14820 478868 0 0 3 0x14280 nfsidl nfsio 76130 232047 0 0 3 0x14280 nfsidl nfsio 83890 156215 0 0 3 0x14200 bored sosplice 77427 484322 27536 0 3 0x82 piperd syz-executor.1 27130 475656 27536 0 3 0x82 piperd syz-executor.0 27536 204268 6632 0 3 0x82 thrsleep syz-fuzzer 27536 459320 6632 0 3 0x4000082 nanosleep syz-fuzzer 27536 277855 6632 0 3 0x4000082 thrsleep syz-fuzzer 27536 52439 6632 0 3 0x4000082 thrsleep syz-fuzzer 27536 252743 6632 0 3 0x4000082 thrsleep syz-fuzzer 27536 459646 6632 0 3 0x4000082 thrsleep syz-fuzzer 27536 173021 6632 0 2 0x4000002 syz-fuzzer 6632 269446 13495 0 3 0x10008a pause ksh *13495 195727 78709 0 7 0x12 sshd 31166 474918 1 0 3 0x100083 ttyin getty 78709 160399 1 0 3 0x80 select sshd 48417 147257 27913 73 3 0x100090 kqread syslogd 27913 286866 1 0 3 0x100082 netio syslogd 87593 513644 1 77 3 0x100090 poll dhclient 45723 508844 1 0 3 0x80 poll dhclient 58841 28961 0 0 3 0x14200 bored smr 18202 412682 0 0 2 0x14200 zerothread 19613 483189 0 0 3 0x14200 aiodoned aiodoned 85527 140101 0 0 3 0x14200 syncer update 64908 124940 0 0 3 0x14200 cleaner cleaner 40432 274006 0 0 3 0x14200 reaper reaper 55202 2304 0 0 3 0x14200 pgdaemon pagedaemon 47711 473816 0 0 3 0x14200 bored crynlk 60140 460102 0 0 3 0x14200 bored crypto 68176 126458 0 0 3 0x40014200 acpi0 acpi0 59233 193829 0 0 2 0x14200 softnet 71352 501435 0 0 3 0x14200 bored systqmp 84571 148218 0 0 3 0x14200 bored systq 87695 342247 0 0 3 0x40014200 bored softclock 64055 97525 0 0 3 0x40014200 idle0 1 379408 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 9457 6334K 6710K 78643K 10914 0 pcb 13 8K 8K 78643K 95 0 rtable 121 12K 12K 78643K 259 0 ifaddr 50 12K 12K 78643K 82 0 counters 21 16K 16K 78643K 24 0 ioctlops 0 0K 4K 78643K 53 0 iov 0 0K 12K 78643K 12 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1316 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 58 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 251 0 proc 49 38K 54K 78643K 376 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 12 0 in_multi 50 2K 3K 78643K 84 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 5 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 193 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 125 39K 39K 78643K 1412 0 UVM aobj 5 2K 2K 78643K 7 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 28 0 NDP 6 0K 0K 78643K 13 0 temp 85 3854K 3918K 78643K 2738 0 kqueue 3 4K 12K 78643K 18 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 27 0 25 1 0 1 1 0 8 0 rtentry 112 57 0 8 2 0 2 2 0 8 0 unpcb 120 91 0 83 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8 0 8 1 1 0 1 0 8 0 tcpcb 544 342 0 330 5 3 2 4 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 296 534 0 527 3 1 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 15 0 5 1 0 1 1 0 8 0 ppxss 1136 1 0 1 1 0 1 1 0 8 1 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 2 0 2 1 1 0 1 0 8 0 pfrule 1360 4 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 237 0 0 15 0 15 15 0 8 0 art_table 32 238 0 0 2 0 2 2 0 8 0 art_node 16 56 0 12 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 54 0 44 1 0 1 1 0 8 0 shmpl 112 4 0 2 2 1 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1695 0 299 88 0 88 88 0 8 0 ffsino 240 1695 0 299 83 0 83 83 0 8 0 nchpl 144 2230 0 630 60 0 60 60 0 8 0 uvmvnodes 72 1817 0 0 34 0 34 34 0 8 0 vnodes 208 1817 0 0 96 0 96 96 0 8 0 namei 1024 5704 0 5704 1 0 1 1 0 8 1 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 528 7 0 6 2 1 1 1 0 8 0 scxspl 192 6406 0 6406 1 0 1 1 0 8 1 plimitpl 152 28 0 21 1 0 1 1 0 8 0 sigapl 424 458 0 410 6 0 6 6 0 8 0 futexpl 56 4997 0 4997 1 0 1 1 0 8 1 knotepl 112 84 0 64 1 0 1 1 0 8 0 kqueuepl 144 48 0 46 1 0 1 1 0 8 0 pipepl 272 97 0 86 3 1 2 2 0 8 1 fdescpl 432 423 0 410 2 0 2 2 0 8 0 filepl 120 2372 0 2275 4 0 4 4 0 8 0 lockfpl 104 30 0 29 1 0 1 1 0 8 0 lockfspl 48 11 0 10 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 206 0 199 1 0 1 1 0 8 0 zombiepl 144 410 0 410 1 0 1 1 0 8 1 processpl 928 458 0 410 7 0 7 7 0 8 0 procpl 624 711 0 657 6 1 5 5 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 652 0 635 3 0 3 3 0 8 1 mcl64k 65536 7 0 7 3 2 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 7 0 7 2 1 1 1 0 8 1 mcl9k 9216 2 0 2 2 2 0 1 0 8 0 mcl8k 8192 7 0 6 3 2 1 1 0 8 0 mcl4k 4096 25 0 25 2 1 1 1 0 8 1 mcl2k 2048 93874 0 93826 15 8 7 14 0 8 0 mtagpl 96 41 0 7 2 1 1 1 0 8 0 mbufpl 256 149654 0 149435 23 6 17 17 0 8 1 bufpl 280 3588 0 120 248 0 248 248 0 8 0 anonpl 16 54823 0 36107 79 3 76 76 0 107 0 amapchunkpl 152 1821 0 1647 9 1 8 9 0 158 0 amappl16 192 2078 0 1076 52 1 51 51 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 2 0 1 2 1 1 1 0 8 0 amappl13 168 34 0 30 1 0 1 1 0 8 0 amappl12 160 26 0 23 1 0 1 1 0 8 0 amappl11 152 45 0 36 1 0 1 1 0 8 0 amappl10 144 203 0 199 1 0 1 1 0 8 0 amappl9 136 335 0 333 1 0 1 1 0 8 0 amappl8 128 292 0 261 2 1 1 2 0 8 0 amappl7 120 295 0 283 1 0 1 1 0 8 0 amappl6 112 23 0 20 1 0 1 1 0 8 0 amappl5 104 394 0 384 1 0 1 1 0 8 0 amappl4 96 430 0 400 1 0 1 1 0 8 0 amappl3 88 130 0 122 1 0 1 1 0 8 0 amappl2 80 2558 0 2502 2 0 2 2 0 8 0 amappl1 72 18087 0 17690 23 14 9 17 0 8 0 amappl 80 947 0 895 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 6 0 2 1 0 1 1 0 8 0 uaddrrnd 24 430 0 416 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 430 0 416 1 0 1 1 0 8 0 vmmpekpl 168 6676 0 6644 2 0 2 2 0 8 0 vmmpepl 168 58648 0 56660 129 36 93 121 0 357 3 vmsppl 272 429 0 416 3 1 2 2 0 8 1 pdppl 4096 866 0 833 6 1 5 6 0 8 0 pvpl 32 174911 0 153180 184 7 177 177 0 265 0 pmappl 200 429 0 416 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 267 0 29 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(ffffffff82427038) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805a2bab00,d64,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da76008,9,fffffd805a2baa00,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da76008,0,ffff80001d722de8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d722de8,0,ffff80001d722ed0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d722e80,ffff80001d722ed0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d722f50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1be0, 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(ffffffff82427038) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805a2bab00,d64,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3100) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da76008,9,fffffd805a2baa00,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da76008,0,ffff80001d722de8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d722de8,0,ffff80001d722ed0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d722e80,ffff80001d722ed0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d722f50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1be0, count: -10