From: Theodore Ts'o <tytso@mit.edu>
To: Dave Chinner <david@fromorbit.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [4.7-rc4] WARNING: CPU: 10 PID: 3359 at fs/inode.c:280 drop_nlink+0x3e/0x50
Date: Tue, 5 Jul 2016 00:45:24 -0400 [thread overview]
Message-ID: <20160705044524.GE15193@thunk.org> (raw)
In-Reply-To: <20160704234633.GE27480@dastard>
On Tue, Jul 05, 2016 at 09:46:33AM +1000, Dave Chinner wrote:
> Hi folks,
>
> I just got this warning on boot from a test VM running an ext3
> root filesystem:
>
> [ 14.874951] ------------[ cut here ]------------
> [ 14.876447] WARNING: CPU: 10 PID: 3359 at fs/inode.c:280 drop_nlink+0x3e/0x50
> [ 14.878520] Modules linked in:
> [ 14.880065] CPU: 10 PID: 3359 Comm: mv Not tainted 4.7.0-rc4-dgc+ #821
> [ 14.883062] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
> [ 14.886648] 0000000000000000 ffff8800bad63c90 ffffffff817f1321 0000000000000000
> [ 14.888942] 0000000000000000 ffff8800bad63cd0 ffffffff810b3531 000001183750906c
> [ 14.891613] ffff8800bb3095b0 ffff8800bad63d48 ffff88033750906c 0000000000000000
> [ 14.893635] Call Trace:
> [ 14.894096] [<ffffffff817f1321>] dump_stack+0x63/0x82
> [ 14.895387] [<ffffffff810b3531>] __warn+0xd1/0xf0
> [ 14.896709] [<ffffffff810b361d>] warn_slowpath_null+0x1d/0x20
> [ 14.898421] [<ffffffff8121339e>] drop_nlink+0x3e/0x50
> [ 14.899737] [<ffffffff812d7d7b>] ext4_dec_count.isra.26+0x1b/0x30
> [ 14.901360] [<ffffffff812dd8a2>] ext4_rename+0x4d2/0x880
> [ 14.903025] [<ffffffff8177bde8>] ? security_capable+0x48/0x60
> [ 14.904524] [<ffffffff812ddc6d>] ext4_rename2+0x1d/0x30
> [ 14.905833] [<ffffffff8120676d>] vfs_rename+0x5fd/0x900
> [ 14.907163] [<ffffffff81209738>] SyS_rename+0x398/0x3b0
> [ 14.908496] [<ffffffff81e3c2f2>] entry_SYSCALL_64_fastpath+0x1a/0xa4
> [ 14.910251] ---[ end trace b59a7c09fe84eaba ]---
Thanks for the report. I'm pretty sure what happened is that the file
system was corrupted, but ext4_rename() does't have a check to make
sure i_links_count of the destination inode is non-zero (and to call
ext4_error() to flag the fs corruption if it is zero). Specifically,
I suspect what happened is that there was a file with two hard links,
but a i_link_count of 1. Both links were in the dentry cache, and
then the first link got deleted, leaving the second link still in the
dentry cache, but with a link count of 0.
How the file system got corrupted is of course a different question,
but I assume it happened when the VM was forcibly terminated
beforehand. How is the root device configured in terms of qemu device
cacheing? I don't think we have any corruption after crash problems
at this point (at least I haven't noticed any of the dm-flaky tests
failing recently), so my first suspicion is would be how qemu is
configured.
Cheers,
- Ted
next prev parent reply other threads:[~2016-07-05 4:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-04 23:46 [4.7-rc4] WARNING: CPU: 10 PID: 3359 at fs/inode.c:280 drop_nlink+0x3e/0x50 Dave Chinner
2016-07-05 4:45 ` Theodore Ts'o [this message]
2016-07-10 0:14 ` Dave Chinner
2016-07-10 15:25 ` Theodore Ts'o
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=20160705044524.GE15193@thunk.org \
--to=tytso@mit.edu \
--cc=david@fromorbit.com \
--cc=linux-ext4@vger.kernel.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 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.