From: Jan Kara <jack@suse.cz>
To: Witold Baryluk <baryluk@smp.if.uj.edu.pl>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Kernel Testers List <kernel-testers@vger.kernel.org>,
Maciej Rutecki <maciej.rutecki@gmail.com>,
Florian Mickler <florian@mickler.org>,
linux-ext4@vger.kernel.org,
Andreas Dilger <adilger.kernel@dilger.ca>,
Theodore Ts'o <tytso@mit.edu>
Subject: Re: [Bug #39732] JBD: Spotted dirty metadata buffer (dev = dm-2, blocknr = 2512725). There's a risk of filesystem corruption in case of system crash.
Date: Tue, 13 Dec 2011 18:35:42 +0100 [thread overview]
Message-ID: <20111213173542.GH11747@quack.suse.cz> (raw)
In-Reply-To: <20111213041144.GF28734@smp.if.uj.edu.pl>
Hi,
On Tue 13-12-11 05:11:44, Witold Baryluk wrote:
> On 08-28 21:01, Rafael J. Wysocki wrote:
> > This message has been generated automatically as a part of a report
> > of regressions introduced between 2.6.39 and 3.0.
> >
> > The following bug entry is on the current list of known regressions
> > introduced between 2.6.39 and 3.0. Please verify if it still should
> > be listed and let the tracking team know (either way).
> >
> >
> > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=39732
> > Subject : JBD: Spotted dirty metadata buffer (dev = dm-2, blocknr = 2512725). There's a risk of filesystem corruption in case of system crash.
> > Submitter : Witold Baryluk <baryluk@smp.if.uj.edu.pl>
> > Date : 2011-07-22 04:22 (38 days old)
>
> This bug still exists in 3.1.0 and 3.2.0-rc5
>
> I spoted it again few days ago, because I moved from me laptop with 2GB
> to temporary desktop with 256MB of RAM, and not it
> triggers like a mad.
>
> So my initial suspicious that it only shows up on big memory
> presure was correct.
>
>
> It is just like this
> # dmesg | grep dirty
> [122647.953872] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 1019852). There's a risk of filesystem corruption in case of system crash.
> [122647.954598] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 1043195). There's a risk of filesystem corruption in case of system crash.
> [122647.955213] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 1043197). There's a risk of filesystem corruption in case of system crash.
> [122689.978864] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 498559). There's a risk of filesystem corruption in case of system crash.
> [122705.485461] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 68282). There's a risk of filesystem corruption in case of system crash.
> [122705.486046] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 68284). There's a risk of filesystem corruption in case of system crash.
> [122705.496916] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 68365). There's a risk of filesystem corruption in case of system crash.
> [122705.612423] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 69218). There's a risk of filesystem corruption in case of system crash.
> [122706.531297] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 833896). There's a risk of filesystem corruption in case of system crash.
> [122720.863807] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 914979). There's a risk of filesystem corruption in case of system crash.
> [122721.046789] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 890090). There's a risk of filesystem corruption in case of system crash.
> [122721.088280] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 916474). There's a risk of filesystem corruption in case of system crash.
> [122721.176979] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 928182). There's a risk of filesystem corruption in case of system crash.
> [122721.177593] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 927783). There's a risk of filesystem corruption in case of system crash.
> [122721.371654] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 920655). There's a risk of filesystem corruption in case of system crash.
> [122721.543676] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 967035). There's a risk of filesystem corruption in case of system crash.
> [122728.396687] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 1043474). There's a risk of filesystem corruption in case of system crash.
> [122736.283876] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 713478). There's a risk of filesystem corruption in case of system crash.
> [122743.576350] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 745551). There's a risk of filesystem corruption in case of system crash.
> [122743.889259] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 828117). There's a risk of filesystem corruption in case of system crash.
> [122752.077022] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 905082). There's a risk of filesystem corruption in case of system crash.
> [122752.125005] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 905294). There's a risk of filesystem corruption in case of system crash.
> [122752.784390] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 1030306). There's a risk of filesystem corruption in case of system crash.
> [122752.785053] JBD: Spotted dirty metadata buffer (dev = dm-3, blocknr = 1031593). There's a risk of filesystem corruption in case of system crash.
> #
>
> dm-4 is ext4 partition mounted at /var
> dm-4 is on LVM on luksCrypt on ATA drive.
>
> I'm using currently stock Debian testing kernel:
> $ uname -a
> Linux sredniczarny 3.1.0-1-686-pae #1 SMP Tue Nov 29 19:01:56 UTC 2011 i686 GNU/Linux
> $ cat /proc/version
> Linux version 3.1.0-1-686-pae (Debian 3.1.4-1) (waldi@debian.org) (gcc version 4.6.2 (Debian 4.6.2-4) ) #1 SMP Tue Nov 29 19:01:56 UTC 2011
> $
>
> 32-bit intel compatible cpu
Thanks for report. Actually I was able to reproduce these messages with
data=journal mode as well when running bash_shared_mapping test. The
culprit of the problem is that block_mkwrite() as used in
ext4_page_mkwrite() marks buffers dirty and JBD2 notices this before
we clear dirty bits later in ext4_page_mkwrite() (since JBD2 doesn't use
page lock for protection when inspecting buffers). So for data=journal mode
we'll probably have to reimplement what block_page_mkwrite() does in a
slightly different manner tweaked for the needs of data=journal mode.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
next prev parent reply other threads:[~2011-12-13 17:35 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-28 18:58 3.1-rc3-git6: Reported regressions 2.6.39 -> 3.0 Rafael J. Wysocki
2011-08-28 18:58 ` [Bug #38582] T510 43495KG won't resume with 32bit installation Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #39412] Win Vista and Win2K8 guests' network breaks down Rafael J. Wysocki
2011-08-29 9:03 ` Ren, Yongjie
[not found] ` <CE59C043D0EC3349B2BF41C0EC72229B12D24D15E8-QQHDSDV1ERZpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-08-29 16:26 ` Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #39192] firmware_install fails with parallel make Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #38622] [radeon cayman regresion] artefacts on screen Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #38922] Lenovo T420 (Sandy Bridge) Crashes on SD Card gpt partition writing and io errors on insert Rafael J. Wysocki
2011-08-28 19:51 ` Chris Ball
[not found] ` <m2fwklxqjy.fsf-mq7wBgpjGkdLDiiyqF6/jw@public.gmane.org>
2011-08-28 20:06 ` Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #39832] HDA ATI HDMI: no sound with 3.0 - 2.6.39.3 works Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #39732] JBD: Spotted dirty metadata buffer (dev = dm-2, blocknr = 2512725). There's a risk of filesystem corruption in case of system crash Rafael J. Wysocki
2011-12-13 4:11 ` Witold Baryluk
2011-12-13 17:35 ` Jan Kara [this message]
[not found] ` <20111213173542.GH11747-+0h/O2h83AeN3ZZ/Hiejyg@public.gmane.org>
2011-12-13 23:43 ` Witold Baryluk
2011-08-28 19:01 ` [Bug #39882] Kernel oops when turning bluetooth mouse on Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #40072] suspend/resume problems w/ kernel 3.0 and a *docked* ThinkPad T400, unless iwlagn unloaded Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #39912] WARNING: at drivers/tty/tty_ldisc.c:766 tty_ldisc_reinit+0x7d/0x90() Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #40062] USB related "unable to handle kernel paging request" in 3.0.0-rc7 Rafael J. Wysocki
2011-08-28 19:47 ` Tino Keitel
[not found] ` <20110828194745.GA20770-WT5OiF3fLHw@public.gmane.org>
2011-08-28 19:52 ` Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #39922] WIFI becomes EXTREMELY slow ( ath9k ) making the connection unusable Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #40092] RCU stall in linux-3.0.0 Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #40262] PROBLEM: I/O storm from hell on kernel 3.0.0 when touch swap (swapfile or partition) Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #40282] IP forwarding regression since 3.0-rc6 Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #41102] BUG dentry: Poison overwritten / BUG buffer_head: Poison overwritten Rafael J. Wysocki
2011-08-30 12:13 ` Paul Bolle
[not found] ` <1314706380.1989.8.camel-uMdlDhfIn7prKue/0VVhAg@public.gmane.org>
2011-08-30 18:47 ` Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #41092] INFO: trying to register non-static key (sync_inodes_sb) Rafael J. Wysocki
2011-08-30 11:53 ` Paul Bolle
[not found] ` <1314705207.1989.6.camel-uMdlDhfIn7prKue/0VVhAg@public.gmane.org>
2011-08-30 18:43 ` Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #40442] cpuinfo_max_freq lost 500MHz Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #41262] Terracted T5 does no more work Rafael J. Wysocki
2011-08-28 21:11 ` Eric Valette
2011-08-28 19:01 ` [Bug #41232] Channel switching on Hauppauge Nova-T stick fails randomly Rafael J. Wysocki
2011-08-28 19:01 ` [Bug #41562] acer-wmi: acer aspire 721 bluetooth control doesn't work with kernel 3.0.0 Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2011-08-14 19:02 3.1-rc1-git9: Reported regressions 2.6.39 -> 3.0 Rafael J. Wysocki
2011-08-14 19:07 ` [Bug #39732] JBD: Spotted dirty metadata buffer (dev = dm-2, blocknr = 2512725). There's a risk of filesystem corruption in case of system crash Rafael J. Wysocki
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=20111213173542.GH11747@quack.suse.cz \
--to=jack@suse.cz \
--cc=adilger.kernel@dilger.ca \
--cc=baryluk@smp.if.uj.edu.pl \
--cc=florian@mickler.org \
--cc=kernel-testers@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maciej.rutecki@gmail.com \
--cc=rjw@sisk.pl \
--cc=tytso@mit.edu \
/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).