NetBSD Problem Report #45151

From dholland@netbsd.org  Sat Jul 16 07:45:50 2011
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 2E93463BEBD
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 16 Jul 2011 07:45:50 +0000 (UTC)
Message-Id: <20110716074549.DA54014A163@mail.netbsd.org>
Date: Sat, 16 Jul 2011 07:45:49 +0000 (UTC)
From: dholland@netbsd.org
Reply-To: dholland@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: fs corruption in ufs_rmdir
X-Send-Pr-Version: 3.95

>Number:         45151
>Category:       kern
>Synopsis:       fs corruption in ufs_rmdir
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 16 07:50:00 +0000 2011
>Originator:     David A. Holland
>Release:        5.99.55 (20110711)
>Organization:
>Environment:
n/a
>Description:

If the truncate call at the end of ufs_rmdir fails, it generates an
error; however, it drops the unlinked but non-truncated directory on
the floor.

This will probably result in fsck failure later, since the inode won't
be reclaimed and marked free, and the contents found won't match the
link count.

>How-To-Repeat:

code reading.

>Fix:

probably painful.

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.