From: Theodore Ts'o <tytso@mit.edu>
To: "Holger Hoffstätte" <holger.hoffstaette@googlemail.com>
Cc: Jan Kara <jack@suse.cz>, linux-ext4@vger.kernel.org, linux-mm@kvack.org
Subject: Re: Repeatable ext4 oops with 3.6.0 (regression)
Date: Thu, 4 Oct 2012 13:34:25 -0400 [thread overview]
Message-ID: <20121004173425.GA15405@thunk.org> (raw)
In-Reply-To: <506DABDD.7090105@googlemail.com>
On Thu, Oct 04, 2012 at 05:31:41PM +0200, Holger Hoffstätte wrote:
> So armed with multiple running shells I finally managed to save the dmesg
> to NFS. It doesn't get any more complete than this and again shows the
> ext4 stacktrace from before. So maybe it really is generic kmem corruption
> and ext4 looking at symlinks/inodes is just the victim.
That certainly seems to be the case. As near as I can tell from the
stack trace, you're doing a readdir(), and the crash is happening in
ext4_htree_store_dirent() --- the stack address to ext4_follow_link()
makes no sense given the rest of the strack trace, and anyway,
ext4_follow_link() doesn't do any memory allocation.
So that means this:
> [ 106.643048] [<c0236ed9>] ext4_htree_store_dirent+0x29/0x110
Almost certainly corresponds to the following call to kzalloc:
/* Create and allocate the fname structure */
len = sizeof(struct fname) + dirent->name_len + 1;
new_fn = kzalloc(len, GFP_KERNEL);
dirent->name_len is a unsigned char, and struct fname is around 48
bytes or so. So len is never going to be larger than 300 bytes, and
never smaller than 48 bytes, which is certainly valid input as far as
kzalloc() is concerned.
So it's very likely that the crash in __kmalloc() is probably caused
by the internal slab/slub data structures getting scrambled.
Regards,
- Ted
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2012-10-04 17:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-02 11:19 Repeatable ext4 oops with 3.6.0 (regression) Holger Hoffstaette
2012-10-02 13:36 ` Jan Kara
2012-10-02 14:31 ` Holger Hoffstaette
2012-10-04 13:01 ` Jan Kara
2012-10-04 15:31 ` Holger Hoffstätte
2012-10-04 16:12 ` Lee Schermerhorn
2012-10-04 17:34 ` Theodore Ts'o [this message]
2012-10-04 21:11 ` Holger Hoffstätte
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=20121004173425.GA15405@thunk.org \
--to=tytso@mit.edu \
--cc=holger.hoffstaette@googlemail.com \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-mm@kvack.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).