[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-fs
Subject:    Kernel panic during zfsctl_snapdir_lookup
From:       Ben Short <ben () benshort ! co ! uk>
Date:       2022-07-26 11:56:02
Message-ID: 37cb8864-047f-2895-ce87-f55569f8bf04 () benshort ! co ! uk
[Download RAW message or body]

|Hi, I'm getting a kernel panic ||on FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64 
It was reported previously 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252700 for FreeBSD 
13.0 GNU gdb (GDB) 11.2 [GDB v11.2 for FreeBSD] Copyright (C) 2022 Free 
Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html> This is free software: you are free 
to change and redistribute it. There is NO WARRANTY, to the extent 
permitted by law. Type "show copying" and "show warranty" for details. 
This GDB was configured as "x86_64-portbld-freebsd13.1". Type "show 
configuration" for configuration details. For bug reporting 
instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find 
the GDB manual and other documentation resources online at: 
<http://www.gnu.org/software/gdb/documentation/>. For help, type "help". 
Type "apropos word" to search for commands related to "word"... Reading 
symbols from /boot/kernel/kernel... Reading symbols from 
/usr/lib/debug//boot/kernel/kernel.debug... Unread portion of the kernel 
message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 
8; apic id = 08 fault virtual address = 0x0 fault code = supervisor read 
instruction, page not present instruction pointer = 0x20:0x0 stack 
pointer = 0x28:0xfffffe0259f2e588 frame pointer = 
0x28:0xfffffe0259f2e5a0 code segment = base 0x0, limit 0xfffff, type 
0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = 
interrupt enabled, resume, IOPL = 0 current process = 34934 (rover) trap 
number = 12 panic: page fault cpuid = 8 time = 1658507833 KDB: stack 
backtrace: #0 0xffffffff80c69465 at kdb_backtrace+0x65 #1 
0xffffffff80c1bb1f at vpanic+0x17f #2 0xffffffff80c1b993 at panic+0x43 
#3 0xffffffff810afdf5 at trap_fatal+0x385 #4 0xffffffff810afe4f at 
trap_pfault+0x4f #5 0xffffffff81087528 at calltrap+0x8 #6 
0xffffffff80cf8ab6 at vgonel+0x186 #7 0xffffffff80cf9171 at vgone+0x31 
#8 0xffffffff80ce799d at vfs_hash_insert+0x26d #9 0xffffffff82180069 at 
sfs_vgetx+0x149 #10 0xffffffff82180c54 at zfsctl_snapdir_lookup+0x1e4 
#11 0xffffffff80ce9bbc at lookup+0x45c #12 0xffffffff80ce8de9 at 
namei+0x259 #13 0xffffffff80d06953 at kern_statat+0xf3 #14 
0xffffffff80d0704f at sys_fstatat+0x2f #15 0xffffffff810b06ec at 
amd64_syscall+0x10c #16 0xffffffff81087e3b at fast_syscall_common+0xf8 
Uptime: 3h48m1s Dumping 5730 out of 130655 
MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91% __curthread () at 
/usr/src/sys/amd64/include/pcpu_aux.h:55 55 
/usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory. (kgdb) 
bt #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 #1 
doadump (textdump=<optimized out>) at 
/usr/src/sys/kern/kern_shutdown.c:399 #2 0xffffffff80c1b71c in 
kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:487 #3 
0xffffffff80c1bb8e in vpanic (fmt=0xffffffff811b4fb9 "%s", ap=<optimized 
out>) at /usr/src/sys/kern/kern_shutdown.c:920 #4 0xffffffff80c1b993 in 
panic (fmt=<unavailable>) at /usr/src/sys/kern/kern_shutdown.c:844 #5 
0xffffffff810afdf5 in trap_fatal (frame=0xfffffe0259f2e4c0, eva=0) at 
/usr/src/sys/amd64/amd64/trap.c:944 #6 0xffffffff810afe4f in trap_pfault 
(frame=0xfffffe0259f2e4c0, usermode=false, signo=<optimized out>, 
ucode=<optimized out>) at /usr/src/sys/amd64/amd64/trap.c:763 #7 <signal 
handler called> #8 0x0000000000000000 in ?? () #9 0xffffffff8117c26c in 
VOP_CLOSE_APV (vop=0xffffffff8244da70 <zfsctl_ops_snapshot>, 
a=a@entry=0xfffffe0259f2e5b0) at vnode_if.c:498 #10 0xffffffff80cf8ab6 
in VOP_CLOSE (vp=0xfffff81e88fdc988, fflag=4, cred=0x0, 
td=0xfffffe02054e8e40) at ./vnode_if.h:249 #11 vgonel 
(vp=vp@entry=0xfffff81e88fdc988) at /usr/src/sys/kern/vfs_subr.c:4088 
#12 0xffffffff80cf9171 in vgone (vp=vp@entry=0xfffff81e88fdc988) at 
/usr/src/sys/kern/vfs_subr.c:3963 #13 0xffffffff80ce799d in 
vfs_hash_insert (vp=0xfffff81e88fdc988, hash=136416, 
hash@entry=1509092400, flags=flags@entry=2097152, td=<optimized out>, 
td@entry=0xfffffe02054e8e40, vpp=vpp@entry=0xfffffe0259f2ec30, 
fn=<optimized out>, arg=0xfffff815afc90300) at 
/usr/src/sys/kern/vfs_hash.c:181 #14 0xffffffff82180069 in 
sfs_vnode_insert (vp=0xfffffe0259f2e5b0, flags=2097152, 
vpp=0xfffffe0259f2ec30, parent_id=<optimized out>, id=<optimized out>) 
at /usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c:152 
#15 sfs_vgetx (mp=0xfffffe02494c8ac0, flags=flags@entry=2097152, 
parent_id=parent_id@entry=2, id=<optimized out>, tag=<optimized out>, 
vops=0xffffffff8244da70 <zfsctl_ops_snapshot>, setup=0xffffffff82181360 
<zfsctl_snapshot_vnode_setup>, arg=0xfffffe0259f2e820, 
vpp=0xfffffe0259f2ec30) at 
/usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c:200 #16 
0xffffffff82180c54 in zfsctl_snapdir_lookup (ap=<optimized out>) at 
/usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c:954 #17 
0xffffffff80ce9bbc in VOP_LOOKUP (dvp=0xfffff80be30a4988, 
vpp=0xfffffe0259f2ec30, cnp=0xfffffe0259f2ec58) at ./vnode_if.h:65 #18 
lookup (ndp=ndp@entry=0xfffffe0259f2ebd8) at 
/usr/src/sys/kern/vfs_lookup.c:1086 #19 0xffffffff80ce8de9 in namei 
(ndp=ndp@entry=0xfffffe0259f2ebd8) at /usr/src/sys/kern/vfs_lookup.c:616 
#20 0xffffffff80d06953 in kern_statat (td=0xfffffe02054e8e40, 
flag=<optimized out>, fd=-100, path=0x0, pathseg=(unknown: 0x54e9350), 
pathseg@entry=UIO_USERSPACE, sbp=sbp@entry=0xfffffe0259f2ed18, hook=0x0) 
at /usr/src/sys/kern/vfs_syscalls.c:2441 #21 0xffffffff80d0704f in 
sys_fstatat (td=0xfffffe0259f2e5b0, uap=0xfffffe02054e9228) at 
/usr/src/sys/kern/vfs_syscalls.c:2418 #22 0xffffffff810b06ec in 
syscallenter (td=0xfffffe02054e8e40) at 
/usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189 #23 amd64_syscall 
(td=0xfffffe02054e8e40, traced=0) at 
/usr/src/sys/amd64/amd64/trap.c:1185 #24 <signal handler called> #25 
0x000000080134139a in ?? () Backtrace stopped: Cannot access memory at 
address 0x7fffffffde18 (kgdb)|

[Attachment #3 (text/html)]

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <pre class="bbCodeCode" dir="ltr" data-xf-init="code-block" \
data-lang=""><code>Hi,

I'm getting a kernel panic </code><code>on FreeBSD 13.1-RELEASE \
releng/13.1-n250148-fc952ac2212 GENERIC amd64

It was reported previously <a class="moz-txt-link-freetext" \
href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252700">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252700</a> \
for FreeBSD 13.0


GNU gdb (GDB) 11.2 [GDB v11.2 for FreeBSD]
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <a class="moz-txt-link-rfc2396E" \
href="http://gnu.org/licenses/gpl.html">&lt;http://gnu.org/licenses/gpl.html&gt;</a> \
This is free software: you are free to change and redistribute it. There is NO \
WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for \
details. This GDB was configured as "x86_64-portbld-freebsd13.1".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<a class="moz-txt-link-rfc2396E" \
href="https://www.gnu.org/software/gdb/bugs/">&lt;https://www.gnu.org/software/gdb/bugs/&gt;</a>.
 Find the GDB manual and other documentation resources online at:
    <a class="moz-txt-link-rfc2396E" \
href="http://www.gnu.org/software/gdb/documentation/">&lt;http://www.gnu.org/software/gdb/documentation/&gt;</a>.


For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 8; apic id = 08
fault virtual address   = 0x0
fault code              = supervisor read instruction, page not present
instruction pointer     = 0x20:0x0
stack pointer           = 0x28:0xfffffe0259f2e588
frame pointer           = 0x28:0xfffffe0259f2e5a0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 34934 (rover)
trap number             = 12
panic: page fault
cpuid = 8
time = 1658507833
KDB: stack backtrace:
#0 0xffffffff80c69465 at kdb_backtrace+0x65
#1 0xffffffff80c1bb1f at vpanic+0x17f
#2 0xffffffff80c1b993 at panic+0x43
#3 0xffffffff810afdf5 at trap_fatal+0x385
#4 0xffffffff810afe4f at trap_pfault+0x4f
#5 0xffffffff81087528 at calltrap+0x8
#6 0xffffffff80cf8ab6 at vgonel+0x186
#7 0xffffffff80cf9171 at vgone+0x31
#8 0xffffffff80ce799d at vfs_hash_insert+0x26d
#9 0xffffffff82180069 at sfs_vgetx+0x149
#10 0xffffffff82180c54 at zfsctl_snapdir_lookup+0x1e4
#11 0xffffffff80ce9bbc at lookup+0x45c
#12 0xffffffff80ce8de9 at namei+0x259
#13 0xffffffff80d06953 at kern_statat+0xf3
#14 0xffffffff80d0704f at sys_fstatat+0x2f
#15 0xffffffff810b06ec at amd64_syscall+0x10c
#16 0xffffffff81087e3b at fast_syscall_common+0xf8
Uptime: 3h48m1s
Dumping 5730 out of 130655 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55      /usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory.
(kgdb) bt
#0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1 doadump (textdump=&lt;optimized out&gt;) at /usr/src/sys/kern/kern_shutdown.c:399
#2 0xffffffff80c1b71c in kern_reboot (howto=260) at \
/usr/src/sys/kern/kern_shutdown.c:487 #3 0xffffffff80c1bb8e in vpanic \
(fmt=0xffffffff811b4fb9 "%s", ap=&lt;optimized out&gt;) at \
/usr/src/sys/kern/kern_shutdown.c:920 #4 0xffffffff80c1b993 in panic \
(fmt=&lt;unavailable&gt;) at /usr/src/sys/kern/kern_shutdown.c:844 #5 \
0xffffffff810afdf5 in trap_fatal (frame=0xfffffe0259f2e4c0, eva=0) at \
/usr/src/sys/amd64/amd64/trap.c:944 #6 0xffffffff810afe4f in trap_pfault \
(frame=0xfffffe0259f2e4c0, usermode=false, signo=&lt;optimized out&gt;, \
ucode=&lt;optimized out&gt;) at /usr/src/sys/amd64/amd64/trap.c:763 #7 &lt;signal \
handler called&gt; #8 0x0000000000000000 in ?? ()
#9 0xffffffff8117c26c in VOP_CLOSE_APV (vop=0xffffffff8244da70 \
&lt;zfsctl_ops_snapshot&gt;, a=a@entry=0xfffffe0259f2e5b0) at vnode_if.c:498 #10 \
0xffffffff80cf8ab6 in VOP_CLOSE (vp=0xfffff81e88fdc988, fflag=4, cred=0x0, \
td=0xfffffe02054e8e40) at ./vnode_if.h:249 #11 vgonel \
(vp=vp@entry=0xfffff81e88fdc988) at /usr/src/sys/kern/vfs_subr.c:4088 #12 \
0xffffffff80cf9171 in vgone (vp=vp@entry=0xfffff81e88fdc988) at \
/usr/src/sys/kern/vfs_subr.c:3963 #13 0xffffffff80ce799d in vfs_hash_insert \
(vp=0xfffff81e88fdc988, hash=136416, hash@entry=1509092400, \
flags=flags@entry=2097152, td=&lt;optimized out&gt;, td@entry=0xfffffe02054e8e40, \
vpp=vpp@entry=0xfffffe0259f2ec30, fn=&lt;optimized out&gt;, arg=0xfffff815afc90300) \
at /usr/src/sys/kern/vfs_hash.c:181 #14 0xffffffff82180069 in sfs_vnode_insert \
(vp=0xfffffe0259f2e5b0, flags=2097152, vpp=0xfffffe0259f2ec30, \
parent_id=&lt;optimized out&gt;, id=&lt;optimized out&gt;) at \
/usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c:152 #15 sfs_vgetx \
(mp=0xfffffe02494c8ac0, flags=flags@entry=2097152, parent_id=parent_id@entry=2, \
id=&lt;optimized out&gt;, tag=&lt;optimized out&gt;, vops=0xffffffff8244da70 \
&lt;zfsctl_ops_snapshot&gt;, setup=0xffffffff82181360 \
&lt;zfsctl_snapshot_vnode_setup&gt;, arg=0xfffffe0259f2e820, vpp=0xfffffe0259f2ec30) \
at /usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c:200 #16 \
0xffffffff82180c54 in zfsctl_snapdir_lookup (ap=&lt;optimized out&gt;) at \
/usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c:954 #17 \
0xffffffff80ce9bbc in VOP_LOOKUP (dvp=0xfffff80be30a4988, vpp=0xfffffe0259f2ec30, \
cnp=0xfffffe0259f2ec58) at ./vnode_if.h:65 #18 lookup \
(ndp=ndp@entry=0xfffffe0259f2ebd8) at /usr/src/sys/kern/vfs_lookup.c:1086 #19 \
0xffffffff80ce8de9 in namei (ndp=ndp@entry=0xfffffe0259f2ebd8) at \
/usr/src/sys/kern/vfs_lookup.c:616 #20 0xffffffff80d06953 in kern_statat \
(td=0xfffffe02054e8e40, flag=&lt;optimized out&gt;, fd=-100, path=0x0, \
pathseg=(unknown: 0x54e9350), pathseg@entry=UIO_USERSPACE, \
sbp=sbp@entry=0xfffffe0259f2ed18, hook=0x0) at /usr/src/sys/kern/vfs_syscalls.c:2441 \
#21 0xffffffff80d0704f in sys_fstatat (td=0xfffffe0259f2e5b0, uap=0xfffffe02054e9228) \
at /usr/src/sys/kern/vfs_syscalls.c:2418 #22 0xffffffff810b06ec in syscallenter \
(td=0xfffffe02054e8e40) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189 #23 \
amd64_syscall (td=0xfffffe02054e8e40, traced=0) at \
/usr/src/sys/amd64/amd64/trap.c:1185 #24 &lt;signal handler called&gt;
#25 0x000000080134139a in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffffde18
(kgdb)</code></pre>
  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic