Subject: kern/25489: possible stale namecache entries
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 05/07/2004 21:46:20
>Number:         25489
>Category:       kern
>Synopsis:       possible stale namecache entries
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 07 12:47:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 2.0E
>Organization:

>Environment:
	
	
System: NetBSD 2.0E
Architecture: i386
Machine: i386
>Description:
	typical implementations of VOP_LOOKUP() lookup a DOTDOT entry like:
		1. search the entry in the directory.
		2. unlock dvp.
		3. find and lock vp using info from 1.
		4. cache_enter().

	between 2 and 3, the directory structure can be
	changed by another thread.
	in that case, step 4 will enter an already stale entry.
>How-To-Repeat:
	code inspection.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: