From nobody@FreeBSD.org  Mon Jan 26 19:54:09 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 438471065673
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Jan 2009 19:54:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 2E60D8FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Jan 2009 19:54:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n0QJs8sG082880
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Jan 2009 19:54:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n0QJs85s082870;
	Mon, 26 Jan 2009 19:54:08 GMT
	(envelope-from nobody)
Message-Id: <200901261954.n0QJs85s082870@www.freebsd.org>
Date: Mon, 26 Jan 2009 19:54:08 GMT
From: Tommy Bongaerts <tommy.bongaerts@drumscum.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Writing to ext3 partition causes endless loop
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131024
>Category:       kern
>Synopsis:       [ext3fs] Writing to ext3 partition causes endless loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 26 20:00:11 UTC 2009
>Closed-Date:    Tue Jan 27 09:52:37 UTC 2009
>Last-Modified:  Tue Jan 27 09:52:37 UTC 2009
>Originator:     Tommy Bongaerts
>Release:        7.1-RELEASE
>Organization:
Not applicable
>Environment:
FreeBSD mordor.drumscum.be 7.1-RELEASE FreeBSD 7.1-RELEASE #5: Mon Jan 26 13:24:59 CET 2009     root@mordor.drumscum.be:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
On writing (e.g. cp or mv) to an ext3 partition, eventually the system seems to lock up; no input is accepted anymore from the mouse and keyboard. The system must be reset at this point.

When executing the write operation from ttyp0 the following text will be printed continuously to the console when the issue occurs:

ext2_new_block: bit already set for [number]

It appears that copying to an ext3 partition causes an endless loop, effectively locking up the box.

This issue has been already discussed on the freebsd-fs mailing list, unfortunately without a solution:

http://kerneltrap.org/mailarchive/freebsd-fs/2008/1/19/583772

This thread suggests this is an amd64-only issue.
>How-To-Repeat:
Mount an ext3 filesystem.
Copy or move a bunch of data to it.
>Fix:
Unknown

>Release-Note:
>Audit-Trail:

From: Tommy Bongaerts <tommy.bongaerts@drumscum.be>
To: bug-followup@FreeBSD.org, tommy.bongaerts@drumscum.be
Cc:  
Subject: Re: kern/131024: Writing to ext3 partition causes endless loop
Date: Mon, 26 Jan 2009 21:50:15 +0100

 Hmm, it appears someone already wrote a patch for this:
 
 http://markmail.org/message/6j2a4vnd2t5dawip
 
 I will try out this patch as soon as possible and come back with the
 results.
 
 -- 
 Look, the thing about my family is there's five of us.
 Marge, Bart, Girl Bart, the one who doesn't talk, and
 the fat guy. How I loathe him.
 	~ Homer J. Simpson

From: Tommy Bongaerts <tommy.bongaerts@drumscum.be>
To: bug-followup@FreeBSD.org, tommy.bongaerts@drumscum.be
Cc:  
Subject: Re: kern/131024: Writing to ext3 partition causes endless loop
Date: Mon, 26 Jan 2009 22:33:19 +0100

 Patch seems to be working just fine after some quick tests. Anyone
 who's interested can download it from
 
 http://www.drumscum.be/bsd/ext2bitops.diff
 
 Credits to Jaakko Heinonen.
 
 -- 
 Every now and then you simply have to knock over the anthill,
 and redesign.
 	~ Tuomo Valkonen
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Jan 27 02:52:59 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131024 
State-Changed-From-To: open->closed 
State-Changed-By: kib 
State-Changed-When: Tue Jan 27 09:52:14 UTC 2009 
State-Changed-Why:  
Patch is already committed to HEAD and RELENG_7. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131024 
>Unformatted:
