panic: m_copym0: m == NULL and not COPYALL Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *342918 10660 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824211df) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805a7ec500,4dc,50c,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(fffffd805da64198,9,fffffd805a7ec400,0,0,ffff80001d71cc40) at tcp_usrreq+0xa54 sosend(fffffd805da64198,0,ffff80001d7231f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71cc40,4,ffff80001d7231f8,0,ffff80001d7232e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71cc40,ffff80001d723290,ffff80001d7232e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723360) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3830, 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(ffffffff824211df) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805a7ec500,4dc,50c,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(fffffd805da64198,9,fffffd805a7ec400,0,0,ffff80001d71cc40) at tcp_usrreq+0xa54 sosend(fffffd805da64198,0,ffff80001d7231f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71cc40,4,ffff80001d7231f8,0,ffff80001d7232e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71cc40,ffff80001d723290,ffff80001d7232e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723360) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3830, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d722cc0 rbx 0xffff80001d722d70 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff82040b7f kprintf+0x15f r9 0x1 r10 0x2 r11 0x2db8511e4111f3aa r12 0x3000000008 r13 0xffff80001d722cd0 r14 0x100 r15 0x1 rip 0xffffffff8130eb58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d722cb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=342918 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d390,0xffff80001d71c500 process=0xffff80001d706e98 user=0xffff80001d71e000, vmspace=0xfffffd806bc0abb0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 45289 96151 45026 0 2 0x2 syz-executor.0 41836 272585 0 0 3 0x14200 acct acct 91533 230616 0 0 3 0x14200 bored sosplice 14901 309759 0 0 3 0x14280 nfsidl nfsio 256 323861 0 0 3 0x14280 nfsidl nfsio 75029 426577 0 0 3 0x14280 nfsidl nfsio 69385 152499 0 0 3 0x14280 nfsidl nfsio 61453 430069 0 0 3 0x14280 nfsidl nfsio 69455 132458 0 0 3 0x14280 nfsidl nfsio 6730 328341 0 0 3 0x14280 nfsidl nfsio 42530 367474 0 0 3 0x14280 nfsidl nfsio 79338 376297 0 0 3 0x14280 nfsidl nfsio 60317 199417 0 0 3 0x14280 nfsidl nfsio 95988 449516 0 0 3 0x14280 nfsidl nfsio 44633 214701 0 0 3 0x14280 nfsidl nfsio 17098 162928 0 0 3 0x14280 nfsidl nfsio 74874 28272 0 0 3 0x14280 nfsidl nfsio 31881 36873 0 0 3 0x14280 nfsidl nfsio 72526 407425 0 0 3 0x14280 nfsidl nfsio 85397 372009 0 0 3 0x14280 nfsidl nfsio 7756 45905 0 0 3 0x14280 nfsidl nfsio 34368 400115 0 0 3 0x14280 nfsidl nfsio 70063 179119 0 0 3 0x14280 nfsidl nfsio 36990 303577 45026 0 2 0x2 syz-executor.1 45026 122883 55467 0 3 0x82 thrsleep syz-fuzzer 45026 355441 55467 0 2 0x4000002 syz-fuzzer 45026 450860 55467 0 3 0x4000082 thrsleep syz-fuzzer 45026 186771 55467 0 3 0x4000082 thrsleep syz-fuzzer 45026 459138 55467 0 3 0x4000082 thrsleep syz-fuzzer 45026 135496 55467 0 2 0x4000002 syz-fuzzer 45026 294597 55467 0 3 0x4000082 thrsleep syz-fuzzer 55467 510665 10660 0 3 0x10008a pause ksh *10660 342918 48489 0 7 0x12 sshd 11362 140755 1 0 3 0x100083 ttyin getty 48489 44975 1 0 3 0x80 select sshd 5245 161642 78810 73 3 0x100090 kqread syslogd 78810 289910 1 0 3 0x100082 netio syslogd 40623 43647 1 77 3 0x100090 poll dhclient 23244 337990 1 0 3 0x80 poll dhclient 25805 464028 0 0 3 0x14200 bored smr 25266 149525 0 0 2 0x14200 zerothread 91499 463527 0 0 3 0x14200 aiodoned aiodoned 2001 239036 0 0 3 0x14200 syncer update 32131 84934 0 0 3 0x14200 cleaner cleaner 17050 11175 0 0 3 0x14200 reaper reaper 54227 290612 0 0 3 0x14200 pgdaemon pagedaemon 85108 300882 0 0 3 0x14200 bored crynlk 8869 341931 0 0 3 0x14200 bored crypto 15014 39694 0 0 3 0x40014200 acpi0 acpi0 13282 88269 0 0 3 0x14200 bored softnet 52699 60242 0 0 3 0x14200 bored systqmp 30514 224775 0 0 3 0x14200 bored systq 10415 319287 0 0 3 0x40014200 bored softclock 46760 102368 0 0 3 0x40014200 idle0 1 454942 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 9525 6496K 6972K 78643K 11521 0 pcb 13 8K 8K 78643K 101 0 rtable 102 7K 10K 78643K 634 0 ifaddr 96 18K 19K 78643K 228 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 33 0 ioctlops 0 0K 4K 78643K 114 0 iov 0 0K 16K 78643K 80 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1556 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 14 0 VM map 2 0K 0K 78643K 2 0 sem 12 1K 1K 78643K 38 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 750 0 sigio 0 0K 0K 78643K 20 0 proc 50 38K 55K 78643K 535 0 subproc 32 2K 2K 78643K 85 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 39 0 in_multi 66 3K 3K 78643K 161 0 ether_multi 1 0K 0K 78643K 11 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 271 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 144 153K 169K 78643K 2639 0 UVM aobj 35 6K 6K 78643K 42 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 76 0 NDP 17 0K 0K 78643K 42 0 temp 147 3872K 3937K 78643K 16177 0 kqueue 3 4K 8K 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 12 0 8 1 0 1 1 0 8 0 rtpcb 80 67 0 65 1 0 1 1 0 8 0 rtentry 112 100 0 69 2 0 2 2 0 8 0 unpcb 120 1569 0 1561 1 0 1 1 0 8 0 syncache 264 12 0 12 4 4 0 1 0 8 0 tcpqe 32 118 0 118 2 2 0 1 0 8 0 tcpcb 544 210 0 206 4 2 2 2 0 8 1 ipq 40 41 0 40 3 2 1 1 0 8 0 ipqe 40 205 0 204 3 2 1 1 0 8 0 inpcb 296 620 0 613 3 1 2 2 0 8 1 ip6q 72 5 0 5 3 2 1 1 0 8 1 ip6af 40 12 0 12 3 2 1 1 0 8 1 nd6 48 24 0 19 1 0 1 1 0 8 0 pfstscr 40 6 0 4 1 0 1 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 75 0 66 2 1 1 2 0 8 0 pftag 88 10 0 8 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 8 0 6 1 0 1 1 0 8 0 pfstate 328 4 0 3 1 0 1 1 0 8 0 pfrule 1360 29 0 14 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 576 0 376 20 7 13 15 0 8 0 art_table 32 578 0 376 2 0 2 2 0 8 0 art_node 16 99 0 73 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 28 0 18 1 0 1 1 0 8 0 shmpl 112 39 0 7 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2299 0 903 88 0 88 88 0 8 0 ffsino 240 2299 0 903 83 0 83 83 0 8 0 nchpl 144 3467 0 1884 60 0 60 60 0 8 0 uvmvnodes 72 2601 0 0 48 0 48 48 0 8 0 vnodes 208 2601 0 0 137 0 137 137 0 8 0 namei 1024 9450 0 9450 2 1 1 1 0 8 1 vcpupl 1984 13 0 0 2 0 2 2 0 8 0 vmpool 528 17 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 26 0 16 1 0 1 1 0 8 0 scxspl 192 10499 0 10499 1 0 1 1 0 8 1 plimitpl 152 62 0 55 1 0 1 1 0 8 0 sigapl 424 949 0 900 6 0 6 6 0 8 0 futexpl 56 14706 0 14706 2 1 1 1 0 8 1 knotepl 112 124 0 104 1 0 1 1 0 8 0 kqueuepl 144 85 0 83 1 0 1 1 0 8 0 pipepl 272 185 0 174 4 2 2 2 0 8 1 fdescpl 432 913 0 900 2 0 2 2 0 8 0 filepl 120 5709 0 5612 4 0 4 4 0 8 1 lockfpl 104 156 0 155 1 0 1 1 0 8 0 lockfspl 48 57 0 56 1 0 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 26 0 16 1 0 1 1 0 8 0 ucredpl 96 539 0 532 1 0 1 1 0 8 0 zombiepl 144 900 0 900 1 0 1 1 0 8 1 processpl 928 949 0 900 7 0 7 7 0 8 0 procpl 624 1772 0 1717 6 1 5 6 0 8 0 sosppl 128 5 0 5 2 2 0 1 0 8 0 sockpl 400 2260 0 2243 8 4 4 4 0 8 2 mcl64k 65536 37 0 37 3 2 1 1 0 8 1 mcl16k 16384 8 0 8 3 3 0 1 0 8 0 mcl12k 12288 15 0 15 4 3 1 1 0 8 1 mcl9k 9216 12 0 12 3 2 1 1 0 8 1 mcl8k 8192 23 0 23 1 1 0 1 0 8 0 mcl4k 4096 69 0 69 3 2 1 1 0 8 1 mcl2k2 2112 7 0 7 3 2 1 1 0 8 1 mcl2k 2048 95797 0 95745 18 11 7 15 0 8 0 mtagpl 96 64 0 56 2 1 1 1 0 8 0 mbufpl 256 159168 0 159068 130 119 11 116 0 8 3 bufpl 280 4735 0 126 330 0 330 330 0 8 0 anonpl 16 132730 0 117939 112 24 88 96 0 107 7 amapchunkpl 152 5416 0 5236 28 19 9 21 0 158 0 amappl16 192 5265 0 4216 78 23 55 65 0 8 2 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 464 0 456 1 0 1 1 0 8 0 amappl13 168 165 0 161 1 0 1 1 0 8 0 amappl12 160 136 0 133 2 1 1 1 0 8 0 amappl11 152 186 0 176 1 0 1 1 0 8 0 amappl10 144 12 0 9 1 0 1 1 0 8 0 amappl9 136 359 0 355 1 0 1 1 0 8 0 amappl8 128 359 0 329 2 0 2 2 0 8 1 amappl7 120 131 0 115 1 0 1 1 0 8 0 amappl6 112 132 0 131 1 0 1 1 0 8 0 amappl5 104 721 0 710 1 0 1 1 0 8 0 amappl4 96 622 0 591 1 0 1 1 0 8 0 amappl3 88 676 0 669 1 0 1 1 0 8 0 amappl2 80 6281 0 6223 2 0 2 2 0 8 0 amappl1 72 30037 0 29633 23 13 10 17 0 8 0 amappl 80 2064 0 2005 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 41 0 7 1 0 1 1 0 8 0 uaddrrnd 24 930 0 904 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 930 0 904 1 0 1 1 0 8 0 vmmpekpl 168 8810 0 8774 2 0 2 2 0 8 0 vmmpepl 168 120670 0 118597 202 65 137 156 0 357 40 vmsppl 272 929 0 904 2 0 2 2 0 8 0 pdppl 4096 1866 0 1821 7 0 7 7 0 8 0 pvpl 32 337870 0 320093 249 30 219 230 0 265 31 pmappl 200 929 0 904 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 391 0 157 11 3 8 10 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(ffffffff824211df) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805a7ec500,4dc,50c,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(fffffd805da64198,9,fffffd805a7ec400,0,0,ffff80001d71cc40) at tcp_usrreq+0xa54 sosend(fffffd805da64198,0,ffff80001d7231f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71cc40,4,ffff80001d7231f8,0,ffff80001d7232e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71cc40,ffff80001d723290,ffff80001d7232e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723360) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3830, 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(ffffffff824211df) at panic+0x164 sys/kern/subr_prf.c:218 m_copym(fffffd805a7ec500,4dc,50c,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(fffffd805da64198,9,fffffd805a7ec400,0,0,ffff80001d71cc40) at tcp_usrreq+0xa54 sosend(fffffd805da64198,0,ffff80001d7231f8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71cc40,4,ffff80001d7231f8,0,ffff80001d7232e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71cc40,ffff80001d723290,ffff80001d7232e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723360) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3830, count: -10