Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2010 11:15:17 +0100
From:      Giovanni Trematerra <giovanni.trematerra@gmail.com>
To:        Aioanei Rares <bsdlisten@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: kernel fault when doing some I/O
Message-ID:  <4e6cba831002010215h781e757yf5b329ff305fc2be@mail.gmail.com>
In-Reply-To: <20100131213630.854ff720.bsdlisten@gmail.com>
References:  <20100131213630.854ff720.bsdlisten@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 31, 2010 at 8:36 PM, Aioanei Rares <bsdlisten@gmail.com> wrote:
>
> Hi everyone,
>
> I've been getting this several times but only now I could get a screensho=
t (it's a X-less VirtualBox host)
> The message I'm getting is the following :
>
> lock order reversal :
> =A01st 0xffffff800a4c8698 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c=
:2559
> =A02nd 0xffffff0002b81000 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_di=
rhash.c:285
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
> _witness_debugger() at _witness_debugger+0x2e
> witness_checkorder() at witness_checkorder+0x81e
> _sx_xlock() at _sx_lock+0x55
> ufsdirhash_acquire() at ufsdirhash_acquire+0x33
> ufsdirhash_add() at ufsdirhash_add+0x19
> ufs_direnter() at ufs_direnter+0x889
> ufs_makeinode() at ufs_makeinode+0x38a
> VOP_CREATE_APV() at VOP_CREATE_APV+0x8d
> vn_open_cred() at vn_open_cred+0x473
> kern_openat() at kern_openat+0x179
> syscall() at syscall+0x1ae
> Xfast_syscall() at Xfast_syscall+0xe1
> --- syscall (5, FreeBSD ELF64, open), rip =3D 0x800c1095c, rsp =3D 0x7fff=
ff1f9b38, rbp =3D 0x800e0a900 ---
>

That isn't a kernel fault but a LOR.
you can read more on LOR at http://sources.zabbadoz.net/freebsd/lor.html.
You got it because you compile your kernel with WITNESS option.

Bye

--
Gianni



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