panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *453604 27168 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82418878) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e4b4f00,1a4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1cc0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da73198,9,fffffd805e4b4e00,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da73198,0,ffff80001d6cadc8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6cadc8,0,ffff80001d6caeb0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6cae60,ffff80001d6caeb0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6caf30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6710, 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(ffffffff82418878) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e4b4f00,1a4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1cc0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da73198,9,fffffd805e4b4e00,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da73198,0,ffff80001d6cadc8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6cadc8,0,ffff80001d6caeb0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6cae60,ffff80001d6caeb0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6caf30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6710, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6ca890 rbx 0xffff80001d6ca940 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81cf67ff kprintf+0x15f r9 0x1 r10 0x2 r11 0x35e381eb99c912c8 r12 0x3000000008 r13 0xffff80001d6ca8a0 r14 0x100 r15 0x1 rip 0xffffffff81fe3938 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6ca880 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=453604 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d718120,0xffff80001d717290 process=0xffff8000ffff8e78 user=0xffff80001d6c5000, vmspace=0xfffffd806bc0a770 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 21928 280926 29801 0 2 0 syz-executor.0 21928 411145 29801 0 2 0x4000000 syz-executor.0 4645 269984 0 0 3 0x14200 bored sosplice 91125 67758 0 0 3 0x14280 nfsidl nfsio 43625 60517 0 0 3 0x14280 nfsidl nfsio 53287 217368 0 0 3 0x14280 nfsidl nfsio 75836 252391 0 0 3 0x14280 nfsidl nfsio 41357 338691 0 0 3 0x14280 nfsidl nfsio 86962 171063 0 0 3 0x14280 nfsidl nfsio 9398 384851 0 0 3 0x14280 nfsidl nfsio 11386 250132 0 0 3 0x14280 nfsidl nfsio 59311 297261 0 0 3 0x14280 nfsidl nfsio 66638 164173 0 0 3 0x14280 nfsidl nfsio 72073 352612 0 0 3 0x14280 nfsidl nfsio 13833 54960 0 0 3 0x14280 nfsidl nfsio 3139 146727 0 0 3 0x14280 nfsidl nfsio 44631 70453 0 0 3 0x14280 nfsidl nfsio 16884 334473 0 0 3 0x14280 nfsidl nfsio 43615 191939 0 0 3 0x14280 nfsidl nfsio 8414 171120 0 0 3 0x14280 nfsidl nfsio 17854 455962 0 0 3 0x14280 nfsidl nfsio 8554 228744 0 0 3 0x14280 nfsidl nfsio 6309 313159 0 0 3 0x14280 nfsidl nfsio 29801 294782 42984 0 2 0x482 syz-executor.0 82116 221935 42984 0 2 0x2 syz-executor.1 42984 233471 71774 0 2 0x2 syz-fuzzer 42984 33806 71774 0 2 0x4000482 syz-fuzzer 42984 11490 71774 0 3 0x4000082 thrsleep syz-fuzzer 42984 4801 71774 0 3 0x4000082 thrsleep syz-fuzzer 42984 24990 71774 0 3 0x4000082 thrsleep syz-fuzzer 42984 278172 71774 0 3 0x4000082 thrsleep syz-fuzzer 42984 195791 71774 0 3 0x4000082 thrsleep syz-fuzzer 42984 239061 71774 0 3 0x4000082 thrsleep syz-fuzzer 71774 190969 27168 0 3 0x10008a pause ksh *27168 453604 88130 0 7 0x12 sshd 51470 216888 1 0 3 0x100083 ttyin getty 88130 347460 1 0 3 0x80 select sshd 2809 418637 80790 73 3 0x100090 kqread syslogd 80790 90712 1 0 3 0x100082 netio syslogd 58921 181002 1 77 3 0x100090 poll dhclient 44591 173018 1 0 3 0x80 poll dhclient 94307 384665 0 0 3 0x14200 bored smr 65841 522287 0 0 2 0x14200 zerothread 52166 97743 0 0 3 0x14200 aiodoned aiodoned 51698 166267 0 0 3 0x14200 syncer update 89941 112563 0 0 3 0x14200 cleaner cleaner 98057 288810 0 0 3 0x14200 reaper reaper 96896 123031 0 0 3 0x14200 pgdaemon pagedaemon 70976 299903 0 0 3 0x14200 bored crynlk 99088 222611 0 0 3 0x14200 bored crypto 42884 170044 0 0 3 0x40014200 acpi0 acpi0 86516 124723 0 0 3 0x14200 bored softnet 49225 457551 0 0 3 0x14200 bored systqmp 30977 41511 0 0 3 0x14200 bored systq 67144 390921 0 0 3 0x40014200 bored softclock 87234 479059 0 0 3 0x40014200 idle0 1 360707 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 9469 6338K 6526K 78643K 10641 0 pcb 13 8K 8K 78643K 33 0 rtable 106 3K 7K 78643K 240 0 ifaddr 48 11K 11K 78643K 71 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 24 0 iov 0 0K 16K 78643K 16 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1242 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 14 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 88 0 proc 48 38K 54K 78643K 369 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 33 2K 2K 78643K 43 0 ether_multi 1 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 189 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 123 39K 39K 78643K 1062 0 UVM aobj 2 2K 2K 78643K 2 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 7 0K 0K 78643K 11 0 temp 71 3851K 3915K 78643K 2303 0 kqueue 3 4K 5K 78643K 7 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 21 0 19 1 0 1 1 0 8 0 rtentry 112 46 0 2 2 0 2 2 0 8 0 unpcb 120 37 0 29 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 226 0 226 1 1 0 1 0 8 0 tcpcb 544 23 0 19 1 0 1 1 0 8 0 inpcb 296 91 0 84 2 1 1 2 0 8 0 nd6 48 7 0 1 1 0 1 1 0 8 0 pfrktable 1344 22 0 22 1 0 1 1 0 8 1 pftag 88 8 0 8 1 0 1 1 0 8 1 pfrule 1360 4 0 4 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 45 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1491 0 92 88 0 88 88 0 8 0 ffsino 240 1491 0 92 83 0 83 83 0 8 0 nchpl 144 1811 0 206 60 0 60 60 0 8 0 uvmvnodes 72 1548 0 0 29 0 29 29 0 8 0 vnodes 208 1548 0 0 82 0 82 82 0 8 0 namei 1024 4680 0 4680 2 1 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 6 0 6 1 0 1 1 0 8 1 scxspl 192 5669 0 5669 1 0 1 1 0 8 1 plimitpl 152 18 0 11 1 0 1 1 0 8 0 sigapl 424 295 0 246 6 0 6 6 0 8 0 futexpl 56 1275 0 1275 1 0 1 1 0 8 1 knotepl 112 63 0 44 1 0 1 1 0 8 0 kqueuepl 144 10 0 8 1 0 1 1 0 8 0 pipepl 272 76 0 66 1 0 1 1 0 8 0 fdescpl 432 260 0 246 2 0 2 2 0 8 0 filepl 120 1446 0 1351 4 0 4 4 0 8 1 lockfpl 104 18 0 17 1 0 1 1 0 8 0 lockfspl 48 8 0 7 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 195 0 188 1 0 1 1 0 8 0 zombiepl 144 246 0 246 2 1 1 1 0 8 1 processpl 920 295 0 246 7 0 7 7 0 8 0 procpl 624 393 0 336 5 0 5 5 0 8 0 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 149 0 132 3 0 3 3 0 8 1 mcl64k 65536 3 0 3 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 3 0 3 1 0 1 1 0 8 1 mcl4k 4096 11 0 11 2 1 1 1 0 8 1 mcl2k 2048 77838 0 77782 24 16 8 20 0 8 0 mtagpl 96 6 0 2 2 1 1 1 0 8 0 mbufpl 256 122698 0 122602 16 4 12 12 0 8 1 bufpl 280 3717 0 139 256 0 256 256 0 8 0 anonpl 16 41337 0 25176 69 2 67 67 0 107 1 amapchunkpl 152 1253 0 1124 8 2 6 8 0 158 0 amappl16 192 1253 0 365 46 0 46 46 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 53 0 47 1 0 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 11 0 6 1 0 1 1 0 8 0 amappl11 152 78 0 67 1 0 1 1 0 8 0 amappl10 144 15 0 7 1 0 1 1 0 8 0 amappl9 136 295 0 294 1 0 1 1 0 8 0 amappl8 128 322 0 284 2 0 2 2 0 8 0 amappl7 120 115 0 103 1 0 1 1 0 8 0 amappl6 112 54 0 47 2 1 1 1 0 8 0 amappl5 104 330 0 320 1 0 1 1 0 8 0 amappl4 96 447 0 421 1 0 1 1 0 8 0 amappl3 88 108 0 101 1 0 1 1 0 8 0 amappl2 80 1238 0 1173 2 0 2 2 0 8 0 amappl1 72 14609 0 14199 21 11 10 17 0 8 0 amappl 80 590 0 549 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 262 0 246 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 262 0 246 1 0 1 1 0 8 0 vmmpekpl 168 5986 0 5955 2 0 2 2 0 8 0 vmmpepl 168 38856 0 36884 114 13 101 107 0 357 15 vmsppl 272 261 0 246 2 0 2 2 0 8 1 pdppl 4096 530 0 494 6 1 5 6 0 8 0 pvpl 32 139699 0 120477 161 0 161 161 0 265 4 pmappl 200 261 0 246 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 254 0 25 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(ffffffff82418878) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e4b4f00,1a4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1cc0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da73198,9,fffffd805e4b4e00,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da73198,0,ffff80001d6cadc8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6cadc8,0,ffff80001d6caeb0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6cae60,ffff80001d6caeb0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6caf30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6710, 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(ffffffff82418878) at panic+0x15c sys/kern/subr_prf.c:207 m_copym(fffffd805e4b4f00,1a4,580,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664 tcp_output(ffff800000ac1cc0) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da73198,9,fffffd805e4b4e00,0,0,ffff80001d717760) at tcp_usrreq+0xa54 sosend(fffffd805da73198,0,ffff80001d6cadc8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d717760,4,ffff80001d6cadc8,0,ffff80001d6caeb0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d717760,ffff80001d6cae60,ffff80001d6caeb0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6caf30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6710, count: -10