ZFS Page Derefrence
- Reply: Mark Johnston : "Re: ZFS Page Derefrence"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Aug 2023 02:08:35 UTC
Hi Just got the following panic on an and64 machine running poudriere building i386 packages. panic: vm_page_dequeue_deferred: page 0xfffffe000b222808 has unexpected queue state^M cpuid = 1^M time = 1693359541^M KDB: stack backtrace:^M db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00bf55d600^M vpanic() at vpanic+0x132/frame 0xfffffe00bf55d730^M panic() at panic+0x43/frame 0xfffffe00bf55d790^M vm_page_dequeue_deferred() at vm_page_dequeue_deferred+0xb2/frame 0xfffffe00bf55d7a0^M vm_page_free_prep() at vm_page_free_prep+0x11b/frame 0xfffffe00bf55d7c0^M vm_page_free_toq() at vm_page_free_toq+0x12/frame 0xfffffe00bf55d7f0^M vm_object_page_remove() at vm_object_page_remove+0xb6/frame 0xfffffe00bf55d850^M vn_pages_remove_valid() at vn_pages_remove_valid+0x48/frame 0xfffffe00bf55d880^M zfs_rezget() at zfs_rezget+0x35/frame 0xfffffe00bf55da60^M zfs_resume_fs() at zfs_resume_fs+0x1c8/frame 0xfffffe00bf55dab0^M zfs_ioc_rollback() at zfs_ioc_rollback+0x157/frame 0xfffffe00bf55db00^M zfsdev_ioctl_common() at zfsdev_ioctl_common+0x612/frame 0xfffffe00bf55dbc0^M zfsdev_ioctl() at zfsdev_ioctl+0x12a/frame 0xfffffe00bf55dbf0^M devfs_ioctl() at devfs_ioctl+0xd2/frame 0xfffffe00bf55dc40^M vn_ioctl() at vn_ioctl+0xc2/frame 0xfffffe00bf55dcb0^M devfs_ioctl_f() at devfs_ioctl_f+0x1e/frame 0xfffffe00bf55dcd0^M kern_ioctl() at kern_ioctl+0x286/frame 0xfffffe00bf55dd30^M sys_ioctl() at sys_ioctl+0x152/frame 0xfffffe00bf55de00^M amd64_syscall() at amd64_syscall+0x138/frame 0xfffffe00bf55df30^M fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00bf55df30^M --- syscall (54, FreeBSD ELF64, ioctl), rip = 0x191264a4fbca, rsp = 0x19125ca905c8, rbp = 0x19125c a90640 ---^M Uptime: 10h14m15s^M Dumping 2829 out of 7998 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91 %^M Dump complete^M Automatic reboot in 15 seconds - press a key on the console to abort^M Rebooting...^M cpu_reset: Restarting BSP^M cpu_reset_proxy: Stopped CPU 1^M ^M 1 FreeBSD^M 2 FreeBSD^M 3 FreeBSD^M 4 FreeBSD^M 5 Drive 1^M uname reports, FreeBSD bob 15.0-CURRENT FreeBSD 15.0-CURRENT amd64 1500000 #1 komquats-n265075-2e8edbc285cf: Tue Aug 29 03:51:59 PDT 2023 root@cwsys:/export/obj/opt/src/git-src/amd64.amd64/sys/BREAK2 amd64 My BREAK2 kernel removes devices I don't use and enables keystrokes to interrupt the system from the conosle (conserver). Local patches affect ipfilter only. Head of core.txt: __curthread () at /opt/src/git-src/sys/amd64/include/pcpu_aux.h:57 57 __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu , (kgdb) #0 __curthread () at /opt/src/git-src/sys/amd64/include/pcpu_aux.h:5 7 #1 doadump (textdump=textdump@entry=1) at /opt/src/git-src/sys/kern/kern_shutdown.c:405 #2 0xffffffff806c1b30 in kern_reboot (howto=260) at /opt/src/git-src/sys/kern/kern_shutdown.c:526 #3 0xffffffff806c202f in vpanic ( fmt=0xffffffff80b5da55 "%s: page %p has unexpected queue state", ap=ap@entry=0xfffffe00bf55d770) at /opt/src/git-src/sys/kern/kern_shutdown.c:970 #4 0xffffffff806c1dd3 in panic (fmt=<unavailable>) at /opt/src/git-src/sys/kern/kern_shutdown.c:894 #5 0xffffffff809daab2 in vm_page_dequeue_deferred (m=<unavailable>, m@entry=0xfffffe000b222808) at /opt/src/git-src/sys/vm/vm_page.c:3790 #6 0xffffffff809ddfeb in vm_page_free_prep (m=m@entry=0xfffffe000b222808) at /opt/src/git-src/sys/vm/vm_page.c:3928 #7 0xffffffff809d5b52 in vm_page_free_toq (m=<unavailable>, m@entry=0xfffffe000b222808) at /opt/src/git-src/sys/vm/vm_page.c:3970 #8 0xffffffff809d5b3b in vm_page_free (m=<unavailable>, m@entry=0xfffffe000b222808) at /opt/src/git-src/sys/vm/vm_page.c:1328 #9 0xffffffff809d0906 in vm_object_page_remove (object=0xfffff8018bff0e70, start=0, end=0, options=4) at /opt/src/git-src/sys/vm/vm_object.c:2157 #10 0xffffffff807d3218 in vn_pages_remove_valid (vp=<optimized out>, start=start@entry=0, end=end@entry=0) at /opt/src/git-src/sys/kern/vfs_vnops.c:2558 #11 0xffffffff816b7315 in zfs_rezget (zp=zp@entry=0xfffff801768b6ae0) at /opt/src/git-src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode. c:11 00 #12 0xffffffff816a6808 in zfs_resume_fs (zfsvfs=<optimized out>, ds=ds@entry=0xfffff8007b609000) at /opt/src/git-src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops .c:2 006 #13 0xffffffff81867e87 in zfs_ioc_rollback ( fsname=0xfffffe00fbf42000 "bob/poudriere/bob/jails/HEADi386-new-ports-re f/06 ", fsname@entry=<error reading variable: value is not available>, innvl=<unavailable>, innvl@entry=<error reading variable: value is not available>, outnvl=<unavailable>, outnvl@entry=<error reading variable: value is not available>) at /opt/src/git-src/sys/contrib/openzfs/module/zfs/zfs_ioctl.c:4407 #14 0xffffffff818635c2 in zfsdev_ioctl_common (vecnum=vecnum@entry=25, zc=zc@entry=0xfffffe00fbf42000, flag=flag@entry=0) at /opt/src/git-src/sys/contrib/openzfs/module/zfs/zfs_ioctl.c:7798 #15 0xffffffff81696fca in zfsdev_ioctl (dev=<optimized out>, zcmd=<unavailable>, zcmd@entry=<error reading variable: value is not available>, arg=0xfffffe00bf55dd50 "\017", arg@entry=<error reading variable: value is not available>, flag=<optimized out>, td=<optimized out>) at /opt/src/git-src/sys/contrib/openzfs/module/os/freebsd/zfs/kmod_core. c:16 8 #16 0xffffffff8054b482 in devfs_ioctl (ap=0xfffffe00bf55dc50) at /opt/src/git-src/sys/fs/devfs/devfs_vnops.c:933 #17 0xffffffff807cf032 in vn_ioctl (fp=0xfffff801909f6870, com=<optimized out>, data=0xfffffe00bf55dd50, active_cred=0xfffff800b6ed0b00, td=<unavailable>) at /opt/src/git-src/sys/kern/vfs_vnops.c:1701 #18 0xffffffff8054bb5e in devfs_ioctl_f (fp=<unavailable>, fp@entry=<error reading variable: value is not available>, com=<unavailable>, com@entry=<error reading variable: value is not available>, data=<unavailable>, data@entry=<error reading variable: value is not available>, cred=<unavailable>, cred@entry=<error reading variable: value is not available>, td=<unavailable>, td@entry=<error reading variable: value is not available>) at /opt/src/git-src/sys/fs/devfs/devfs_vnops.c:864 #19 0xffffffff8073aca6 in fo_ioctl (fp=0xfffff801909f6870, com=3222821401, data=<unavailable>, active_cred=<unavailable>, td=0xfffffe00c3e43900) at /opt/src/git-src/sys/sys/file.h:366 #20 kern_ioctl (td=td@entry=0xfffffe00c3e43900, fd=4, com=com@entry=3222821401, data=<unavailable>, data@entry=0xfffffe00bf55dd50 "\017") at /opt/src/git-src/sys/kern/sys_generic.c:805 #21 0xffffffff8073a9b2 in sys_ioctl (td=0xfffffe00c3e43900, uap=0xfffffe00c3e43d00) at /opt/src/git-src/sys/kern/sys_generic.c:713 #22 0xffffffff80a73a88 in syscallenter (td=<optimized out>) at /opt/src/git-src/sys/amd64/amd64/../../kern/subr_syscall.c:187 #23 amd64_syscall (td=0xfffffe00c3e43900, traced=0) at /opt/src/git-src/sys/amd64/amd64/trap.c:1197 #24 <signal handler called> #25 0x0000191264a4fbca in ?? () Backtrace stopped: Cannot access memory at address 0x19125ca905c8 (kgdb) *vp looks good. Dump is available if needed. -- Cheers, Cy Schubert <Cy.Schubert@cschubert.com> FreeBSD UNIX: <cy@FreeBSD.org> Web: https://FreeBSD.org NTP: <cy@nwtime.org> Web: https://nwtime.org e^(i*pi)+1=0