Date: Mon, 20 May 2013 10:54:27 +0200 From: Peter Holm <peter@holm.cc> To: Konstantin Belousov <kostikbel@gmail.com> Cc: freebsd-fs@freebsd.org, Antoine Brodin <antoine@freebsd.org> Subject: Re: Nullfs - Panic when umounting and lower fs has been removed Message-ID: <20130520085427.GA24287@x2.osted.lan> In-Reply-To: <20130520073426.GY3047@kib.kiev.ua> References: <CAALwa8nrUbErf9hghdFBOD0Y6yGWD5wYPqQ1Ef4qx_pp7E3Z%2BA@mail.gmail.com> <20130520073426.GY3047@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 20, 2013 at 10:34:26AM +0300, Konstantin Belousov wrote: > On Sun, May 19, 2013 at 08:41:03PM +0000, Antoine Brodin wrote: > > Hi there, > > > > I encountered a panic on head today with nullfs using poudriere. > > > > It is quite easy to reproduce, the script is probably doing something > > wrong but panicking is not nice > > > > %%% > > mkdir /tmp/.new_packages /mnt/new_packages > > mount -t nullfs /tmp/.new_packages /mnt/new_packages > > dd if=/dev/zero of=/mnt/new_packages/bar count=20000 > > mv /tmp/.new_packages/bar /tmp/ > > rm -rf /tmp/.new_packages > > umount -f /mnt/new_packages > > %%% > > > > The panic: > > > > userret: returning with the following locks held: > > exclusive lockmgr ufs (ufs) r = 0 (0xfffffe0010a77548) locked @ > > /usr/src/sys/modules/nullfs/../../fs/nullfs/null_vnops.c:615 > > panic: witness_warn > > cpuid = 0 > > KDB: enter: panic > > This is strange, do you have witness enabled, but invariants not ? > > Please try the following change. > > diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c > index ad02236..bece8c8 100644 > --- a/sys/fs/nullfs/null_vfsops.c I can confirm the panic http://people.freebsd.org/~pho/stress/log/kostik567.txt and that the patch fixes that problem. - Peter
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130520085427.GA24287>