panic: vm_domainset_iter_first: Unknown policy 15168

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Mon, 19 Jul 2021 22:02:19 UTC
While reading files from a UDF filesystem, I 
received the following panic.  I have the core
file and kernel if anyone is interested.


Unread portion of the kernel message buffer:
panic: vm_domainset_iter_first: Unknown policy 15168
cpuid = 2
time = 1626730195
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe012ae5e1a0
vpanic() at vpanic+0x181/frame 0xfffffe012ae5e1f0
panic() at panic+0x43/frame 0xfffffe012ae5e250
vm_domainset_iter_first() at vm_domainset_iter_first+0xab/frame 0xfffffe012ae5e260
vm_domainset_iter_page_init() at vm_domainset_iter_page_init+0xc2/frame 0xfffffe012ae5e290
vm_page_grab_pages() at vm_page_grab_pages+0x155/frame 0xfffffe012ae5e330
vm_page_grab_pages_unlocked() at vm_page_grab_pages_unlocked+0x1b0/frame 0xfffffe012ae5e390
allocbuf() at allocbuf+0x38b/frame 0xfffffe012ae5e400
getblkx() at getblkx+0x58c/frame 0xfffffe012ae5e4c0
breadn_flags() at breadn_flags+0x42/frame 0xfffffe012ae5e520
udf_vget() at udf_vget+0x1c2/frame 0xfffffe012ae5e5c0
udf_lookup() at udf_lookup+0x442/frame 0xfffffe012ae5e670
vfs_cache_lookup() at vfs_cache_lookup+0xa4/frame 0xfffffe012ae5e6c0
lookup() at lookup+0x65f/frame 0xfffffe012ae5e760
namei() at namei+0x216/frame 0xfffffe012ae5e810
kern_statat() at kern_statat+0xe1/frame 0xfffffe012ae5e940
sys_fstatat() at sys_fstatat+0x2f/frame 0xfffffe012ae5ea40
amd64_syscall() at amd64_syscall+0xe0/frame 0xfffffe012ae5eb70
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe012ae5eb70
--- syscall (552, FreeBSD ELF64, sys_fstatat), rip = 0x2011a12fa, rsp = 0x7fffffffe0c8, rbp = 0x7fffffffe180 ---
Uptime: 19m58s

(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=textdump@entry=1)
    at /usr/src/sys/kern/kern_shutdown.c:399
#2  0xffffffff805fe263 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:486
#3  0xffffffff805fe6b0 in vpanic (fmt=<optimized out>, ap=<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:919
#4  0xffffffff805fe4b3 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:843
#5  0xffffffff8085dcbb in vm_domainset_iter_first (di=<optimized out>, 
    domain=<optimized out>) at /usr/src/sys/vm/vm_domainset.c:189
#6  0xffffffff8085dbd2 in vm_domainset_iter_page_init (
    di=di@entry=0xfffffe012ae5e2a0, obj=obj@entry=0xfffff8003c21f420, 
    pindex=<optimized out>, pindex@entry=16931, 
    domain=domain@entry=0xfffffe012ae5e2f4, req=<unavailable>, 
    req@entry=0xfffffe012ae5e2f0) at /usr/src/sys/vm/vm_domainset.c:217
#7  0xffffffff80879b25 in vm_page_alloc_after (object=0xfffff8003c21f420, 
    pindex=16931, req=118818, mpred=0xfffffe000ce709b0)
    at /usr/src/sys/vm/vm_page.c:2008
#8  vm_page_grab_pages (object=object@entry=0xfffff8003c21f420, 
    pindex=pindex@entry=16931, allocflags=<optimized out>, 
    ma=0xfffffe001c1c9a90, count=1) at /usr/src/sys/vm/vm_page.c:4800
#9  0xffffffff80879f90 in vm_page_grab_pages_unlocked (
    object=<optimized out>, pindex=16931, allocflags=allocflags@entry=4642, 
    ma=0xfffffe001c1c9a90, ma@entry=<unavailable>, count=<unavailable>)
    at /usr/src/sys/vm/vm_page.c:4862
#10 0xffffffff806a2eab in vfs_vmio_extend (bp=0xfffffe001c1c9960, 
    desiredpages=0, size=<optimized out>) at /usr/src/sys/kern/vfs_bio.c:3095
#11 allocbuf (bp=bp@entry=0xfffffe001c1c9960, size=size@entry=2048)
    at /usr/src/sys/kern/vfs_bio.c:4337
#12 0xffffffff806a137c in getblkx (vp=<optimized out>, 
    vp@entry=0xfffff801e23d3380, blkno=<optimized out>, 
    dblkno=<optimized out>, size=2048, slpflag=<optimized out>, 
    slpflag@entry=0, slptimeo=slptimeo@entry=0, flags=<optimized out>, 
    bpp=0xfffffe012ae5e4e8) at /usr/src/sys/kern/vfs_bio.c:4172
#13 0xffffffff806a0c72 in breadn_flags (vp=<optimized out>, 
    blkno=<unavailable>, dblkno=<unavailable>, size=<unavailable>, 
    rablkno=<optimized out>, rablkno@entry=0x0, rabsize=<optimized out>, 
    rabsize@entry=0x0, cnt=0, cred=0x0, flags=0, ckhashfunc=0x0, 
    bpp=0xfffffe012ae5e580) at /usr/src/sys/kern/vfs_bio.c:2176
#14 0xffffffff8056ecc2 in udf_vget (mp=<optimized out>, ino=ino@entry=33574, 
    flags=<optimized out>, flags@entry=2105344, 
    vpp=vpp@entry=0xfffffe012ae5e630) at /usr/src/sys/fs/udf/udf_vfsops.c:646
#15 0xffffffff805707f2 in udf_lookup (a=<optimized out>, 
    a@entry=<error reading variable: value is not available>)
    at /usr/src/sys/fs/udf/udf_vnops.c:1227
#16 0xffffffff806aa3a4 in VOP_CACHEDLOOKUP (dvp=0xfffff80216c1ee00, 
    vpp=0xfffffe012ae5e878, cnp=0xfffffe012ae5e8a0) at ./vnode_if.h:99
#17 vfs_cache_lookup (ap=<unavailable>, 
    ap@entry=<error reading variable: value is not available>)
    at /usr/src/sys/kern/vfs_cache.c:3041
#18 0xffffffff806b62ff in VOP_LOOKUP (dvp=0xfffff80216c1ee00, 
    vpp=0xfffffe012ae5e878, cnp=0xfffffe012ae5e8a0) at ./vnode_if.h:65
#19 lookup (ndp=ndp@entry=0xfffffe012ae5e820)
    at /usr/src/sys/kern/vfs_lookup.c:1116
#20 0xffffffff806b54a6 in namei (ndp=ndp@entry=0xfffffe012ae5e820)
    at /usr/src/sys/kern/vfs_lookup.c:661
#21 0xffffffff806d0dc1 in kern_statat (td=0xfffffe00db1f9300, 
    flag=<optimized out>, fd=<unavailable>, path=<unavailable>, 
    pathseg=<unavailable>, pathseg@entry=UIO_USERSPACE, 
    sbp=sbp@entry=0xfffffe012ae5e958, hook=0x0)
    at /usr/src/sys/kern/vfs_syscalls.c:2423
#22 0xffffffff806d1a6f in sys_fstatat (td=<unavailable>, 
    uap=0xfffffe00db1f96e8) at /usr/src/sys/kern/vfs_syscalls.c:2400
#23 0xffffffff808e2240 in syscallenter (td=0xfffffe00db1f9300)
    at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189
#24 amd64_syscall (td=0xfffffe00db1f9300, traced=0)
    at /usr/src/sys/amd64/amd64/trap.c:1156
#25 <signal handler called>
#26 0x00000002011a12fa in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffffe0c8
(kgdb) 

-- 
Steve