panic: m_copydata: null mbuf Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *341598 3356 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8222531e) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd8057c01400,1e8,8,fffffd80573f0420) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd8057c01400,1e8,8,fffffd80573f0420) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd8057c01400,1e8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1175 ip6_savecontrol(fffffd805e4d3118,fffffd8057c01400,ffff800020473660) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1062 rip6_input(ffff8000204738b8,ffff8000204738c4,0,18) at rip6_input+0x75b sys/netinet6/raw_ip6.c:225 ip_deliver(ffff8000204738b8,ffff8000204738c4,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff8000204738b8,ffff8000204738c4,29,0,ffff800000677800) at ip6_input_if+0x1055 ipv6_input(ffff800000677800,fffffd8057c01400) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff800000677800,fffffd8057c01400,18) at if_input_local+0x121 sys/net/if.c:781 ip6_output(fffffd8057c01900,ffff800000a01b80,fffffd805e4d3700,0,0,fffffd805e4d3690) at ip6_output+0xd02 rip6_output(fffffd8057c01900,fffffd805d8ead88,ffff800020473c20,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd805d8ead88,9,fffffd8057c01900,0,0,ffff80001d41eee8) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd805d8ead88,0,ffff800020473e68,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:524 end trace frame: 0xffff800020473e50, count: 0 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_copydata: null mbuf ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8222531e) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd8057c01400,1e8,8,fffffd80573f0420) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd8057c01400,1e8,8,fffffd80573f0420) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd8057c01400,1e8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1175 ip6_savecontrol(fffffd805e4d3118,fffffd8057c01400,ffff800020473660) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1062 rip6_input(ffff8000204738b8,ffff8000204738c4,0,18) at rip6_input+0x75b sys/netinet6/raw_ip6.c:225 ip_deliver(ffff8000204738b8,ffff8000204738c4,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff8000204738b8,ffff8000204738c4,29,0,ffff800000677800) at ip6_input_if+0x1055 ipv6_input(ffff800000677800,fffffd8057c01400) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff800000677800,fffffd8057c01400,18) at if_input_local+0x121 sys/net/if.c:781 ip6_output(fffffd8057c01900,ffff800000a01b80,fffffd805e4d3700,0,0,fffffd805e4d3690) at ip6_output+0xd02 rip6_output(fffffd8057c01900,fffffd805d8ead88,ffff800020473c20,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd805d8ead88,9,fffffd8057c01900,0,0,ffff80001d41eee8) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd805d8ead88,0,ffff800020473e68,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:524 dofilewritev(ffff80001d41eee8,3,ffff800020473e68,0,ffff800020473f50) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff80001d41eee8,ffff800020473f08,ffff800020473f50) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020473fd0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9c98468bc90, count: -18 ddb> show registers rdi 0xffffffff81537307 db_enter+0x17 rsi 0x2aac __ALIGN_SIZE+0x1aac rbp 0xffff8000204733d0 rbx 0xffff800020473480 rdx 0x2aad __ALIGN_SIZE+0x1aad rcx 0xffff80001f653000 rax 0xffff80001f653000 r8 0xffff800020473390 r9 0x1 r10 0xffff8000009f2780 r11 0x86fd029f86199753 r12 0x3000000008 r13 0xffff8000204733e0 r14 0x100 r15 0x1 rip 0xffffffff81537308 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000204733c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=341598 stat=onproc flags process=0 proc=4000000 pri=67, usrpri=67, nice=20 forw=0xffffffffffffffff, list=0xffff80001d41e9f8,0xffffffff8256eef0 process=0xffff8000ffff66e0 user=0xffff80002046f000, vmspace=0xfffffd806afe1cc8 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 3356 211408 40344 0 2 0 syz-executor.1 * 3356 341598 40344 0 7 0x4000000 syz-executor.1 66473 442385 82949 0 2 0 syz-executor.0 66473 154564 82949 0 3 0x4000080 netcon2 syz-executor.0 82949 372168 84000 0 3 0x82 nanosleep syz-executor.0 78961 235131 0 0 3 0x14200 bored sosplice 40344 261081 84000 0 3 0x82 nanosleep syz-executor.1 84000 499932 34426 0 3 0x82 kqread syz-fuzzer 84000 359656 34426 0 3 0x4000082 nanosleep syz-fuzzer 84000 50759 34426 0 3 0x4000082 thrsleep syz-fuzzer 84000 34699 34426 0 3 0x4000082 thrsleep syz-fuzzer 84000 479136 34426 0 3 0x4000082 thrsleep syz-fuzzer 84000 14146 34426 0 3 0x4000082 thrsleep syz-fuzzer 84000 475934 34426 0 3 0x4000082 thrsleep syz-fuzzer 84000 127456 34426 0 3 0x4000082 thrsleep syz-fuzzer 34426 171077 50323 0 3 0x10008a pause ksh 50323 338158 15207 0 3 0x92 select sshd 28821 315902 1 0 3 0x100083 ttyin getty 15207 210536 1 0 3 0x80 select sshd 95137 42655 33916 73 3 0x100090 kqread syslogd 33916 127980 1 0 3 0x100082 netio syslogd 48981 316356 1 77 3 0x100090 poll dhclient 62280 397118 1 0 3 0x80 poll dhclient 38886 495421 0 0 2 0x14200 zerothread 63788 491921 0 0 3 0x14200 aiodoned aiodoned 98516 38571 0 0 3 0x14200 syncer update 86659 255473 0 0 3 0x14200 cleaner cleaner 31341 403904 0 0 3 0x14200 reaper reaper 82648 406591 0 0 3 0x14200 pgdaemon pagedaemon 10895 108277 0 0 3 0x14200 bored crynlk 64324 149220 0 0 3 0x14200 bored crypto 98582 231982 0 0 3 0x40014200 acpi0 acpi0 86662 337212 0 0 3 0x14200 bored softnet 4876 184454 0 0 3 0x14200 bored systqmp 28386 405925 0 0 3 0x14200 bored systq 45848 87902 0 0 3 0x40014200 bored softclock 91247 446927 0 0 3 0x40014200 idle0 32682 43156 0 0 3 0x14200 bored smr 1 150181 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 9495 6337K 7046K 78643K 11187 0 pcb 15 8K 8K 78643K 65 0 rtable 101 3K 4K 78643K 305 0 ifaddr 64 12K 13K 78643K 111 0 counters 19 16K 16K 78643K 19 0 ioctlops 0 0K 2K 78643K 32 0 iov 0 0K 16K 78643K 62 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1407 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 0K 0K 78643K 2 0 sem 12 1K 1K 78643K 44 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 6 17K 25K 78643K 241 0 sigio 0 0K 0K 78643K 18 0 proc 48 38K 54K 78643K 418 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 19 0 in_multi 35 2K 2K 78643K 62 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 216 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 54K 54K 78643K 1435 0 UVM aobj 18 2K 2K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 2 0K 0K 78643K 41 0 NDP 11 0K 0K 78643K 24 0 temp 105 3013K 3088K 78643K 5456 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 9 0 4 1 0 1 1 0 8 0 rtpcb 80 33 0 31 1 0 1 1 0 8 0 rtentry 112 60 0 21 2 0 2 2 0 8 0 unpcb 120 172 0 164 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 213 0 213 1 1 0 1 0 8 0 tcpcb 544 94 0 88 1 0 1 1 0 8 0 inpcb 280 650 0 640 3 1 2 3 0 8 1 nd6 48 7 0 4 1 0 1 1 0 8 0 ppxss 1128 3 0 3 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 303 0 90 14 0 14 14 0 8 0 art_table 32 304 0 90 2 0 2 2 0 8 0 art_node 16 59 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 35 0 19 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 42 0 32 1 0 1 1 0 8 0 shmpl 112 18 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1722 0 328 46 0 46 46 0 8 0 ffsino 240 1722 0 328 83 0 83 83 0 8 0 nchpl 144 2247 0 649 60 0 60 60 0 8 0 uvmvnodes 72 1908 0 0 35 0 35 35 0 8 0 vnodes 208 1908 0 0 101 0 101 101 0 8 0 namei 1024 6072 0 6072 1 0 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 6 0 2 1 0 1 1 0 8 0 scxspl 192 7105 0 7105 1 0 1 1 0 8 1 plimitpl 152 37 0 30 1 0 1 1 0 8 0 sigapl 432 409 0 395 2 0 2 2 0 8 0 futexpl 56 6070 0 6070 1 0 1 1 0 8 1 knotepl 112 94 0 75 1 0 1 1 0 8 0 kqueuepl 104 43 0 41 1 0 1 1 0 8 0 pipepl 112 362 0 343 2 1 1 2 0 8 0 fdescpl 424 410 0 395 2 0 2 2 0 8 0 filepl 120 3062 0 2964 6 2 4 6 0 8 1 lockfpl 104 54 0 53 1 0 1 1 0 8 0 lockfspl 48 18 0 17 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 289 0 282 1 0 1 1 0 8 0 zombiepl 144 395 0 395 1 0 1 1 0 8 1 processpl 872 425 0 395 4 0 4 4 0 8 0 procpl 632 693 0 654 4 0 4 4 0 8 0 sosppl 128 31 0 31 1 0 1 1 0 8 1 sockpl 384 859 0 839 6 2 4 6 0 8 2 mcl64k 65536 13 0 13 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 2 1 1 1 0 8 1 mcl12k 12288 3 0 3 2 1 1 1 0 8 1 mcl9k 9216 6 0 6 1 0 1 1 0 8 1 mcl8k 8192 11 0 11 1 0 1 1 0 8 1 mcl4k 4096 41 0 41 2 1 1 1 0 8 1 mcl2k2 2112 5 0 5 1 1 0 1 0 8 0 mcl2k 2048 66871 0 66819 18 11 7 16 0 8 0 mtagpl 80 38 0 27 2 1 1 1 0 8 0 mbufpl 256 107768 0 107651 13 4 9 11 0 8 0 bufpl 280 6932 0 1330 401 0 401 401 0 8 0 anonpl 16 61837 0 43510 91 1 90 90 0 107 14 amapchunkpl 152 1898 0 1747 9 2 7 8 0 158 0 amappl16 192 2243 0 1204 64 3 61 64 0 8 8 amappl15 184 229 0 221 1 0 1 1 0 8 0 amappl14 176 31 0 29 1 0 1 1 0 8 0 amappl13 168 8 0 7 1 0 1 1 0 8 0 amappl12 160 6 0 4 1 0 1 1 0 8 0 amappl11 152 49 0 38 1 0 1 1 0 8 0 amappl10 144 10 0 9 1 0 1 1 0 8 0 amappl9 136 671 0 665 1 0 1 1 0 8 0 amappl8 128 224 0 198 1 0 1 1 0 8 0 amappl7 120 100 0 87 1 0 1 1 0 8 0 amappl6 112 55 0 49 1 0 1 1 0 8 0 amappl5 104 162 0 152 1 0 1 1 0 8 0 amappl4 96 629 0 597 1 0 1 1 0 8 0 amappl3 88 125 0 117 1 0 1 1 0 8 0 amappl2 80 2476 0 2398 3 1 2 3 0 8 0 amappl1 72 17245 0 16814 26 17 9 20 0 8 0 amappl 80 930 0 884 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 19 0 2 1 0 1 1 0 8 0 uaddrrnd 24 416 0 397 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 416 0 397 1 0 1 1 0 8 0 vmmpekpl 168 6808 0 6779 2 0 2 2 0 8 0 vmmpepl 168 58606 0 56365 143 15 128 133 0 357 30 vmsppl 272 415 0 397 2 0 2 2 0 8 0 pdppl 4096 838 0 798 7 1 6 6 0 8 0 pvpl 32 195620 0 174217 218 0 218 218 0 265 44 pmappl 200 415 0 397 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 151 0 20 5 0 5 5 0 8 0