kern/119529: [ext2fs] Freezes when compiling code on mounter
ext2fs partitions
Jaakko Heinonen
jh at saunalahti.fi
Sun Jan 4 03:00:17 PST 2009
The following reply was made to PR kern/119529; it has been noted by GNATS.
From: Jaakko Heinonen <jh at saunalahti.fi>
To: archwndas at yahoo.com
Cc: bug-followup at 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
More information about the freebsd-bugs
mailing list