From owner-freebsd-bugs@FreeBSD.ORG Sun Jan 4 11:00:16 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0176106566B for ; Sun, 4 Jan 2009 11:00:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8EE888FC17 for ; Sun, 4 Jan 2009 11:00:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n04B0GPI075850 for ; Sun, 4 Jan 2009 11:00:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n04B0Gjr075849; Sun, 4 Jan 2009 11:00:16 GMT (envelope-from gnats) Date: Sun, 4 Jan 2009 11:00:16 GMT Message-Id: <200901041100.n04B0Gjr075849@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jaakko Heinonen Cc: Subject: Re: kern/119529: [ext2fs] Freezes when compiling code on mounter ext2fs partitions X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jaakko Heinonen List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2009 11:00:17 -0000 The following reply was made to PR kern/119529; it has been noted by GNATS. From: Jaakko Heinonen To: archwndas@yahoo.com Cc: bug-followup@FreeBSD.org Subject: Re: kern/119529: [ext2fs] Freezes when compiling code on mounter ext2fs partitions Date: Sun, 4 Jan 2009 12:55:12 +0200 Please see the following message and the patch below. http://lists.freebsd.org/pipermail/freebsd-fs/2009-January/005546.html --- patch begins here --- Index: sys/gnu/fs/ext2fs/ext2_bitops.h =================================================================== --- sys/gnu/fs/ext2fs/ext2_bitops.h (revision 186639) +++ sys/gnu/fs/ext2fs/ext2_bitops.h (working copy) @@ -84,7 +84,7 @@ find_next_zero_bit(void *data, size_t sz mask = ~0U << (ofs & 31); bit = *p | ~mask; if (bit != ~0U) - return (ffs(~bit) + ofs - 1); + return (ffs(~bit) + (ofs & ~31U) - 1); p++; ofs = (ofs + 31U) & ~31U; } --- patch ends here --- Does the patch fix the problem for you? -- Jaakko