Subject: Re: Don't use UFS_DIRHASH
To: David Malone <dwmalone@maths.tcd.ie>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: tech-kern
Date: 08/19/2006 19:44:56
--7AUc2qLy4jB3hD7Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sat, Jul 15, 2006 at 10:36:09AM +0100, David Malone wrote:
> On Wed, Jul 12, 2006 at 12:31:22PM -0400, Thor Lancelot Simon wrote:
> > Removing UFS_DIRHASH from our kernel configuration made the problem go
> > away.  Though it is possible that there is an underlying problem of some
> > kind in one of the allocators that is simply particularly badly exposed
> > by UFS_DIRHASH, it seems more likely that there is a problem (which we
> > haven't found yet) in UFS_DIRHASH itself.  The code has a history of
> > similar problems on FreeBSD which seem to have ended only when the entire
> > kernel synchronization scheme in FreeBSD was reworked in FreeBSD 5.
> 
> FWIW, in FreeBSD I think we've tracked down all outstanding memory
> corruption bugs in which DIRHASH was implicated and they all turned
> out to be problems in other subsystems that used memory allocations
> of the same size. It works fine both in FreeBSD 4, where we have
> spl style synchronisation and in 5+, where the synchronisation is
> mutex based. It is quite possible that we've missed something, but
> we're not seeing any evidence of it in FreeBSD right now.
> 
> The most recent one that we've plugged was one related to IPv6 neighbour
> discovery:
> 
> 	http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet6/nd6.c#rev1.63

Has anyone looked at this in NetBSD? or is it from a different code base?

Cheers,
Reinoud


--7AUc2qLy4jB3hD7Z
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (NetBSD)

iQEVAwUBROdOEYKcNwBDyKpoAQLZMggAjmT9SKr4F/JuqkUE87Cmninuibh3F6Qs
rgVzl8DWzWmIl0+9Lj+/qSRUvDvX9GM7dItBf+SD3+i5UkrxMBs7v2TbEganVSBf
cpyC618aL27nW5j+uyb/VTI+FVADuUjS/L4zLKlW3iwf7nWQw1BXfZMBlDfa1xM9
5+9jyxg+K2OBctmY0tCQNcA60pyUpYMV5UHL7Zije49kKT71p/4tmsSi5oyncF1w
BwxbdmqZjuinF+59uHrGXXb7F3yOu/a37f//HbL3fhV3OoB6ULG33xn+ZzDfeeQz
YDYhfqQH7oUigmo2qV7YmZ3JTYp6M7PGibPayjwgXN4NgplPwOSvpA==
=sQHb
-----END PGP SIGNATURE-----

--7AUc2qLy4jB3hD7Z--