From: Al Viro <viro@ZenIV.linux.org.uk>
To: Lin Ming <minggr@gmail.com>
Cc: David Howells <dhowells@redhat.com>,
linux-fsdevel@vger.kernel.org, Hugh Dickins <hughd@google.com>
Subject: Re: panic in do_last()
Date: Fri, 18 Apr 2014 02:57:50 +0100 [thread overview]
Message-ID: <20140418015750.GG18016@ZenIV.linux.org.uk> (raw)
In-Reply-To: <CAF1ivSYoOvxMg3WjQYH5Jtv3tTY8NUn+QM7SvQWHJ1M1bVCZeg@mail.gmail.com>
On Thu, Apr 17, 2014 at 06:14:51PM -0700, Lin Ming wrote:
> Hi Dave,
>
> I tried to reproduce bug "BUG at mm/filemap.c:202!"
> https://lkml.org/lkml/2014/4/15/577 with the attached programs.
> I can't reproduce it, but it triggered another bug related to commit b18825a7c.
>
> commit b18825a7c8e37a7cf6abb97a12a6ad71af160de7
> Author: David Howells <dhowells@redhat.com>
> Date: Thu Sep 12 19:22:53 2013 +0100
>
> VFS: Put a small type field into struct dentry::d_flags
>
> [ 216.673863] BUG: unable to handle kernel NULL pointer dereference
> at (null)
> [ 216.674235] IP: [<ffffffff81108961>] do_last.isra.44+0x7d2/0x9ea
Where is it in do_last()? Hard to tell without even the hex dump of
oopsing code (and trying to reproduce it here hasn't produced any oopsen
so far).
And your test.c is _really_ weird:
> fd = open("/mnt/t.txt", 0666);
Just what is that 0666 doing, in your opinion? And how is it different
from O_NOCTTY | O_EXCL | O_RDWR (which also makes zero sense)?
And this read() loop is just plain odd - you are leaving it if read(fd, &c, 1)
gives you 0 and proceed to print (uninitialized in that case) value of c...
Anyway, I'd really like to see your .config (or, better yet, disassembly of
do_last) along with the hex dump of oopsing code. Without that...
next prev parent reply other threads:[~2014-04-18 1:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-18 1:14 panic in do_last() Lin Ming
2014-04-18 1:57 ` Al Viro [this message]
2014-04-18 2:17 ` Al Viro
2014-04-18 2:22 ` Lin Ming
2014-04-18 2:35 ` Lin Ming
2014-04-18 2:42 ` Al Viro
[not found] ` <CAF1ivSbqM2LorrED3MvgKBDxA9sLz_RkOEPwAfvYYmL5C9K0vA@mail.gmail.com>
2014-04-18 2:38 ` Al Viro
2014-04-18 2:48 ` Al Viro
2014-04-18 3:17 ` Al Viro
2014-04-18 3:40 ` Lin Ming
2014-04-18 15:11 ` Lin Ming
2014-04-22 17:51 ` Lin Ming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140418015750.GG18016@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=dhowells@redhat.com \
--cc=hughd@google.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=minggr@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.