Thread (5 messages) 5 messages, 3 authors, 2002-05-30

Re: kernel panic in inode_lookup

From: Marcos Dione <hidden>
Date: 2002-05-30 18:19:56

On Thu, May 30, 2002 at 02:00:21PM -0400, Jan Harkes wrote:
On Thu, May 30, 2002 at 01:45:22PM -0300, Marcos Dione wrote:
quoted
  return dentry;
  /* ext2 does something like this */
  return NULL;
}
This could be your problem. real_lookup assumes that if you return
anything it is a new dentry that you found in some magical way and drops
the refcount on the old dentry (which happens to be the one you are
returning). If the refcount drops to zero the dentry is up for grabs
at which point you've lost any sanity in the kernel's data structures.
  zanx for the hint. and don't cc: me, I'm subscribed to the list.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help