panic(ffffffff822441cb) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd8063e69800,6f8,8,fffffd8063e6b520) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd8063e69800,6f8,8,fffffd8063e6b520) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd8063e69800,6f8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1174 ip6_savecontrol(fffffd806f665e38,fffffd8063e69800,ffff800022d8e660) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1061 rip6_input(ffff800022d8e8a8,ffff800022d8e8b4,0,18) at rip6_input+0x7e7 sys/netinet6/raw_ip6.c:225 ip_deliver(ffff800022d8e8a8,ffff800022d8e8b4,0,18) at ip_deliver+0x353 sys/netinet/ip_input.c:668 ip6_input_if(ffff800022d8e8a8,ffff800022d8e8b4,29,0,ffff800000671800) at ip6_input_if+0x1203 ipv6_input(ffff800000671800,fffffd8063e69800) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff800000671800,fffffd8063e69800,18) at if_input_local+0x121 sys/net/if.c:781 ip6_output(fffffd8063e6b400,ffff800000a13480,fffffd806f665d90,0,0,fffffd806f665d20) at ip6_output+0xd26 rip6_output(fffffd8063e6b400,fffffd806cccf310,ffff800022d8ec10,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd806cccf310,9,fffffd8063e6b400,0,0,ffff800020acf650) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd806cccf310,0,ffff800022d8ee68,0,0,0) at sosend+0x671 sys/kern/uipc_socket.c:524 end trace frame: 0xffff800022d8ee50, 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(ffffffff822441cb) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd8063e69800,6f8,8,fffffd8063e6b520) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd8063e69800,6f8,8,fffffd8063e6b520) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd8063e69800,6f8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1174 ip6_savecontrol(fffffd806f665e38,fffffd8063e69800,ffff800022d8e660) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1061 rip6_input(ffff800022d8e8a8,ffff800022d8e8b4,0,18) at rip6_input+0x7e7 sys/netinet6/raw_ip6.c:225 ip_deliver(ffff800022d8e8a8,ffff800022d8e8b4,0,18) at ip_deliver+0x353 sys/netinet/ip_input.c:668 ip6_input_if(ffff800022d8e8a8,ffff800022d8e8b4,29,0,ffff800000671800) at ip6_input_if+0x1203 ipv6_input(ffff800000671800,fffffd8063e69800) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff800000671800,fffffd8063e69800,18) at if_input_local+0x121 sys/net/if.c:781 ip6_output(fffffd8063e6b400,ffff800000a13480,fffffd806f665d90,0,0,fffffd806f665d20) at ip6_output+0xd26 rip6_output(fffffd8063e6b400,fffffd806cccf310,ffff800022d8ec10,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd806cccf310,9,fffffd8063e6b400,0,0,ffff800020acf650) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd806cccf310,0,ffff800022d8ee68,0,0,0) at sosend+0x671 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020acf650,3,ffff800022d8ee68,0,ffff800022d8ef50) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020acf650,ffff800022d8ef08,ffff800022d8ef50) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800022d8efd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d8efd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x269611d0050, count: -18 ddb{0}> show registers rdi 0xffffffff817def37 db_enter+0x17 rsi 0x775d __ALIGN_SIZE+0x675d rbp 0xffff800022d8e3d0 rbx 0xffff800022d8e480 rdx 0x775e __ALIGN_SIZE+0x675e rcx 0xffff800020b7a000 rax 0xffff800020b7a000 r8 0xffffffff8214b4ef kprintf+0x16f r9 0x1 r10 0x25 r11 0x8de18b760d44c3b6 r12 0x3000000008 r13 0xffff800022d8e3e0 r14 0x100 r15 0x1 rip 0xffffffff817def38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d8e3c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=434846 stat=onproc flags process=0 proc=4000000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace018,0xffffffff8263cb28 process=0xffff800020aec018 user=0xffff800022d8a000, vmspace=0xfffffd807f007170 estcpu=2, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13895 28956 93344 0 2 0 syz-executor.0 *13895 434846 93344 0 7 0x4000000 syz-executor.0 56230 242397 0 0 3 0x14200 bored sosplice 16582 331903 48674 0 7 0x2 syz-executor.1 93344 433985 48674 0 2 0x482 syz-executor.0 48674 304245 7886 0 3 0x82 thrsleep syz-fuzzer 48674 271201 7886 0 2 0x4000482 syz-fuzzer 48674 91628 7886 0 2 0x4000482 syz-fuzzer 48674 144892 7886 0 3 0x4000082 thrsleep syz-fuzzer 48674 30261 7886 0 3 0x4000082 thrsleep syz-fuzzer 48674 78448 7886 0 3 0x4000082 thrsleep syz-fuzzer 48674 214176 7886 0 3 0x4000082 thrsleep syz-fuzzer 48674 391918 7886 0 3 0x4000082 thrsleep syz-fuzzer 48674 221359 7886 0 3 0x4000082 thrsleep syz-fuzzer 48674 489247 7886 0 3 0x4000082 kqread syz-fuzzer 48674 106462 7886 0 3 0x4000082 thrsleep syz-fuzzer 7886 130301 69390 0 3 0x10008a pause ksh 69390 168395 4657 0 3 0x92 select sshd 58338 519913 1 0 3 0x100083 ttyin getty 4657 203398 1 0 3 0x80 select sshd 51502 480029 70117 74 3 0x100092 bpf pflogd 70117 441938 1 0 3 0x80 netio pflogd 81320 511910 62513 73 3 0x100090 kqread syslogd 62513 264572 1 0 3 0x100082 netio syslogd 17433 63058 1 77 3 0x100090 poll dhclient 391 404899 1 0 3 0x80 poll dhclient 89473 182013 0 0 3 0x14200 pgzero zerothread 44501 29116 0 0 3 0x14200 aiodoned aiodoned 35432 204564 0 0 3 0x14200 syncer update 59851 104882 0 0 3 0x14200 cleaner cleaner 27862 467568 0 0 3 0x14200 reaper reaper 90732 238572 0 0 3 0x14200 pgdaemon pagedaemon 21079 453420 0 0 3 0x14200 bored crynlk 51619 430424 0 0 3 0x14200 bored crypto 2679 234358 0 0 3 0x40014200 acpi0 acpi0 59316 24633 0 0 3 0x40014200 idle1 46391 295588 0 0 3 0x14200 bored softnet 79812 39703 0 0 3 0x14200 bored systqmp 16715 419512 0 0 3 0x14200 bored systq 51907 273940 0 0 2 0x40014200 softclock 3495 456794 0 0 3 0x40014200 idle0 54331 227737 0 0 3 0x14200 bored smr 1 33206 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &iopl->mtx r = 0 (0xffff800000030170) #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 scsi_iopool_run+0x7d scsi_ioh_pending sys/scsi/scsi_base.c:405 [inline] #3 scsi_iopool_run+0x7d sys/scsi/scsi_base.c:420 #4 scsi_xsh_runqueue+0x210 sys/scsi/scsi_base.c:596 #5 scsi_xsh_add+0xc9 sys/scsi/scsi_base.c:535 #6 sdstrategy+0x187 sys/scsi/sd.c:585 #7 spec_strategy+0x74 sys/kern/spec_vnops.c:468 #8 VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 #9 bwrite+0x1b9 sys/kern/vfs_bio.c:756 #10 ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113 #11 ufs_mkdir+0x42e sys/ufs/ufs/ufs_vnops.c:1199 #12 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #13 domkdirat+0x121 sys/kern/vfs_syscalls.c:2974 #14 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #14 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #15 Xsyscall+0x128 Process 13895 (syz-executor.0) thread 0xffff800020acf650 (434846) exclusive rwlock netlock r = 0 (0xffffffff82499b18) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 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 16582 (syz-executor.1) thread 0xffff800020ace508 (331903) exclusive rrwlock inode r = 0 (0xfffffd80642ea2c0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2974 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806acd85e8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2959 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82648518) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9503 6418K 6799K 78643K 10800 0 pcb 15 8K 8K 78643K 50 0 rtable 108 4K 4K 78643K 239 0 ifaddr 67 14K 14K 78643K 89 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 1469 0 iov 0 0K 16K 78643K 23 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 1294 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 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 22 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 121 0 proc 60 63K 95K 78643K 460 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 90 0 in_multi 53 3K 3K 78643K 53 0 ether_multi 1 0K 0K 78643K 1 0 mrt 0 0K 0K 78643K 2 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 214 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 111 22K 22K 78643K 1338 0 UVM aobj 5 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 2 0K 0K 78643K 33 0 NDP 10 0K 0K 78643K 18 0 temp 95 3026K 3090K 78643K 3757 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 65 0 55 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 sackhl 24 1 0 1 1 0 1 1 0 8 1 tcpqe 32 144 0 144 1 0 1 1 0 8 1 tcpcb 544 135 0 130 2 0 2 2 0 8 1 inpcb 280 320 0 311 2 0 2 2 0 8 1 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 4 0 4 1 0 1 1 0 8 1 pffrag 232 2 0 2 1 0 1 1 0 482 1 pffrnode 88 2 0 2 1 0 1 1 0 8 1 pffrent 40 90 0 90 1 0 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 24 0 0 1 0 1 1 0 8 0 pfstkey 112 24 0 0 1 0 1 1 0 8 0 pfstate 328 24 0 0 2 0 2 2 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 213 0 0 14 0 14 14 0 8 0 art_table 32 214 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 4 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1574 0 169 46 0 46 46 0 8 0 ffsino 272 1574 0 169 95 0 95 95 0 8 0 nchpl 144 1967 0 350 61 0 61 61 0 8 0 uvmvnodes 72 1667 0 0 31 0 31 31 0 8 0 vnodes 208 1667 0 0 88 0 88 88 0 8 0 namei 1024 5360 0 5360 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 5480 0 5480 7 1 6 6 0 8 6 plimitpl 152 25 0 17 1 0 1 1 0 8 0 sigapl 432 320 0 305 3 0 3 3 0 8 1 futexpl 56 2480 0 2480 1 0 1 1 0 8 1 knotepl 112 54 0 35 1 0 1 1 0 8 0 kqueuepl 104 11 0 9 1 0 1 1 0 8 0 pipepl 160 218 0 199 2 0 2 2 0 8 1 fdescpl 488 321 0 305 3 0 3 3 0 8 0 filepl 152 2098 0 1996 5 0 5 5 0 8 1 lockfpl 104 26 0 25 1 0 1 1 0 8 0 lockfspl 48 10 0 9 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 155 0 146 1 0 1 1 0 8 0 zombiepl 144 305 0 305 1 0 1 1 0 8 1 processpl 904 337 0 305 4 0 4 4 0 8 0 procpl 632 567 0 524 5 0 5 5 0 8 1 sosppl 128 13 0 13 1 0 1 1 0 8 1 sockpl 384 419 0 398 4 0 4 4 0 8 1 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 188 0 0 23 0 23 23 0 8 0 mtagpl 80 6 0 0 1 0 1 1 0 8 0 mbufpl 256 254 0 0 15 0 15 15 0 8 0 bufpl 280 8482 0 1412 506 0 506 506 0 8 0 anonpl 16 52315 0 32974 93 1 92 92 0 125 14 amapchunkpl 152 1725 0 1576 8 0 8 8 0 158 1 amappl16 192 1774 0 712 65 4 61 64 0 8 7 amappl15 184 62 0 56 1 0 1 1 0 8 0 amappl14 176 28 0 26 1 0 1 1 0 8 0 amappl13 168 88 0 85 1 0 1 1 0 8 0 amappl12 160 11 0 9 2 1 1 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 12 0 9 1 0 1 1 0 8 0 amappl9 136 611 0 606 1 0 1 1 0 8 0 amappl8 128 128 0 101 1 0 1 1 0 8 0 amappl7 120 103 0 92 1 0 1 1 0 8 0 amappl6 112 59 0 51 1 0 1 1 0 8 0 amappl5 104 130 0 116 1 0 1 1 0 8 0 amappl4 96 618 0 588 1 0 1 1 0 8 0 amappl3 88 114 0 107 1 0 1 1 0 8 0 amappl2 80 1719 0 1641 3 1 2 3 0 8 0 amappl1 72 17106 0 16647 26 14 12 21 0 8 2 amappl 80 815 0 771 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 5 0 1 1 0 1 1 0 8 0 uaddrrnd 24 321 0 305 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 321 0 305 1 0 1 1 0 8 0 vmmpekpl 168 6587 0 6556 2 0 2 2 0 8 0 vmmpepl 168 47570 0 45317 137 6 131 131 0 357 29 vmsppl 368 320 0 305 2 0 2 2 0 8 0 pdppl 4096 649 0 610 6 0 6 6 0 8 0 pvpl 32 163659 0 141155 214 0 214 214 0 265 30 pmappl 232 320 0 305 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 174 0 3 5 0 5 5 0 8 0