Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934055Ab2JZUrc (ORCPT ); Fri, 26 Oct 2012 16:47:32 -0400 Received: from icebox.esperi.org.uk ([81.187.191.129]:43135 "EHLO mail.esperi.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752136Ab2JZUra (ORCPT ); Fri, 26 Oct 2012 16:47:30 -0400 From: Nix To: Martin Cc: Linux Kernel Mailing List , linux-ext4@vger.kernel.org, tytso@mit.edu, stable@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: Apparent serious progressive ext4 data corruption bug in 3.6.3 (and other stable branches?) References: <50882787.3030504@onlinehome.de> <508AEEF7.8060301@onlinehome.de> <871uglyoap.fsf@spindle.srvr.nix> <508AF639.30603@onlinehome.de> Emacs: it's not slow --- it's stately. Date: Fri, 26 Oct 2012 21:47:26 +0100 In-Reply-To: <508AF639.30603@onlinehome.de> (Martin's message of "Fri, 26 Oct 2012 22:44:41 +0200") Message-ID: <87sj91x8o1.fsf@spindle.srvr.nix> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DCC-INFN-TO-Metrics: spindle 1233; Body=6 Fuz1=6 Fuz2=6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2585 Lines: 50 On 26 Oct 2012, Martin said: > On 10/26/2012 10:24 PM, Nix wrote: >> On 26 Oct 2012, Martin spake thusly: >>> Computer is booted again in order to copy a few files to memory stick. Unbeknownst to me, the following entries are logged in the >>> system log: >>> >>> Oct 15 20:00:16 harold kernel: EXT4-fs error (device sda5): add_dirent_to_buf:1587: inode #655361: block 2629945: comm mount: bad >>> entry in directory: rec_len % 4 != 0 - offset=360(360), inode=655682, rec_len=18, name_len=5 >>> Oct 15 20:00:16 harold kernel: Aborting journal on device sda5-8. >>> Oct 15 20:00:16 harold kernel: EXT4-fs (sda5): Remounting filesystem read-only >>> Oct 15 20:00:16 harold kernel: EXT4-fs error (device sda5) in ext4_evict_inode:238: Journal has aborted >>> Oct 15 20:00:16 harold kernel: EXT4-fs error (device sda5) in ext4_create:2120: IO failure >> >> That's an interesting failure, but looks slightly different to what I >> saw. No bad directory entries, no aborted journals: a replayed journal >> and subsequent corruption. Still damaged though, and after a journal >> abort I'm not surprised you had problems! > > So my corrupt journal is simply the result of a user turning off the machine at a bad point in time? That's scary. In that scenario > even the option data=journal wouldn't save me from harm, would it? No, I think that's probably a bug -- but I don't know if it's the same bug: the symptoms are slightly different. (Note that some hard drives in the distant past had been known to write rubbish if powered down during a write. I don't think this has been true for a good decade or so, though.) >> It's hard to reason about a kernel that's had *that* massive lump of >> binary junk applied to it, alas. This may or may not be the same >> problem: it has some common features with what I see, but not all. > > true, i normally re-create problems with vanilla kernels before > reporting them. In this case I was cleanly sniped with no chance of > re-play so far. True. I'm stuck with a problem that I can only currently reproduce on physical hardware myself :( In addition to seeing if Ted's proposed patch reduces the frequency of corruption, I'll be doing some tests this weekend with LVM block device suspension and subsequent reboots to see if that causes similar symptoms even in virtualization. -- NULL && (void) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/