Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2016 17:10:16 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Yamagi Burmeister <lists@yamagi.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: LOR between allproc <-> ufs
Message-ID:  <20160527141016.GL38613@kib.kiev.ua>
In-Reply-To: <20160527153705.ee502c0a528cedd29c65b0ca@yamagi.org>
References:  <20160526160902.bbe4c36ad340f11f69f7ba08@yamagi.org> <20160526155844.GH38613@kib.kiev.ua> <20160527153705.ee502c0a528cedd29c65b0ca@yamagi.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 27, 2016 at 03:37:05PM +0200, Yamagi Burmeister wrote:
> On Thu, 26 May 2016 18:58:44 +0300
> Konstantin Belousov <kostikbel@gmail.com> wrote:
> 
> > Completely untested patch is below.  I do not think that this LOR
> > can be reproduced at will.  E.g. you need to record the order
> > in witness by unmounting some filesystem mounted on a directory
> > on UFS mount.  Then, the chances must be that it was the last
> > reference on the vmspace, or that there were deferred vnode entry.
> 
> With this patch the system panics as soon there's some load on the
> filesystem. Maybe only when several processes accessing the same
> mountpoint, but I'm not sure. For example 'make -j24 buildkernel'
> crashes the system nearly instantly.
>     at /usr/src/sys/kern/kern_shutdown.c:777
> #11 0xffffffff809b5aeb in witness_warn (flags=<value optimized out>, lock=<value optimized out>, 
>     fmt=<value optimized out>) at /usr/src/sys/kern/subr_witness.c:1757
> #12 0xffffffff809aa0a8 in userret (td=0xfffff800264c6960, frame=<value optimized out>)
>     at /usr/src/sys/kern/subr_trap.c:157
> #13 0xffffffff80d78151 in amd64_syscall (td=0xfffff800264c6960, traced=<value optimized out>)
>     at subr_syscall.c:185

This is an assert about some lock leak.  Most useful is verbatim
panic message with all surrounding kernel printouts.  I do not even need
the backtrace.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160527141016.GL38613>