Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2014 01:56:05 +0100
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Victor Sneider <v.sneider@yahoo.com>
Cc:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>
Subject:   Re: Issue with vn_open(), help me please
Message-ID:  <20140328005604.GD4730@dft-labs.eu>
In-Reply-To: <1395966793.20688.YahooMailNeo@web122101.mail.ne1.yahoo.com>
References:  <1395966793.20688.YahooMailNeo@web122101.mail.ne1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 27, 2014 at 05:33:13PM -0700, Victor Sneider wrote:
> Hi all,
> 
> I used kern_openat()/fget/fo_read() to open and read a text files inside kernel. 
> 
> When I load it as a kernel module, the module works fine and do its job. 
> 
> When I compiled it into kernel, it crash in kern_openat(), more precisely, in vn_open(). I used call_out() to defer reading the file and wait for the rootfs mount completes. I set the timeout long enough (5 min, for example) but it still crashes. 
> 
> I googled a lot but have not found any report about this issue. I am not an expert about file reading/writing inside kernel but I feel this could be a bug in vn_open(). 
> 

Can you elaborate on the crash? backtrace, crashing instruction, dump
pointer involved in the crash etc.

Are you running kernel with INVARIANTS and WITNESS enabled? Does the module with
these options?
-- 
Mateusz Guzik <mjguzik gmail.com>



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