From: Andrew Lutomirski <luto-3s7WtUTddSA@public.gmane.org>
To: Theodore Tso <tytso-3s7WtUTddSA@public.gmane.org>,
Andrew Lutomirski <luto-3s7WtUTddSA@public.gmane.org>,
"Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>,
Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Kernel Testers List <kerne>
Subject: Re: [Bug #14472] EXT4 corruption
Date: Tue, 3 Nov 2009 18:43:11 -0500 [thread overview]
Message-ID: <cb0375e10911031543n5cfcc090k8780449a1413b067@mail.gmail.com> (raw)
In-Reply-To: <20091029222335.GJ18464-3s7WtUTddSA@public.gmane.org>
On Thu, Oct 29, 2009 at 5:23 PM, Theodore Tso <tytso-3s7WtUTddSA@public.gmane.org> wrote:
> On Thu, Oct 29, 2009 at 03:57:32PM -0400, Andrew Lutomirski wrote:
>>
>> This but is *not* fixed. I just triggered it a few minutes ago by
>> abusing i915 and drm, which caused a panic. This is slightly newer
>> than 2.6.32-rc5, with a couple of i915 bugfixes thrown in.
>
> Andrew, can you test to see if this patch helps?
>
> Thanks,
>
> - Ted
>
> commit a8836b1d6f92273e001012c7705ae8f4c3d5fb65
> Author: Aneesh Kumar K.V <aneesh.kumar-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> Date: Tue Oct 27 15:36:38 2009 +0530
>
> ext4: discard preallocation during truncate
>
> We need to make sure when we drop and reacquire the inode's
> i_data_sem we discard the inode preallocation. Otherwise we
> could have blocks marked as free in bitmap but still belonging
> to prealloc space.
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar-23VcF4HTsmIX0ybBhKVfKQ@public.gmane.orgom>
>
> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
> index 5c5bc5d..a1ef1c3 100644
> --- a/fs/ext4/inode.c
> +++ b/fs/ext4/inode.c
> @@ -209,6 +209,12 @@ static int try_to_extend_transaction(handle_t *handle, struct inode *inode)
> up_write(&EXT4_I(inode)->i_data_sem);
> ret = ext4_journal_restart(handle, blocks_for_truncate(inode));
> down_write(&EXT4_I(inode)->i_data_sem);
> + /*
> + * We have dropped i_data_sem. So somebody else could have done
> + * block allocation. So discard the prealloc space created as a
> + * part of block allocation
> + */
> + ext4_discard_preallocations(inode);
>
> return ret;
> }
>
It looks like 2.6.32-rc6 is supposed to fix this bug, but it also
looks like this patch didn't make it in. Should I still be using this
patch?
Thanks,
Andy
next prev parent reply other threads:[~2009-11-03 23:43 UTC|newest]
Thread overview: 128+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 18:45 2.6.32-rc5-git3: Reported regressions from 2.6.31 Rafael J. Wysocki
2009-10-26 18:45 ` [Bug #14277] Caught 8-bit read from freed memory in b43 driver at association Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14298] warning at manage.c:361 (set_irq_wake), matrix-keypad related? Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14331] Radeon XPRESS 200M: System hang with radeon DRI and Fedora 10 userspace unless DRI=off Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14302] Kernel panic on i386 machine when booting with profile=2 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14299] oops in wireless, iwl3945 related? Rafael J. Wysocki
2009-10-27 0:46 ` Pavel Machek
[not found] ` <20091027004600.GD5019-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2009-10-27 8:25 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14296] spitz boots but suspend/resume is broken Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14297] console resume broken since ba15ab0e8d Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14354] Bad corruption with 2.6.32-rc1 and upwards Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14352] WARNING: at net/mac80211/scan.c:267 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14334] pcmcia suspend regression from 2.6.31.1 to 2.6.31.2 - Dell Inspiron 600m Rafael J. Wysocki
2009-10-30 18:48 ` Help needed, " Rafael J. Wysocki
2009-10-30 19:47 ` Linus Torvalds
2009-10-30 20:32 ` Rafael J. Wysocki
2009-10-30 20:40 ` Linus Torvalds
2009-10-30 21:17 ` Linus Torvalds
[not found] ` <alpine.LFD.2.01.0910301412500.31845-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-10-30 22:17 ` Rafael J. Wysocki
2009-10-30 23:54 ` Benjamin Herrenschmidt
2009-10-30 23:57 ` Benjamin Herrenschmidt
2009-10-31 9:31 ` Rafael J. Wysocki
2009-10-31 21:01 ` Benjamin Herrenschmidt
2009-10-31 21:27 ` Rafael J. Wysocki
2009-10-31 21:44 ` Linus Torvalds
2009-10-31 21:52 ` Rafael J. Wysocki
[not found] ` <200910312252.39446.rjw-KKrjLPT3xs0@public.gmane.org>
2009-10-31 21:57 ` Linus Torvalds
[not found] ` <alpine.LFD.2.01.0910311455520.31845-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-10-31 22:10 ` Rafael J. Wysocki
[not found] ` <200910312227.15493.rjw-KKrjLPT3xs0@public.gmane.org>
2009-10-31 22:56 ` Benjamin Herrenschmidt
2009-10-31 23:10 ` Rafael J. Wysocki
2009-10-31 23:24 ` Rafael J. Wysocki
2009-11-01 8:36 ` Rafael J. Wysocki
2009-11-01 16:47 ` Dominik Brodowski
[not found] ` <20091101164736.GA5666-S7uyTPAaJ/sb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org>
2009-11-02 13:35 ` Rafael J. Wysocki
[not found] ` <200911010936.10409.rjw-KKrjLPT3xs0@public.gmane.org>
2009-11-01 17:18 ` Linus Torvalds
2009-11-02 13:39 ` Rafael J. Wysocki
2009-11-02 17:38 ` Dominik Brodowski
[not found] ` <20091102173843.GA662-S7uyTPAaJ/sb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org>
2009-11-02 18:40 ` Rafael J. Wysocki
[not found] ` <200911021439.28266.rjw-KKrjLPT3xs0@public.gmane.org>
2009-11-02 17:50 ` Linus Torvalds
2009-11-02 22:22 ` Benjamin Herrenschmidt
2009-11-12 12:14 ` Pavel Machek
2009-10-26 18:55 ` [Bug #14353] BUG: sleeping function called from invalid context at kernel/mutex.c:280 Rafael J. Wysocki
2009-10-26 19:11 ` Johannes Berg
[not found] ` <1256584306.4237.1.camel-YfaajirXv2244ywRPIzf9A@public.gmane.org>
2009-10-26 19:18 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14355] USB serial regression after 2.6.31.1 with Huawei E169 GSM modem Rafael J. Wysocki
2009-10-27 1:54 ` Benjamin Herrenschmidt
2009-10-27 8:28 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14372] ath5k wireless not working after suspend-resume - eeepc Rafael J. Wysocki
2009-10-26 20:15 ` Fabio Comolli
2009-10-26 20:56 ` Rafael J. Wysocki
[not found] ` <b637ec0b0910261315u43033948ge041cf70292bfa58-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-27 9:42 ` Harald Arnesen
[not found] ` <87aazddvft.fsf-exrMVdEGsfKEgazeWs4jLoSLwOllVvif@public.gmane.org>
2009-11-04 20:07 ` [Bug #14372] ath5k wireless not working after rfkill [BISECTED] Sitsofe Wheeler
2009-11-04 20:12 ` Fabio Comolli
[not found] ` <20091104200714.GA24699-Ae9UE+oIsuU@public.gmane.org>
2009-11-04 22:00 ` John W. Linville
2009-11-04 22:35 ` Darren Salt
2009-10-26 18:55 ` [Bug #14373] Task blocked for more than 120 seconds Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14375] Intel(R) I/OAT DMA Engine init failed Rafael J. Wysocki
2009-10-26 21:57 ` Alexander Beregalov
[not found] ` <a4423d670910261457o2e1ccb7t768199dfd9985270-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-26 22:12 ` Rafael J. Wysocki
2009-10-26 22:13 ` Dan Williams
2009-10-26 18:55 ` [Bug #14378] Problems with net/core/skbuff.c Rafael J. Wysocki
2009-10-26 19:50 ` Eric Dumazet
[not found] ` <4AE5FD84.8070906-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-10-26 20:57 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14376] Kernel NULL pointer dereference/ kvm subsystem Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14379] ACPI Warning for _SB_.BAT0._BIF: Converted Buffer to expected String Rafael J. Wysocki
2009-10-26 19:15 ` Justin P. Mattock
2009-10-26 19:30 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14381] iwlagn lost connection after s2ram (with warnings) Rafael J. Wysocki
2009-10-26 19:56 ` Carlos R. Mafra
2009-10-26 18:55 ` [Bug #14383] hackbench regression with kernel 2.6.32-rc1 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14380] Video tearing/glitching with T400 laptops Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14389] Build system issue Rafael J. Wysocki
2009-10-26 20:05 ` Ingo Molnar
2009-10-26 20:59 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14384] tbench regression with 2.6.32-rc1 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14387] deadlock with fallocate Rafael J. Wysocki
2009-10-26 20:41 ` Christoph Hellwig
[not found] ` <20091026204120.GA4673-jcswGhMUV9g@public.gmane.org>
2009-10-26 20:46 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14390] "bind" a device to a driver doesn't not work anymore Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14406] uvcvideo stopped work on Toshiba Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14415] Reboot on kernel load Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14408] sysctl check failed Rafael J. Wysocki
2009-10-28 3:56 ` Eric W. Biederman
[not found] ` <m1k4ygcgsy.fsf-+imSwln9KH6u2/kzUuoCbdi2O/JbrIOy@public.gmane.org>
2009-10-28 18:48 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14430] sync() hangs in bdi_sched_wait Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14442] resume after hibernate: /dev/sdb drops and returns as /dev/sde Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14466] EFI boot on x86 fails in .32 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14472] EXT4 corruption Rafael J. Wysocki
2009-10-29 19:57 ` Andrew Lutomirski
[not found] ` <cb0375e10910291257t1f2f16ciade932bd78689ccc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-29 21:33 ` Rafael J. Wysocki
2009-10-29 22:23 ` Theodore Tso
[not found] ` <20091029222335.GJ18464-3s7WtUTddSA@public.gmane.org>
2009-10-29 22:34 ` Andrew Lutomirski
2009-11-03 23:43 ` Andrew Lutomirski [this message]
[not found] ` <cb0375e10911031543n5cfcc090k8780449a1413b067-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-05 19:31 ` Theodore Tso
[not found] ` <cb0375e10910291534j485b9e55vc42c3ce94a30252c@mail.gmail.com>
2009-10-29 22:43 ` Shawn Starr
2009-10-26 18:55 ` [Bug #14467] Linker errors on ia64 with NR_CPUS=4096 Rafael J. Wysocki
2009-10-27 20:28 ` Christoph Lameter
2009-10-27 18:24 ` Jiri Kosina
[not found] ` <alpine.LSU.2.00.0910271922490.19847-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2009-10-29 18:39 ` Christoph Lameter
2009-10-29 14:48 ` Tejun Heo
[not found] ` <4AE9AB23.8010207-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2009-10-29 18:57 ` Christoph Lameter
2009-10-29 15:11 ` Tejun Heo
[not found] ` <4AE9B090.9090107-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2009-10-29 19:18 ` Christoph Lameter
2009-10-29 15:33 ` Tejun Heo
2009-10-26 18:55 ` [Bug #14477] possible circular locking dependency in ISDN PPP Rafael J. Wysocki
2009-10-26 22:00 ` Tilman Schmidt
[not found] ` <4AE61C10.5030409-ZTO5kqT2PaM@public.gmane.org>
2009-10-26 22:09 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14473] ATA related kernel warning after resume Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14479] nfs oops Rafael J. Wysocki
2009-10-26 21:07 ` Egon Alter
[not found] ` <200910262207.30953.egon.alter-hi6Y0CQ0nG0@public.gmane.org>
2009-10-26 22:16 ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14480] 2 locks held by cat -- running "find /sys | head -c 4" --> system hang Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14483] WARNING: at drivers/base/sys.c:353 __sysdev_resume+0x54/0xca() Rafael J. Wysocki
2009-10-26 20:08 ` Justin P. Mattock
[not found] ` <4AE601B1.7050000-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-10-26 21:01 ` Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14482] kernel BUG at fs/dcache.c:670 +lvm +md +ext3 Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14481] umount blocked for more than 120 seconds after USB drive removal Rafael J. Wysocki
2009-10-26 23:45 ` Robert Hancock
[not found] ` <51f3faa70910261645x16235582keb00a5875f64db14-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-27 8:29 ` Rafael J. Wysocki
2009-10-27 2:04 ` Yong Zhang
2009-10-27 8:30 ` Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14484] no video output after suspend Rafael J. Wysocki
2009-10-27 21:25 ` Riccardo Magliocchetti
[not found] ` <4AE7654B.6040401-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-10-27 22:12 ` Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14485] System lockup running "cat /sys/kernel/debug/dri/0/i915_regs" Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2009-11-16 22:33 2.6.32-rc7-git1: Reported regressions from 2.6.31 Rafael J. Wysocki
2009-11-16 22:37 ` [Bug #14472] EXT4 corruption Rafael J. Wysocki
2009-11-16 23:30 ` Andy Lutomirski
[not found] ` <9872C96C-FAE8-46E8-9588-25D917AF0EAD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-11-17 22:32 ` 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=cb0375e10911031543n5cfcc090k8780449a1413b067@mail.gmail.com \
--to=luto-3s7wtutddsa@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rjw-KKrjLPT3xs0@public.gmane.org \
--cc=tytso-3s7WtUTddSA@public.gmane.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).