NetBSD Problem Report #46980

From Wolfgang.Stukenbrock@nagler-company.com  Tue Sep 18 13:45:11 2012
Return-Path: <Wolfgang.Stukenbrock@nagler-company.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 61A5563B907
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 18 Sep 2012 13:45:11 +0000 (UTC)
Message-Id: <20120918134459.30BA51E80A9@test-s0.nagler-company.com>
Date: Tue, 18 Sep 2012 15:44:59 +0200 (CEST)
From: Wolfgang.Stukenbrock@nagler-company.com
Reply-To: Wolfgang.Stukenbrock@nagler-company.com
To: gnats-bugs@gnats.NetBSD.org
Subject: genfs rename code failed to call vrele() on special error
X-Send-Pr-Version: 3.95

>Number:         46980
>Category:       kern
>Synopsis:       genfs rename code failed to call vrele() on special error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 18 13:50:00 +0000 2012
>Originator:     Dr. Wolfgang Stukenbrock
>Release:        NetBSD current
>Organization:
Dr. Nagler & Company GmbH
>Environment:


System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #0: Tue Aug 17 17:28:09 CEST 2010 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
	in genfs_rename_enter_common() if the destination is '.' the allocated
	tvp vnode is not released again.
	EISDIR is returned, but the ' goto fail2' will only release the
	previously allocated fvp vnode.
	This problem only comes up if someone is tryining to rename
	something to '...xx/.', so this is a rare case in real world ...
>How-To-Repeat:
	found by a look into the sources
>Fix:
	add another label in the chain of lables and call vrele(tvp) ...

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.