panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *131659 40378 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241b008) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053e23700,24c,474,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da64648,9,fffffd8053e23600,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da64648,0,ffff80001d722f18,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d722f18,0,ffff80001d723000) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d722fb0,ffff80001d723000) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723080) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3f30, 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(ffffffff8241b008) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053e23700,24c,474,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da64648,9,fffffd8053e23600,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da64648,0,ffff80001d722f18,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d722f18,0,ffff80001d723000) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d722fb0,ffff80001d723000) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723080) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3f30, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d7229e0 rbx 0xffff80001d722a90 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81079ebf kprintf+0x15f r9 0x1 r10 0x2 r11 0xa94f20b2884b4483 r12 0x3000000008 r13 0xffff80001d7229f0 r14 0x100 r15 0x1 rip 0xffffffff817dca38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d7229d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=131659 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d600,0xffff80001d71c770 process=0xffff80001d706758 user=0xffff80001d71e000, vmspace=0xfffffd806bc09bb0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 21496 326735 77746 0 2 0 syz-executor.0 37913 370337 0 0 3 0x14280 nfsidl nfsio 87398 485527 0 0 3 0x14280 nfsidl nfsio 66648 34089 0 0 3 0x14280 nfsidl nfsio 37543 322596 0 0 3 0x14280 nfsidl nfsio 19223 78551 0 0 3 0x14280 nfsidl nfsio 27150 371582 0 0 3 0x14280 nfsidl nfsio 46691 229660 0 0 3 0x14280 nfsidl nfsio 75706 369124 0 0 3 0x14280 nfsidl nfsio 64561 218695 0 0 3 0x14280 nfsidl nfsio 1480 352085 0 0 3 0x14280 nfsidl nfsio 39734 359108 0 0 3 0x14280 nfsidl nfsio 94033 241123 0 0 3 0x14280 nfsidl nfsio 79142 453302 0 0 3 0x14280 nfsidl nfsio 58372 305556 0 0 3 0x14280 nfsidl nfsio 61210 214244 0 0 3 0x14280 nfsidl nfsio 42259 77716 0 0 3 0x14280 nfsidl nfsio 57708 363031 0 0 3 0x14280 nfsidl nfsio 38902 155971 0 0 3 0x14280 nfsidl nfsio 71752 320210 0 0 3 0x14280 nfsidl nfsio 21577 479094 0 0 3 0x14280 nfsidl nfsio 39499 398937 0 0 3 0x14200 bored sosplice 77746 3621 71713 0 2 0x2 syz-executor.0 47685 194154 71713 0 2 0x2 syz-executor.1 71713 444029 3230 0 3 0x82 thrsleep syz-fuzzer 71713 368941 3230 0 3 0x4000082 nanosleep syz-fuzzer 71713 231652 3230 0 3 0x4000082 thrsleep syz-fuzzer 71713 172067 3230 0 3 0x4000082 thrsleep syz-fuzzer 71713 183038 3230 0 3 0x4000082 thrsleep syz-fuzzer 71713 31976 3230 0 2 0x4000002 syz-fuzzer 71713 84285 3230 0 3 0x4000082 thrsleep syz-fuzzer 71713 440317 3230 0 3 0x4000082 thrsleep syz-fuzzer 3230 313392 40378 0 3 0x10008a pause ksh *40378 131659 71009 0 7 0x12 sshd 93351 365745 1 0 3 0x100083 ttyin getty 71009 219851 1 0 3 0x80 select sshd 11351 438056 47027 73 3 0x100090 kqread syslogd 47027 461861 1 0 3 0x100082 netio syslogd 80147 176002 1 77 3 0x100090 poll dhclient 22610 419736 1 0 3 0x80 poll dhclient 57612 265093 0 0 3 0x14200 bored smr 16502 4505 0 0 2 0x14200 zerothread 95423 180780 0 0 3 0x14200 aiodoned aiodoned 74582 403514 0 0 3 0x14200 syncer update 69494 315248 0 0 3 0x14200 cleaner cleaner 83557 373686 0 0 3 0x14200 reaper reaper 86774 207936 0 0 3 0x14200 pgdaemon pagedaemon 51152 172856 0 0 3 0x14200 bored crynlk 64772 58893 0 0 3 0x14200 bored crypto 19529 382709 0 0 3 0x40014200 acpi0 acpi0 22323 34738 0 0 3 0x14200 bored softnet 51254 407060 0 0 3 0x14200 bored systqmp 60671 199874 0 0 3 0x14200 bored systq 42082 240735 0 0 3 0x40014200 bored softclock 95778 113787 0 0 3 0x40014200 idle0 1 173243 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 9475 6396K 7042K 78643K 10957 0 pcb 13 8K 8K 78643K 35 0 rtable 121 6K 7K 78643K 300 0 ifaddr 63 14K 14K 78643K 95 0 counters 21 16K 16K 78643K 23 0 ioctlops 0 0K 4K 78643K 41 0 iov 0 0K 12K 78643K 21 0 mount 1 1K 1K 78643K 1 0 vnodes 1226 77K 77K 78643K 1323 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 0K 78643K 24 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 143 0 sigio 0 0K 0K 78643K 6 0 proc 49 38K 63K 78643K 368 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 3 0 in_multi 59 3K 3K 78643K 92 0 ether_multi 1 0K 0K 78643K 4 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 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 198 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 113 38K 38K 78643K 1179 0 UVM aobj 11 2K 2K 78643K 12 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 8 0K 0K 78643K 21 0 temp 81 3850K 3914K 78643K 5137 0 kqueue 3 4K 8K 78643K 9 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 56 0 11 2 0 2 2 0 8 0 unpcb 120 81 0 73 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 56 0 56 1 1 0 1 0 8 0 tcpcb 544 48 0 44 1 0 1 1 0 8 0 inpcb 296 240 0 233 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 13 0 7 1 0 1 1 0 8 0 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pfrktable 1344 28 0 22 1 0 1 1 0 8 0 pftag 88 2 0 2 1 0 1 1 0 8 1 pfstkey 112 2 0 2 1 0 1 1 0 8 1 pfstate 328 1 0 1 1 0 1 1 0 8 1 pfrule 1360 6 0 2 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 195 0 0 13 0 13 13 0 8 0 art_table 32 197 0 0 2 0 2 2 0 8 0 art_node 16 55 0 14 1 0 1 1 0 8 0 semapl 112 22 0 12 1 0 1 1 0 8 0 shmpl 112 9 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1568 0 170 88 0 88 88 0 8 0 ffsino 240 1568 0 170 83 0 83 83 0 8 0 nchpl 144 1970 0 368 60 0 60 60 0 8 0 uvmvnodes 72 1700 0 0 31 0 31 31 0 8 0 vnodes 208 1700 0 0 90 0 90 90 0 8 0 namei 1024 5047 0 5047 1 0 1 1 0 8 1 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 2 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 10 0 6 1 0 1 1 0 8 0 scxspl 192 6007 0 6007 1 0 1 1 0 8 1 plimitpl 152 24 0 17 1 0 1 1 0 8 0 sigapl 424 350 0 301 6 0 6 6 0 8 0 futexpl 56 2828 0 2828 1 0 1 1 0 8 1 knotepl 112 67 0 48 1 0 1 1 0 8 0 kqueuepl 144 26 0 23 1 0 1 1 0 8 0 pipepl 272 91 0 81 1 0 1 1 0 8 0 fdescpl 432 315 0 301 2 0 2 2 0 8 0 filepl 120 1809 0 1714 4 0 4 4 0 8 1 lockfpl 104 33 0 32 1 0 1 1 0 8 0 lockfspl 48 13 0 12 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 21 0 11 1 0 1 1 0 8 0 ucredpl 96 123 0 116 1 0 1 1 0 8 0 zombiepl 144 301 0 301 1 0 1 1 0 8 1 processpl 928 350 0 301 7 0 7 7 0 8 0 procpl 624 500 0 444 6 0 6 6 0 8 1 sockpl 400 340 0 323 3 0 3 3 0 8 1 mcl64k 65536 21 0 21 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 7 0 7 1 0 1 1 0 8 1 mcl9k 9216 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 8 0 8 1 0 1 1 0 8 1 mcl4k 4096 15 0 15 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 74695 0 74649 15 5 10 13 0 8 3 mtagpl 96 59 0 6 3 1 2 2 0 8 0 mbufpl 256 119249 0 119007 18 2 16 16 0 8 0 bufpl 280 3876 0 133 268 0 268 268 0 8 0 anonpl 16 48779 0 33522 75 2 73 73 0 107 11 amapchunkpl 152 1963 0 1836 13 0 13 13 0 158 6 amappl16 192 1570 0 736 46 0 46 46 0 8 4 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 25 0 21 1 0 1 1 0 8 0 amappl13 168 79 0 75 1 0 1 1 0 8 0 amappl12 160 69 0 65 2 1 1 1 0 8 0 amappl11 152 100 0 90 1 0 1 1 0 8 0 amappl10 144 17 0 12 1 0 1 1 0 8 0 amappl9 136 373 0 372 1 0 1 1 0 8 0 amappl8 128 317 0 279 2 0 2 2 0 8 0 amappl7 120 107 0 96 1 0 1 1 0 8 0 amappl6 112 79 0 71 1 0 1 1 0 8 0 amappl5 104 202 0 191 1 0 1 1 0 8 0 amappl4 96 481 0 449 1 0 1 1 0 8 0 amappl3 88 166 0 158 1 0 1 1 0 8 0 amappl2 80 1677 0 1620 2 0 2 2 0 8 0 amappl1 72 15368 0 14973 23 14 9 17 0 8 0 amappl 80 708 0 669 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 11 0 1 1 0 1 1 0 8 0 uaddrrnd 24 317 0 301 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 317 0 301 1 0 1 1 0 8 0 vmmpekpl 168 6141 0 6107 2 0 2 2 0 8 0 vmmpepl 168 45127 0 43228 109 8 101 104 0 357 16 vmsppl 272 316 0 301 3 1 2 2 0 8 0 pdppl 4096 640 0 604 6 1 5 6 0 8 0 pvpl 32 154982 0 136733 178 0 178 178 0 265 30 pmappl 200 316 0 301 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 251 0 12 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(ffffffff8241b008) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053e23700,24c,474,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da64648,9,fffffd8053e23600,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da64648,0,ffff80001d722f18,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d722f18,0,ffff80001d723000) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d722fb0,ffff80001d723000) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723080) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3f30, 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(ffffffff8241b008) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd8053e23700,24c,474,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac3540) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da64648,9,fffffd8053e23600,0,0,ffff80001d71c010) at tcp_usrreq+0xa54 sosend(fffffd805da64648,0,ffff80001d722f18,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c010,4,ffff80001d722f18,0,ffff80001d723000) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c010,ffff80001d722fb0,ffff80001d723000) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723080) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3f30, count: -10