linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lutomirski <luto@mit.edu>
To: Theodore Tso <tytso@mit.edu>, Andrew Lutomirski <luto@mit.edu>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Kernel Testers List <kernel-testers@vger.kernel.org>,
	Shawn Starr <shawn.starr@rogers.com>
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@mit.edu>

On Thu, Oct 29, 2009 at 5:23 PM, Theodore Tso <tytso@mit.edu> 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@linux.vnet.ibm.com>
> 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@linux.vnet.ibm.com>
>
> 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

  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 #14299] oops in wireless, iwl3945 related? Rafael J. Wysocki
2009-10-27  0:46   ` Pavel Machek
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 #14298] warning at manage.c:361 (set_irq_wake), matrix-keypad related? 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 #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 #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 #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
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
2009-10-31 21:57                   ` Linus Torvalds
2009-10-31 22:10                     ` Rafael J. Wysocki
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
2009-11-02 13:35                         ` Rafael J. Wysocki
2009-11-01 17:18                       ` Linus Torvalds
2009-11-02 13:39                         ` Rafael J. Wysocki
2009-11-02 17:38                           ` Dominik Brodowski
2009-11-02 18:40                             ` Rafael J. Wysocki
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 #14352] WARNING: at net/mac80211/scan.c:267 Rafael J. Wysocki
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
2009-10-26 19:18     ` 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
2009-10-26 22:12     ` Rafael J. Wysocki
2009-10-26 22:13     ` Dan Williams
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
2009-10-27  9:42     ` Harald Arnesen
2009-11-04 20:07       ` [Bug #14372] ath5k wireless not working after rfkill [BISECTED] Sitsofe Wheeler
2009-11-04 20:12         ` Fabio Comolli
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 #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 #14378] Problems with net/core/skbuff.c Rafael J. Wysocki
2009-10-26 19:50   ` Eric Dumazet
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 #14380] Video tearing/glitching with T400 laptops 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 #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 #14387] deadlock with fallocate Rafael J. Wysocki
2009-10-26 20:41   ` Christoph Hellwig
2009-10-26 20:46     ` 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 #14408] sysctl check failed Rafael J. Wysocki
2009-10-28  3:56   ` Eric W. Biederman
2009-10-28 18:48     ` 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 #14430] sync() hangs in bdi_sched_wait Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14415] Reboot on kernel load Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14406] uvcvideo stopped work on Toshiba 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 #14442] resume after hibernate: /dev/sdb drops and returns as /dev/sde Rafael J. Wysocki
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
2009-10-29 18:39       ` Christoph Lameter
2009-10-29 14:48         ` Tejun Heo
2009-10-29 18:57           ` Christoph Lameter
2009-10-29 15:11             ` Tejun Heo
2009-10-29 19:18               ` Christoph Lameter
2009-10-29 15:33                 ` Tejun Heo
2009-10-26 18:55 ` [Bug #14472] EXT4 corruption Rafael J. Wysocki
2009-10-29 19:57   ` Andrew Lutomirski
2009-10-29 21:33     ` Rafael J. Wysocki
2009-10-29 22:23     ` Theodore Tso
2009-10-29 22:34       ` Andrew Lutomirski
2009-10-29 22:43         ` Shawn Starr
2009-11-03 23:43       ` Andrew Lutomirski [this message]
2009-11-05 19:31         ` Theodore Tso
2009-10-26 18:55 ` [Bug #14473] ATA related kernel warning after resume Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14477] possible circular locking dependency in ISDN PPP Rafael J. Wysocki
2009-10-26 22:00   ` Tilman Schmidt
2009-10-26 22:09     ` 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:55 ` [Bug #14479] nfs oops Rafael J. Wysocki
2009-10-26 21:07   ` Egon Alter
2009-10-26 22:16     ` 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
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 #14482] kernel BUG at fs/dcache.c:670 +lvm +md +ext3 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
2009-10-27 22:12     ` 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
2009-10-26 21:01     ` 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
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@mit.edu \
    --cc=kernel-testers@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=shawn.starr@rogers.com \
    --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).