Subject: PR/32301 CVS commit: src/sys
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: YAMAMOTO Takashi <yamt@netbsd.org>
List: netbsd-bugs
Date: 12/23/2005 15:35:02
The following reply was made to PR kern/32301; it has been noted by GNATS.

From: YAMAMOTO Takashi <yamt@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32301 CVS commit: src/sys
Date: Fri, 23 Dec 2005 15:31:40 +0000 (UTC)

 Module Name:	src
 Committed By:	yamt
 Date:		Fri Dec 23 15:31:40 UTC 2005
 
 Modified Files:
 	src/sys/kern: vfs_subr.c
 	src/sys/sys: vnode.h
 	src/sys/ufs/ffs: ffs_alloc.c
 	src/sys/ufs/ufs: ufs_inode.c
 
 Log Message:
 prevent in-core vnode being freed from getting new references.
 otherwise, once the corresponding bit in the inode bitmap is cleared,
 an unrelated inode with the same inode number can be allocated and
 ufs_ihashget() picks a stale in-core vnode for it.
 
 PR/32301 by Matthias Scheler.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.256 -r1.257 src/sys/kern/vfs_subr.c
 cvs rdiff -r1.147 -r1.148 src/sys/sys/vnode.h
 cvs rdiff -r1.89 -r1.90 src/sys/ufs/ffs/ffs_alloc.c
 cvs rdiff -r1.55 -r1.56 src/sys/ufs/ufs/ufs_inode.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.