Date: Sun, 17 Aug 2025 16:52:49 -0700 From: Bakul Shah <bakul@iitbombay.org> To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@freebsd.org> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: vfs: Assert that st_rdev is NODEV for non-devices Message-ID: <F5BBC224-71A6-4EF1-961F-A28F5FBFE036@iitbombay.org> In-Reply-To: <86o6sdczbw.fsf@ltc.des.dev> References: <EF5FE8FC-26B3-4AA2-BB37-1A634A6EAD97@iitbombay.org> <86o6sdczbw.fsf@ltc.des.dev>
index | next in thread | previous in thread | raw e-mail
On Aug 17, 2025, at 4:17 PM, Dag-Erling Smørgrav <des@freebsd.org> wrote: > > Bakul Shah <bakul@iitbombay.org> writes: >> etcupdate panics since this commit: >> [...] >> #13 0xffffffff80c97cb5 in kern_statat (td=0xfffff8007e7fc000, >> flag=<optimized out>, fd=<optimized out>, path=0x19e4d3242358 "/usr/src", >> pathseg=UIO_USERSPACE, sbp=0xfffffe0054050d18) >> at /home/FreeBSD/current/sys/kern/vfs_syscalls.c:2574 > > Which filesystem is /usr/src on? If by any chance you are using openzfs > from ports, please either switch back to base or try the attached patch. No, this is just stock GENERIC + option GDB. This is because /usr/src is NFS mounted from a 14-stable system (the host). On a freshly booted system: $ ls /usr/src panic: st_rdev should be NODEV unless the file is a device node cpuid = 0 time = 1755474701 KDB: stack backtrace: #0 0xffffffff80bcfa2d at kdb_backtrace+0x5d #1 0xffffffff80b7ff66 at vpanic+0x136 #2 0xffffffff80b7fe23 at panic+0x43 #3 0xffffffff80c97cb5 at kern_statat+0x255 #4 0xffffffff80c982c7 at sys_fstatat+0x27 #5 0xffffffff810d08b9 at amd64_syscall+0x169 #6 0xffffffff810a21fb at fast_syscall_common+0xf8 KDB: enter: panichome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F5BBC224-71A6-4EF1-961F-A28F5FBFE036>
