Re: panic: vm_domainset_iter_first: Unknown policy 15168

From: Mark Johnston <markj_at_freebsd.org>
Date: Mon, 19 Jul 2021 23:55:07 UTC
On Mon, Jul 19, 2021 at 03:02:19PM -0700, Steve Kargl wrote:
> 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

Could you please show output from:

(kgdb) frame 6
(kgdb) p *dr
(kgdb) p obj->domain

?