All of lore.kernel.org
 help / color / mirror / Atom feed
* GPF on access to presumably corrupted file
@ 2014-01-31  7:24 Russell Coker
  2014-01-31 14:07 ` Josef Bacik
  0 siblings, 1 reply; 4+ messages in thread
From: Russell Coker @ 2014-01-31  7:24 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 1207 bytes --]

The attached dmesg log shows the results of trying to cat a file on a BTRFS 
filesystem when running the latest Debian/Unstable kernel (upstream 3.12.8 
with some Debian patches that probably aren't relevant to BTRFS).

I've rebooted the Thinkpad in question and repeated the problem after a 
reboot.  So I am fairly sure that the problem isn't directly caused by memory 
corruption.  I presume that it's corruption on disk causing this repeatable 
problem and such corruption could be caused by a memory error (which is 
something I've had happen before on a different system).  But I don't think 
that such corruption should cause a GPF.

So while I think we should consider the possibility that the filesystem was 
corrupted due to a hardware fault (of which there are several possibilities 
when dealing with a laptop) the inability to recover seems like a bug in 
BTRFS.

When this happens every process that tries to access the file in question is 
reported as being stuck in D state.  Sometimes such processes respond to kill 
-9 (I thought that was impossible) and sometimes they remain until reboot.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/

[-- Attachment #2: dmesg.gz --]
[-- Type: application/x-gzip, Size: 19879 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GPF on access to presumably corrupted file
  2014-01-31  7:24 GPF on access to presumably corrupted file Russell Coker
@ 2014-01-31 14:07 ` Josef Bacik
  2014-01-31 14:11   ` Chris Mason
  0 siblings, 1 reply; 4+ messages in thread
From: Josef Bacik @ 2014-01-31 14:07 UTC (permalink / raw)
  To: russell, linux-btrfs


On 01/31/2014 02:24 AM, Russell Coker wrote:
> The attached dmesg log shows the results of trying to cat a file on a BTRFS
> filesystem when running the latest Debian/Unstable kernel (upstream 3.12.8
> with some Debian patches that probably aren't relevant to BTRFS).
>
> I've rebooted the Thinkpad in question and repeated the problem after a
> reboot.  So I am fairly sure that the problem isn't directly caused by memory
> corruption.  I presume that it's corruption on disk causing this repeatable
> problem and such corruption could be caused by a memory error (which is
> something I've had happen before on a different system).  But I don't think
> that such corruption should cause a GPF.
>
> So while I think we should consider the possibility that the filesystem was
> corrupted due to a hardware fault (of which there are several possibilities
> when dealing with a laptop) the inability to recover seems like a bug in
> BTRFS.
>
> When this happens every process that tries to access the file in question is
> reported as being stuck in D state.  Sometimes such processes respond to kill
> -9 (I thought that was impossible) and sometimes they remain until reboot.
>
This may be a bug we just fixed in the recent git pull, are you running 
with compression?  If you are try the recent for-linus branch from Chris 
and see if you still have the problem.  Thanks,

Josef

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GPF on access to presumably corrupted file
  2014-01-31 14:07 ` Josef Bacik
@ 2014-01-31 14:11   ` Chris Mason
  2014-01-31 17:43     ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Mason @ 2014-01-31 14:11 UTC (permalink / raw)
  To: Josef Bacik; +Cc: russell, linux-btrfs

On Fri 31 Jan 2014 09:07:15 AM EST, Josef Bacik wrote:
>
> On 01/31/2014 02:24 AM, Russell Coker wrote:
>> The attached dmesg log shows the results of trying to cat a file on a
>> BTRFS
>> filesystem when running the latest Debian/Unstable kernel (upstream
>> 3.12.8
>> with some Debian patches that probably aren't relevant to BTRFS).
>>
>> I've rebooted the Thinkpad in question and repeated the problem after a
>> reboot.  So I am fairly sure that the problem isn't directly caused
>> by memory
>> corruption.  I presume that it's corruption on disk causing this
>> repeatable
>> problem and such corruption could be caused by a memory error (which is
>> something I've had happen before on a different system).  But I don't
>> think
>> that such corruption should cause a GPF.
>>
>> So while I think we should consider the possibility that the
>> filesystem was
>> corrupted due to a hardware fault (of which there are several
>> possibilities
>> when dealing with a laptop) the inability to recover seems like a bug in
>> BTRFS.
>>
>> When this happens every process that tries to access the file in
>> question is
>> reported as being stuck in D state.  Sometimes such processes respond
>> to kill
>> -9 (I thought that was impossible) and sometimes they remain until
>> reboot.
>>
> This may be a bug we just fixed in the recent git pull, are you
> running with compression?  If you are try the recent for-linus branch
> from Chris and see if you still have the problem.  Thanks,
>

It does look like one we fixed, even without compression please give 
for-linus a shot.

-chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GPF on access to presumably corrupted file
  2014-01-31 14:11   ` Chris Mason
@ 2014-01-31 17:43     ` David Sterba
  0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2014-01-31 17:43 UTC (permalink / raw)
  To: Chris Mason; +Cc: Josef Bacik, russell, linux-btrfs

On Fri, Jan 31, 2014 at 09:11:29AM -0500, Chris Mason wrote:
> On Fri 31 Jan 2014 09:07:15 AM EST, Josef Bacik wrote:
> >
> >On 01/31/2014 02:24 AM, Russell Coker wrote:
> >>The attached dmesg log shows the results of trying to cat a file on a
> >>BTRFS
> >>filesystem when running the latest Debian/Unstable kernel (upstream
> >>3.12.8
> >>with some Debian patches that probably aren't relevant to BTRFS).
> >>
> >>I've rebooted the Thinkpad in question and repeated the problem after a
> >>reboot.  So I am fairly sure that the problem isn't directly caused
> >>by memory
> >>corruption.  I presume that it's corruption on disk causing this
> >>repeatable
> >>problem and such corruption could be caused by a memory error (which is
> >>something I've had happen before on a different system).  But I don't
> >>think
> >>that such corruption should cause a GPF.
> >>
> >>So while I think we should consider the possibility that the
> >>filesystem was
> >>corrupted due to a hardware fault (of which there are several
> >>possibilities
> >>when dealing with a laptop) the inability to recover seems like a bug in
> >>BTRFS.
> >>
> >>When this happens every process that tries to access the file in
> >>question is
> >>reported as being stuck in D state.  Sometimes such processes respond
> >>to kill
> >>-9 (I thought that was impossible) and sometimes they remain until
> >>reboot.
> >>
> >This may be a bug we just fixed in the recent git pull, are you
> >running with compression?  If you are try the recent for-linus branch
> >from Chris and see if you still have the problem.  Thanks,
> >
> 
> It does look like one we fixed, even without compression please give
> for-linus a shot.

Yes it is the bug, https://bugzilla.kernel.org/show_bug.cgi?id=68411 .

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-31 17:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-31  7:24 GPF on access to presumably corrupted file Russell Coker
2014-01-31 14:07 ` Josef Bacik
2014-01-31 14:11   ` Chris Mason
2014-01-31 17:43     ` David Sterba

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.