Skip to contentSkip to conversation

GPF on access to presumably corrupted file

DISCUSSION Russell Coker 4 participants 4 messages Jan 31, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

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.

Signature · 2 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
#1 lore raw
Quoted 11 lines · Russell Coker

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.

Quoted 9 lines

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

#2 lore raw
Quoted 32 lines · Josef Bacik
Quoted 23 lines · Russell Coker

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.

Quoted 7 lines

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.

Quoted 4 lines

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

#3 lore raw
Quoted 33 lines · Chris Mason
Quoted 32 lines · Josef Bacik
Quoted 30 lines · Russell Coker

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.

Quoted 7 lines
Quoted 4 lines

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 .