Re: [PANIC] ufs_dirbad: bad dir

From: Kris Kennaway <kris_at_obsecurity.org>
Date: Fri, 29 Apr 2005 11:38:21 -0700
On Fri, Apr 29, 2005 at 09:02:22AM -0700, David O'Brien wrote:
> FreeBSD 6.0-CURRENT FreeBSD 6.0-CURRENT #486: Mon Apr 25 09:41:31 PDT 2005 
> 
> [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-marcel-freebsd".
> #0  doadump () at pcpu.h:165
> 165		__asm __volatile("movl %%fs:0,%0" : "=r" (td));
> (kgdb) where
> #0  doadump () at pcpu.h:165
> #1  0xc04dd3b2 in boot (howto=260) at ../../../kern/kern_shutdown.c:397
> #2  0xc04dd763 in panic (fmt=0xc067b7f4 "ufs_dirbad: bad dir")
>     at ../../../kern/kern_shutdown.c:553
> #3  0xc05d913d in ufs_dirbad (ip=0x0, offset=0, how=0x0)
>     at ../../../ufs/ufs/ufs_lookup.c:598

This one is believed to be a long-standing bug in ufs to do with use
of data when it is not protected by an exclusive lock.

Kris


Received on Fri Apr 29 2005 - 16:38:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:33 UTC