panic(ffffffff822419e2) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd8066617900,6f8,8,fffffd8061dba920) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd8066617900,6f8,8,fffffd8061dba920) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd8066617900,6f8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1149 ip6_savecontrol(fffffd806f66a348,fffffd8066617900,ffff800020b60b60) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1036 rip6_input(ffff800020b60db8,ffff800020b60dc4,0,18) at rip6_input+0x7e7 sys/netinet6/raw_ip6.c:225 ip_deliver(ffff800020b60db8,ffff800020b60dc4,0,18) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip6_input_if(ffff800020b60db8,ffff800020b60dc4,29,0,ffff800000670000) at ip6_input_if+0x17cb ip6_ours sys/netinet6/ip6_input.c:518 [inline] ip6_input_if(ffff800020b60db8,ffff800020b60dc4,29,0,ffff800000670000) at ip6_input_if+0x17cb sys/netinet6/ip6_input.c:340 ipv6_input(ffff800000670000,fffffd8066617900) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff800000670000,fffffd8066617900,18) at if_input_local+0x121 sys/net/if.c:781 ip6_output(fffffd8061ac6b00,ffff800000a14400,fffffd806f66a700,0,0,fffffd806f66a690) at ip6_output+0xd26 rip6_output(fffffd8061ac6b00,fffffd8064c5d198,ffff800020b61120,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd8064c5d198,9,fffffd8061ac6b00,0,0,ffff800020ade2a0) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd8064c5d198,0,ffff800020b61368,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 end trace frame: 0xffff800020b61350, 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(ffffffff822419e2) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd8066617900,6f8,8,fffffd8061dba920) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd8066617900,6f8,8,fffffd8061dba920) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd8066617900,6f8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1149 ip6_savecontrol(fffffd806f66a348,fffffd8066617900,ffff800020b60b60) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1036 rip6_input(ffff800020b60db8,ffff800020b60dc4,0,18) at rip6_input+0x7e7 sys/netinet6/raw_ip6.c:225 ip_deliver(ffff800020b60db8,ffff800020b60dc4,0,18) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip6_input_if(ffff800020b60db8,ffff800020b60dc4,29,0,ffff800000670000) at ip6_input_if+0x17cb ip6_ours sys/netinet6/ip6_input.c:518 [inline] ip6_input_if(ffff800020b60db8,ffff800020b60dc4,29,0,ffff800000670000) at ip6_input_if+0x17cb sys/netinet6/ip6_input.c:340 ipv6_input(ffff800000670000,fffffd8066617900) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff800000670000,fffffd8066617900,18) at if_input_local+0x121 sys/net/if.c:781 ip6_output(fffffd8061ac6b00,ffff800000a14400,fffffd806f66a700,0,0,fffffd806f66a690) at ip6_output+0xd26 rip6_output(fffffd8061ac6b00,fffffd8064c5d198,ffff800020b61120,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd8064c5d198,9,fffffd8061ac6b00,0,0,ffff800020ade2a0) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd8064c5d198,0,ffff800020b61368,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ade2a0,5,ffff800020b61368,0,ffff800020b61450) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ade2a0,ffff800020b61408,ffff800020b61450) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020b614d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b614d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x48dcb63c60, count: -18 ddb{0}> show registers rdi 0xffffffff81cee8a7 db_enter+0x17 rsi 0x57a8 __ALIGN_SIZE+0x47a8 rbp 0xffff800020b608d0 rbx 0xffff800020b60980 rdx 0x57a9 __ALIGN_SIZE+0x47a9 rcx 0xffff800021d94000 rax 0xffff800021d94000 r8 0xffffffff81ff23ef kprintf+0x16f r9 0x1 r10 0x25 r11 0xe9aa1b71e8ee4ed2 r12 0x3000000008 r13 0xffff800020b608e0 r14 0x100 r15 0x1 rip 0xffffffff81cee8a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b608c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=238273 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020ade518,0xffffffff82613fb8 process=0xffff800020aec700 user=0xffff800020b5c000, vmspace=0xfffffd807f008170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35590 152309 10897 0 2 0 syz-executor.0 *35590 238273 10897 0 7 0x4000000 syz-executor.0 17261 292800 0 0 3 0x14200 bored sosplice 10897 465152 9896 0 3 0x82 nanosleep syz-executor.0 50338 205458 9896 0 2 0x2 syz-executor.1 9896 175781 22058 0 3 0x82 thrsleep syz-fuzzer 9896 449666 22058 0 3 0x4000082 nanosleep syz-fuzzer 9896 151486 22058 0 3 0x4000082 thrsleep syz-fuzzer 9896 396639 22058 0 3 0x4000082 nanosleep syz-fuzzer 9896 321692 22058 0 3 0x4000082 thrsleep syz-fuzzer 9896 158539 22058 0 3 0x4000082 thrsleep syz-fuzzer 9896 349634 22058 0 3 0x4000082 thrsleep syz-fuzzer 9896 373326 22058 0 3 0x4000082 thrsleep syz-fuzzer 9896 43382 22058 0 3 0x4000082 thrsleep syz-fuzzer 9896 145541 22058 0 7 0x4000002 syz-fuzzer 22058 175821 27953 0 3 0x10008a pause ksh 27953 254092 22759 0 3 0x92 select sshd 78491 486498 1 0 3 0x100083 ttyin getty 22759 5131 1 0 3 0x80 select sshd 7777 154836 29186 74 3 0x100092 bpf pflogd 29186 46686 1 0 3 0x80 netio pflogd 40469 269474 8586 73 3 0x100090 kqread syslogd 8586 189529 1 0 3 0x100082 netio syslogd 78528 362419 1 77 3 0x100090 poll dhclient 86262 484380 1 0 3 0x80 poll dhclient 16878 401146 0 0 2 0x14200 zerothread 27524 188221 0 0 3 0x14200 aiodoned aiodoned 95371 332937 0 0 3 0x14200 syncer update 63372 198551 0 0 3 0x14200 cleaner cleaner 72955 552 0 0 3 0x14200 reaper reaper 82594 337626 0 0 3 0x14200 pgdaemon pagedaemon 1070 402358 0 0 3 0x14200 bored crynlk 68647 113163 0 0 3 0x14200 bored crypto 16789 176641 0 0 3 0x40014200 acpi0 acpi0 13013 447808 0 0 3 0x40014200 idle1 48473 20473 0 0 3 0x14200 bored softnet 21563 51289 0 0 3 0x14200 bored systqmp 51709 394148 0 0 3 0x14200 bored systq 78999 238918 0 0 3 0x40014200 bored softclock 25285 513044 0 0 3 0x40014200 idle0 25881 433550 0 0 3 0x14200 bored smr 1 352380 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &uvm.fpageqlock r = 0 (0xffffffff82651b08) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 uvm_pmr_getpages+0x34e sys/uvm/uvm_pmemrange.c:822 #4 uvm_pagealloc+0x283 sys/uvm/uvm_page.c:923 #5 uvm_fault+0xfdd #6 pageflttrap+0x20b sys/arch/amd64/amd64/trap.c:199 #7 usertrap+0x21a sys/arch/amd64/amd64/trap.c:369 #8 recall_trap+0x8 Process 35590 (syz-executor.0) thread 0xffff800020ade2a0 (238273) exclusive rwlock netlock r = 0 (0xffffffff824a3a38) #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 Process 9896 (syz-fuzzer) thread 0xffff800020ac13d8 (145541) shared rwlock vmmaplk r = 0 (0xfffffd806e7aa020) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1448 #2 uvm_fault+0x7f sys/uvm/uvm_fault.c:524 #3 pageflttrap+0x20b sys/arch/amd64/amd64/trap.c:199 #4 usertrap+0x21a sys/arch/amd64/amd64/trap.c:369 #5 recall_trap+0x8 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8260a4c0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 pageflttrap+0x6f sys/arch/amd64/amd64/trap.c:162 #2 usertrap+0x21a sys/arch/amd64/amd64/trap.c:369 #3 recall_trap+0x8 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9531 6679K 7305K 78643K 11595 0 pcb 17 8K 8K 78643K 89 0 rtable 113 4K 4K 78643K 359 0 ifaddr 67 13K 13K 78643K 123 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 1477 0 iov 0 0K 16K 78643K 43 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1485 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 83 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 239 0 sigio 0 0K 0K 78643K 2 0 proc 60 63K 95K 78643K 502 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 15 0 in_multi 52 3K 3K 78643K 89 0 ether_multi 1 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 42 185K 185K 78643K 42 0 exec 0 0K 1K 78643K 255 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 22K 23K 78643K 1811 0 UVM aobj 41 2K 2K 78643K 43 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 4 0K 0K 78643K 69 0 NDP 11 0K 0K 78643K 28 0 temp 132 3019K 3090K 78643K 7210 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 41 0 39 1 0 1 1 0 8 0 rtentry 112 70 0 25 2 0 2 2 0 8 0 unpcb 120 125 0 115 1 0 1 1 0 8 0 syncache 264 10 0 10 2 1 1 1 0 8 1 tcpqe 32 127 0 127 2 1 1 1 0 8 1 tcpcb 544 175 0 169 2 0 2 2 0 8 1 inpcb 280 410 0 398 2 0 2 2 0 8 1 nd6 48 8 0 4 1 0 1 1 0 8 0 ppxss 1128 7 0 7 1 1 0 1 0 8 0 pffrag 232 8 0 8 2 1 1 1 0 482 1 pffrnode 88 8 0 8 2 1 1 1 0 8 1 pffrent 40 233 0 233 2 1 1 1 0 8 1 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 46 0 4 1 0 1 1 0 8 0 pfstkey 112 46 0 4 2 0 2 2 0 8 0 pfstate 328 46 0 3 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 326 0 100 16 1 15 15 0 8 0 art_table 32 328 0 100 2 0 2 2 0 8 0 art_node 16 69 0 28 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 28 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 81 0 71 1 0 1 1 0 8 0 shmpl 112 41 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1753 0 344 46 0 46 46 0 8 0 ffsino 272 1753 0 344 95 0 95 95 0 8 0 nchpl 144 2327 0 719 61 0 61 61 0 8 0 uvmvnodes 72 2017 0 0 37 0 37 37 0 8 0 vnodes 208 2017 0 0 107 0 107 107 0 8 0 namei 1024 6765 0 6765 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 6904 0 6904 8 5 3 7 0 8 3 plimitpl 152 42 0 34 1 0 1 1 0 8 0 sigapl 432 435 0 420 3 1 2 3 0 8 0 futexpl 56 5637 0 5637 1 0 1 1 0 8 1 knotepl 112 95 0 76 1 0 1 1 0 8 0 kqueuepl 104 95 0 93 1 0 1 1 0 8 0 pipepl 160 278 0 259 3 1 2 2 0 8 1 fdescpl 488 436 0 420 3 0 3 3 0 8 0 filepl 152 3165 0 3061 6 0 6 6 0 8 2 lockfpl 104 147 0 146 1 0 1 1 0 8 0 lockfspl 48 33 0 32 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 230 0 221 1 0 1 1 0 8 0 zombiepl 144 420 0 420 1 0 1 1 0 8 1 processpl 896 452 0 420 4 0 4 4 0 8 0 procpl 632 945 0 903 6 1 5 5 0 8 0 sosppl 128 4 0 4 1 0 1 1 0 8 1 sockpl 384 589 0 565 4 0 4 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 166 0 0 20 0 20 20 0 8 0 mtagpl 80 18 0 0 1 0 1 1 0 8 0 mbufpl 256 294 0 0 18 0 18 18 0 8 0 bufpl 280 7100 0 1342 412 0 412 412 0 8 0 anonpl 16 60208 0 42246 82 1 81 81 0 125 1 amapchunkpl 152 2619 0 2473 12 0 12 12 0 158 5 amappl16 192 1994 0 926 55 0 55 55 0 8 1 amappl15 184 215 0 212 1 0 1 1 0 8 0 amappl14 176 42 0 38 1 0 1 1 0 8 0 amappl13 168 93 0 91 1 0 1 1 0 8 0 amappl12 160 4 0 3 1 0 1 1 0 8 0 amappl11 152 60 0 44 1 0 1 1 0 8 0 amappl10 144 14 0 10 1 0 1 1 0 8 0 amappl9 136 649 0 643 1 0 1 1 0 8 0 amappl8 128 167 0 132 2 0 2 2 0 8 0 amappl7 120 109 0 97 1 0 1 1 0 8 0 amappl6 112 64 0 54 1 0 1 1 0 8 0 amappl5 104 133 0 119 1 0 1 1 0 8 0 amappl4 96 777 0 747 1 0 1 1 0 8 0 amappl3 88 130 0 122 1 0 1 1 0 8 0 amappl2 80 2599 0 2525 3 1 2 3 0 8 0 amappl1 72 19579 0 19134 26 16 10 21 0 8 0 amappl 80 1224 0 1176 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 42 0 2 1 0 1 1 0 8 0 uaddrrnd 24 436 0 420 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 436 0 420 1 0 1 1 0 8 0 vmmpekpl 168 7493 0 7460 3 1 2 2 0 8 0 vmmpepl 168 62272 0 60013 150 9 141 141 0 357 40 vmsppl 368 435 0 420 2 0 2 2 0 8 0 pdppl 4096 879 0 840 6 0 6 6 0 8 1 pvpl 32 193157 0 172016 192 0 192 192 0 265 8 pmappl 232 435 0 420 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 173 0 4 5 0 5 5 0 8 0