login: panic: m_copydata: null mbuf Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *314469 85681 0 0x2 0 0 syz-executor5862 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd806d6ded00,6f8,8,fffffd806d6de620) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd806d6ded00,6f8,8,fffffd806d6de620) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd806d6ded00,6f8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1149 ip6_savecontrol(fffffd806f6d5348,fffffd806d6ded00,ffff800020b03340) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1036 rip6_input(ffff800020b03598,ffff800020b035a4,0,18) at rip6_input+0x7e7 sys/netinet6/raw_ip6.c:225 ip_deliver(ffff800020b03598,ffff800020b035a4,0,18) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip6_input_if(ffff800020b03598,ffff800020b035a4,29,0,ffff80000066d000) at ip6_input_if+0x17cb ip6_ours sys/netinet6/ip6_input.c:518 [inline] ip6_input_if(ffff800020b03598,ffff800020b035a4,29,0,ffff80000066d000) at ip6_input_if+0x17cb sys/netinet6/ip6_input.c:340 ipv6_input(ffff80000066d000,fffffd806d6ded00) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000066d000,fffffd806d6ded00,18) at if_input_local+0x121 sys/net/if.c:783 ip6_output(fffffd806f0b2900,ffff800000a5ff00,fffffd806f6d52a0,0,0,fffffd806f6d5230) at ip6_output+0xd26 rip6_output(fffffd806f0b2900,fffffd806f6d6900,ffff800020b03900,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd806f6d6900,9,fffffd806f0b2900,0,0,ffff800020ac0c68) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd806f6d6900,0,ffff800020b03b48,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 end trace frame: 0xffff800020b03b30, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic m_copydata: null mbuf ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd806d6ded00,6f8,8,fffffd806d6de620) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd806d6ded00,6f8,8,fffffd806d6de620) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd806d6ded00,6f8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1149 ip6_savecontrol(fffffd806f6d5348,fffffd806d6ded00,ffff800020b03340) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1036 rip6_input(ffff800020b03598,ffff800020b035a4,0,18) at rip6_input+0x7e7 sys/netinet6/raw_ip6.c:225 ip_deliver(ffff800020b03598,ffff800020b035a4,0,18) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip6_input_if(ffff800020b03598,ffff800020b035a4,29,0,ffff80000066d000) at ip6_input_if+0x17cb ip6_ours sys/netinet6/ip6_input.c:518 [inline] ip6_input_if(ffff800020b03598,ffff800020b035a4,29,0,ffff80000066d000) at ip6_input_if+0x17cb sys/netinet6/ip6_input.c:340 ipv6_input(ffff80000066d000,fffffd806d6ded00) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000066d000,fffffd806d6ded00,18) at if_input_local+0x121 sys/net/if.c:783 ip6_output(fffffd806f0b2900,ffff800000a5ff00,fffffd806f6d52a0,0,0,fffffd806f6d5230) at ip6_output+0xd26 rip6_output(fffffd806f0b2900,fffffd806f6d6900,ffff800020b03900,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd806f6d6900,9,fffffd806f0b2900,0,0,ffff800020ac0c68) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd806f6d6900,0,ffff800020b03b48,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ac0c68,3,ffff800020b03b48,0,ffff800020b03c30) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ac0c68,ffff800020b03be8,ffff800020b03c30) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020b03cb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b03cb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,90edaf57000,0,7f7ffffc6e78,9117a79cca8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6e00, count: -18 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b030b0 rbx 0xffff800020b03160 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8213953f kprintf+0x16f r9 0x1 r10 0x24cc2f8e9a7244ab r11 0xa7b1e1cdeca6591d r12 0x3000000008 r13 0xffff800020b030c0 r14 0x100 r15 0x1 rip 0xffffffff81f89c48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b030a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor5862) pid=314469 stat=onproc flags process=2 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac09f0,0xffffffff82659070 process=0xffff800020a8b510 user=0xffff800020afe000, vmspace=0xfffffd806e7c72e8 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *85681 314469 16633 0 7 0x2 syz-executor5862 16633 151807 53062 0 3 0x10008a pause ksh 53062 377926 71407 0 3 0x92 select sshd 20957 241118 1 0 3 0x100083 ttyin getty 71407 30272 1 0 3 0x80 select sshd 30537 251608 58258 74 3 0x100092 bpf pflogd 58258 123659 1 0 3 0x80 netio pflogd 30163 200536 9437 73 3 0x100090 kqread syslogd 9437 354195 1 0 3 0x100082 netio syslogd 731 132791 1 77 3 0x100090 poll dhclient 98059 510231 1 0 3 0x80 poll dhclient 18555 517572 0 0 3 0x14200 pgzero zerothread 27295 12934 0 0 3 0x14200 aiodoned aiodoned 12555 474729 0 0 3 0x14200 syncer update 30202 216176 0 0 3 0x14200 cleaner cleaner 41791 192428 0 0 3 0x14200 reaper reaper 49618 264056 0 0 3 0x14200 pgdaemon pagedaemon 16816 222720 0 0 3 0x14200 bored crynlk 93203 447886 0 0 3 0x14200 bored crypto 34608 205353 0 0 3 0x40014200 acpi0 acpi0 30349 258332 0 0 7 0x40014200 idle1 94218 454926 0 0 3 0x14200 bored softnet 7665 133501 0 0 3 0x14200 bored systqmp 80403 221553 0 0 3 0x14200 bored systq 7853 125620 0 0 3 0x40014200 bored softclock 92373 227751 0 0 3 0x40014200 idle0 88518 150853 0 0 3 0x14200 bored smr 1 89382 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 85681 (syz-executor5862) thread 0xffff800020ac0c68 (314469) exclusive rwlock netlock r = 0 (0xffffffff824b3b78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x51b sys/kern/uipc_socket.c:512 #3 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_write+0x83 sys/kern/sys_generic.c:284 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9452 6383K 6384K 78643K 10539 0 0 pcb 15 8K 8K 78643K 17 0 0 rtable 61 2K 2K 78643K 125 0 0 ifaddr 25 7K 7K 78643K 26 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1467 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1181 74K 74K 78643K 1186 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 1 0K 0K 78643K 1 0 0 proc 59 63K 71K 78643K 358 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 11 0K 0K 78643K 11 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 18 79K 79K 78643K 18 0 0 exec 0 0K 1K 78643K 177 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 57 3K 3K 78643K 793 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 2 0K 0K 78643K 2 0 0 NDP 4 0K 0K 78643K 4 0 0 temp 39 3544K 3608K 78643K 1965 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 2 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 15 0 13 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 120 29 0 19 1 0 1 1 0 8 0 syncache 264 5 0 5 1 0 1 1 0 8 1 tcpcb 544 9 0 5 1 0 1 1 0 8 0 inpcb 280 32 0 24 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 9 0 0 1 0 1 1 0 8 0 pfstkey 112 9 0 0 1 0 1 1 0 8 0 pfstate 328 9 0 0 1 0 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 97 0 0 7 0 7 7 0 8 0 art_table 32 98 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1399 0 16 45 0 45 45 0 8 0 ffsino 272 1399 0 16 93 0 93 93 0 8 0 nchpl 144 1586 0 47 58 0 58 58 0 8 1 uvmvnodes 72 1409 0 0 26 0 26 26 0 8 0 vnodes 208 1409 0 0 75 0 75 75 0 8 0 namei 1024 3746 0 3746 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 2505 0 2505 2 0 2 2 0 8 2 plimitpl 152 14 0 8 1 0 1 1 0 8 0 sigapl 432 203 0 191 2 0 2 2 0 8 0 knotepl 112 5 0 0 1 0 1 1 0 8 0 kqueuepl 104 1 0 0 1 0 1 1 0 8 0 pipepl 112 128 0 121 1 0 1 1 0 8 0 fdescpl 488 204 0 191 3 0 3 3 0 8 0 filepl 152 975 0 925 2 0 2 2 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 52 0 43 1 0 1 1 0 8 0 zombiepl 144 191 0 191 1 0 1 1 0 8 1 processpl 896 219 0 191 4 0 4 4 0 8 0 procpl 632 219 0 191 3 0 3 3 0 8 0 sockpl 384 76 0 56 2 0 2 2 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 79 0 0 10 0 10 10 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 95 0 0 6 0 6 6 0 8 0 bufpl 256 2151 0 256 119 0 119 119 0 8 0 anonpl 16 18883 0 17652 7 1 6 7 0 124 1 amapchunkpl 152 521 0 484 2 0 2 2 0 158 0 amappl16 192 83 0 78 1 0 1 1 0 8 0 amappl14 176 37 0 33 1 0 1 1 0 8 0 amappl12 160 3 0 3 1 0 1 1 0 8 1 amappl11 152 51 0 35 1 0 1 1 0 8 0 amappl10 144 4 0 2 1 0 1 1 0 8 0 amappl9 136 422 0 421 1 0 1 1 0 8 0 amappl8 128 96 0 93 1 0 1 1 0 8 0 amappl7 120 19 0 18 1 0 1 1 0 8 0 amappl6 112 46 0 41 1 0 1 1 0 8 0 amappl5 104 127 0 113 1 0 1 1 0 8 0 amappl4 96 462 0 437 1 0 1 1 0 8 0 amappl3 88 103 0 97 1 0 1 1 0 8 0 amappl2 80 805 0 752 2 0 2 2 0 8 0 amappl1 72 13302 0 12876 15 5 10 15 0 8 0 amappl 80 407 0 386 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 204 0 191 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 204 0 191 1 0 1 1 0 8 0 vmmpekpl 168 5521 0 5500 2 1 1 2 0 8 0 vmmpepl 168 28816 0 27979 47 3 44 47 0 357 6 vmsppl 368 203 0 191 2 0 2 2 0 8 0 pdppl 4096 415 0 382 5 0 5 5 0 8 0 pvpl 32 78667 0 75636 28 0 28 28 0 265 3 pmappl 232 203 0 191 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 253 0 3 8 0 8 8 0 8 0