From: Johannes Hirte on
When doing a 'rm -r /var/tmp/portage/sys-devel' I get the following Oops:

------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-tree.c:1353!
invalid opcode: 0000 [#1] PREEMPT SMP
last sysfs file:
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0/charge_full
Modules linked in: snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq
snd_seq_device snd_pcm_oss snd_mixer_oss nfs lockd nfs_acl auth_rpcgss sunrpc
sco rfcomm bnep l2cap crc16 xts gf128mul usb_storage dm_crypt dm_mod coretemp
hwmon acpi_cpufreq mperf snd_hda_codec_realtek uvcvideo iwl3945 snd_hda_intel
snd_hda_codec iwlcore videodev r8169 snd_hwdep btusb snd_pcm v4l1_compat
mac80211 snd_timer bluetooth snd mii cfg80211 soundcore sg rfkill ac i2c_i801
snd_page_alloc uhci_hcd battery [last unloaded: microcode]

Pid: 2358, comm: rm Not tainted 2.6.35-rc4 #32 M912/M912
EIP: 0060:[<c10c383b>] EFLAGS: 00010202 CPU: 1
EIP is at lookup_inline_extent_backref+0xf2/0x406
EAX: 00000001 EBX: 00000007 ECX: 00000000 EDX: 00000000
ESI: 00000004 EDI: f7268150 EBP: 00000004 ESP: f5aa5d08
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process rm (pid: 2358, ti=f5aa4000 task=f6f0fa70 task.ti=f5aa4000)
Stack:
f702f8c0 f744e080 f665f380 000000b0 00000000 00000000 ffffffff f6c80f00
<0> f744e080 c10ec226 e98acfff f6c98000 00001001 0e987000 00000004 00000000
<0> 00000850 040e9870 a8000000 00001000 00000000 00000007 00000000 0e987000
Call Trace:
[<c10ec226>] ? set_extent_dirty+0x19/0x1d
[<c10c5081>] ? __btrfs_free_extent+0xda/0x675
[<c10c88bf>] ? run_clustered_refs+0x699/0x6d7
[<c10d239f>] ? btrfs_mark_buffer_dirty+0xa3/0xef
[<c1101454>] ? btrfs_find_ref_cluster+0xf9/0x13a
[<c10c89bc>] ? btrfs_run_delayed_refs+0xbf/0x155
[<c10d3a73>] ? __btrfs_end_transaction+0x53/0x16c
[<c10db480>] ? btrfs_delete_inode+0x166/0x17e
[<c102280d>] ? get_parent_ip+0x8/0x19
[<c108fe5c>] ? generic_delete_inode+0x6f/0xbd
[<c108f5b3>] ? iput+0x46/0x48
[<c10893a8>] ? do_unlinkat+0xc7/0x109
[<c102280d>] ? get_parent_ip+0x8/0x19
[<c10822e3>] ? fput+0x12/0x15c
[<c10a2f30>] ? dnotify_flush+0x41/0xc2
[<c107fe85>] ? filp_close+0x4c/0x52
[<c107feed>] ? sys_close+0x62/0x9b
[<c1002550>] ? sysenter_do_call+0x12/0x26
Code: 80 4e 68 02 8d 4c 24 43 89 f8 6a 01 ff 74 24 1c ff 74 24 08 8b 54 24 38 e8
01 c2 ff ff 83 c4 0c 83 f8 00 0f 8c e1 02 00 00 74 02 <0f> 0b 8b 04 24 8b 34 24
8b 00 8b 56 20 89 44 24 08 e8 2e fa ff
EIP: [<c10c383b>] lookup_inline_extent_backref+0xf2/0x406 SS:ESP 0068:f5aa5d08
---[ end trace d97601f0b455ca72 ]---
note: rm[2358] exited with preempt_count 2
BUG: scheduling while atomic: rm/2358/0x10000003
Modules linked in: snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq
snd_seq_device snd_pcm_oss snd_mixer_oss nfs lockd nfs_acl auth_rpcgss sunrpc
sco rfcomm bnep l2cap crc16 xts gf128mul usb_storage dm_crypt dm_mod coretemp
hwmon acpi_cpufreq mperf snd_hda_codec_realtek uvcvideo iwl3945 snd_hda_intel
snd_hda_codec iwlcore videodev r8169 snd_hwdep btusb snd_pcm v4l1_compat
mac80211 snd_timer bluetooth snd mii cfg80211 soundcore sg rfkill ac i2c_i801
snd_page_alloc uhci_hcd battery [last unloaded: microcode]
Pid: 2358, comm: rm Tainted: G D 2.6.35-rc4 #32
Call Trace:
[<c12de6b3>] ? schedule+0x88/0x332
[<c10237c1>] ? __cond_resched+0xf/0x19
[<c12de9e2>] ? _cond_resched+0x12/0x18
[<c106ceec>] ? unmap_vmas+0x4e7/0x534
[<c1070c8f>] ? exit_mmap+0x64/0xa4
[<c1026089>] ? mmput+0x21/0x96
[<c102938e>] ? exit_mm+0xe7/0xf0
[<c12dfa28>] ? _raw_spin_unlock_irqrestore+0x1a/0x24
[<c103aaa1>] ? hrtimer_try_to_cancel+0x31/0x3a
[<c102a42e>] ? do_exit+0x17b/0x57d
[<c1028e78>] ? kmsg_dump+0x81/0xf9
[<c1002d06>] ? do_invalid_op+0x0/0x76
[<c1004fa0>] ? oops_end+0x72/0x75
[<c1002d6f>] ? do_invalid_op+0x69/0x76
[<c10c383b>] ? lookup_inline_extent_backref+0xf2/0x406
[<c10bdc9a>] ? generic_bin_search.clone.0+0x145/0x150
[<c10bcf30>] ? btrfs_cow_block+0x106/0x112
[<c10bdcdc>] ? bin_search+0x37/0x3d
[<c10bfe33>] ? btrfs_search_slot+0x405/0x477
[<c12e031a>] ? error_code+0x66/0x6c
[<c1002d06>] ? do_invalid_op+0x0/0x76
[<c10c383b>] ? lookup_inline_extent_backref+0xf2/0x406
[<c10ec226>] ? set_extent_dirty+0x19/0x1d
[<c10c5081>] ? __btrfs_free_extent+0xda/0x675
[<c10c88bf>] ? run_clustered_refs+0x699/0x6d7
[<c10d239f>] ? btrfs_mark_buffer_dirty+0xa3/0xef
[<c1101454>] ? btrfs_find_ref_cluster+0xf9/0x13a
[<c10c89bc>] ? btrfs_run_delayed_refs+0xbf/0x155
[<c10d3a73>] ? __btrfs_end_transaction+0x53/0x16c
[<c10db480>] ? btrfs_delete_inode+0x166/0x17e
[<c102280d>] ? get_parent_ip+0x8/0x19
[<c108fe5c>] ? generic_delete_inode+0x6f/0xbd
[<c108f5b3>] ? iput+0x46/0x48
[<c10893a8>] ? do_unlinkat+0xc7/0x109
[<c102280d>] ? get_parent_ip+0x8/0x19
[<c10822e3>] ? fput+0x12/0x15c
[<c10a2f30>] ? dnotify_flush+0x41/0xc2
[<c107fe85>] ? filp_close+0x4c/0x52
[<c107feed>] ? sys_close+0x62/0x9b
[<c1002550>] ? sysenter_do_call+0x12/0x26
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Chris Mason on
Neither Yan nor I have been able to reproduce this locally, but a few
people have now hit it. Johannes, are you available to try out a
debugging kernel to try and track this down?

-chris

On Thu, Jul 08, 2010 at 04:27:23PM +0200, Johannes Hirte wrote:
> When doing a 'rm -r /var/tmp/portage/sys-devel' I get the following Oops:
>
> ------------[ cut here ]------------
> kernel BUG at fs/btrfs/extent-tree.c:1353!
> invalid opcode: 0000 [#1] PREEMPT SMP
> last sysfs file:
> /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0/charge_full
> Modules linked in: snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq
> snd_seq_device snd_pcm_oss snd_mixer_oss nfs lockd nfs_acl auth_rpcgss sunrpc
> sco rfcomm bnep l2cap crc16 xts gf128mul usb_storage dm_crypt dm_mod coretemp
> hwmon acpi_cpufreq mperf snd_hda_codec_realtek uvcvideo iwl3945 snd_hda_intel
> snd_hda_codec iwlcore videodev r8169 snd_hwdep btusb snd_pcm v4l1_compat
> mac80211 snd_timer bluetooth snd mii cfg80211 soundcore sg rfkill ac i2c_i801
> snd_page_alloc uhci_hcd battery [last unloaded: microcode]
>
> Pid: 2358, comm: rm Not tainted 2.6.35-rc4 #32 M912/M912
> EIP: 0060:[<c10c383b>] EFLAGS: 00010202 CPU: 1
> EIP is at lookup_inline_extent_backref+0xf2/0x406
> EAX: 00000001 EBX: 00000007 ECX: 00000000 EDX: 00000000
> ESI: 00000004 EDI: f7268150 EBP: 00000004 ESP: f5aa5d08
> DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
> Process rm (pid: 2358, ti=f5aa4000 task=f6f0fa70 task.ti=f5aa4000)
> Stack:
> f702f8c0 f744e080 f665f380 000000b0 00000000 00000000 ffffffff f6c80f00
> <0> f744e080 c10ec226 e98acfff f6c98000 00001001 0e987000 00000004 00000000
> <0> 00000850 040e9870 a8000000 00001000 00000000 00000007 00000000 0e987000
> Call Trace:
> [<c10ec226>] ? set_extent_dirty+0x19/0x1d
> [<c10c5081>] ? __btrfs_free_extent+0xda/0x675
> [<c10c88bf>] ? run_clustered_refs+0x699/0x6d7
> [<c10d239f>] ? btrfs_mark_buffer_dirty+0xa3/0xef
> [<c1101454>] ? btrfs_find_ref_cluster+0xf9/0x13a
> [<c10c89bc>] ? btrfs_run_delayed_refs+0xbf/0x155
> [<c10d3a73>] ? __btrfs_end_transaction+0x53/0x16c
> [<c10db480>] ? btrfs_delete_inode+0x166/0x17e
> [<c102280d>] ? get_parent_ip+0x8/0x19
> [<c108fe5c>] ? generic_delete_inode+0x6f/0xbd
> [<c108f5b3>] ? iput+0x46/0x48
> [<c10893a8>] ? do_unlinkat+0xc7/0x109
> [<c102280d>] ? get_parent_ip+0x8/0x19
> [<c10822e3>] ? fput+0x12/0x15c
> [<c10a2f30>] ? dnotify_flush+0x41/0xc2
> [<c107fe85>] ? filp_close+0x4c/0x52
> [<c107feed>] ? sys_close+0x62/0x9b
> [<c1002550>] ? sysenter_do_call+0x12/0x26
> Code: 80 4e 68 02 8d 4c 24 43 89 f8 6a 01 ff 74 24 1c ff 74 24 08 8b 54 24 38 e8
> 01 c2 ff ff 83 c4 0c 83 f8 00 0f 8c e1 02 00 00 74 02 <0f> 0b 8b 04 24 8b 34 24
> 8b 00 8b 56 20 89 44 24 08 e8 2e fa ff
> EIP: [<c10c383b>] lookup_inline_extent_backref+0xf2/0x406 SS:ESP 0068:f5aa5d08
> ---[ end trace d97601f0b455ca72 ]---
> note: rm[2358] exited with preempt_count 2
> BUG: scheduling while atomic: rm/2358/0x10000003
> Modules linked in: snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq
> snd_seq_device snd_pcm_oss snd_mixer_oss nfs lockd nfs_acl auth_rpcgss sunrpc
> sco rfcomm bnep l2cap crc16 xts gf128mul usb_storage dm_crypt dm_mod coretemp
> hwmon acpi_cpufreq mperf snd_hda_codec_realtek uvcvideo iwl3945 snd_hda_intel
> snd_hda_codec iwlcore videodev r8169 snd_hwdep btusb snd_pcm v4l1_compat
> mac80211 snd_timer bluetooth snd mii cfg80211 soundcore sg rfkill ac i2c_i801
> snd_page_alloc uhci_hcd battery [last unloaded: microcode]
> Pid: 2358, comm: rm Tainted: G D 2.6.35-rc4 #32
> Call Trace:
> [<c12de6b3>] ? schedule+0x88/0x332
> [<c10237c1>] ? __cond_resched+0xf/0x19
> [<c12de9e2>] ? _cond_resched+0x12/0x18
> [<c106ceec>] ? unmap_vmas+0x4e7/0x534
> [<c1070c8f>] ? exit_mmap+0x64/0xa4
> [<c1026089>] ? mmput+0x21/0x96
> [<c102938e>] ? exit_mm+0xe7/0xf0
> [<c12dfa28>] ? _raw_spin_unlock_irqrestore+0x1a/0x24
> [<c103aaa1>] ? hrtimer_try_to_cancel+0x31/0x3a
> [<c102a42e>] ? do_exit+0x17b/0x57d
> [<c1028e78>] ? kmsg_dump+0x81/0xf9
> [<c1002d06>] ? do_invalid_op+0x0/0x76
> [<c1004fa0>] ? oops_end+0x72/0x75
> [<c1002d6f>] ? do_invalid_op+0x69/0x76
> [<c10c383b>] ? lookup_inline_extent_backref+0xf2/0x406
> [<c10bdc9a>] ? generic_bin_search.clone.0+0x145/0x150
> [<c10bcf30>] ? btrfs_cow_block+0x106/0x112
> [<c10bdcdc>] ? bin_search+0x37/0x3d
> [<c10bfe33>] ? btrfs_search_slot+0x405/0x477
> [<c12e031a>] ? error_code+0x66/0x6c
> [<c1002d06>] ? do_invalid_op+0x0/0x76
> [<c10c383b>] ? lookup_inline_extent_backref+0xf2/0x406
> [<c10ec226>] ? set_extent_dirty+0x19/0x1d
> [<c10c5081>] ? __btrfs_free_extent+0xda/0x675
> [<c10c88bf>] ? run_clustered_refs+0x699/0x6d7
> [<c10d239f>] ? btrfs_mark_buffer_dirty+0xa3/0xef
> [<c1101454>] ? btrfs_find_ref_cluster+0xf9/0x13a
> [<c10c89bc>] ? btrfs_run_delayed_refs+0xbf/0x155
> [<c10d3a73>] ? __btrfs_end_transaction+0x53/0x16c
> [<c10db480>] ? btrfs_delete_inode+0x166/0x17e
> [<c102280d>] ? get_parent_ip+0x8/0x19
> [<c108fe5c>] ? generic_delete_inode+0x6f/0xbd
> [<c108f5b3>] ? iput+0x46/0x48
> [<c10893a8>] ? do_unlinkat+0xc7/0x109
> [<c102280d>] ? get_parent_ip+0x8/0x19
> [<c10822e3>] ? fput+0x12/0x15c
> [<c10a2f30>] ? dnotify_flush+0x41/0xc2
> [<c107fe85>] ? filp_close+0x4c/0x52
> [<c107feed>] ? sys_close+0x62/0x9b
> [<c1002550>] ? sysenter_do_call+0x12/0x26
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Johannes Hirte on
Am Donnerstag 08 Juli 2010, 16:31:09 schrieb Chris Mason:
> Neither Yan nor I have been able to reproduce this locally, but a few
> people have now hit it. Johannes, are you available to try out a
> debugging kernel to try and track this down?

Sure, just tell me what to do. Is it enough to recompile the kernel with debug
options enabled or are special debug patches necessary?

regards,
Johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Johannes Hirte on
It's getting worse. The /home partition is now affected too. I get the Oops on
simple unmounting the fs. btrfsck gives me this output on this fs:

btrfsck /dev/mapper/sdb3
leaf 123780497408 items 49 free space 271 generation 62207 owner 2
fs uuid 7f013285-88d8-452f-a139-7d44bffd14b6
chunk uuid 365526c9-e209-46a1-8963-3157306d9e05
item 0 key (123780108288 EXTENT_ITEM 4096) itemoff 3944 itemsize 51
extent refs 1 gen 45309 flags 2
tree block key (836797 6c 0) level 1
tree block backref root 5
item 1 key (123780112384 EXTENT_ITEM 4096) itemoff 3893 itemsize 51
extent refs 1 gen 45309 flags 2
tree block key (836955 c 416051) level 0
tree block backref root 5
item 2 key (123780116480 EXTENT_ITEM 4096) itemoff 3842 itemsize 51
extent refs 1 gen 24599 flags 2
tree block key (18446744073709551606 80 122869407744) level 0
tree block backref root 7
item 3 key (123780120576 EXTENT_ITEM 4096) itemoff 3791 itemsize 51
extent refs 1 gen 49958 flags 2
tree block key (979249 1 0) level 0
tree block backref root 5
item 4 key (123780124672 EXTENT_ITEM 4096) itemoff 3740 itemsize 51
extent refs 1 gen 62191 flags 2
tree block key (1220 1 0) level 0
tree block backref root 5
item 5 key (123780128768 EXTENT_ITEM 4096) itemoff 3689 itemsize 51
extent refs 1 gen 54817 flags 2
tree block key (1001168 c 455590) level 0
tree block backref root 5
item 6 key (123780132864 EXTENT_ITEM 4096) itemoff 3638 itemsize 51
extent refs 1 gen 62201 flags 2
tree block key (28712 1 0) level 1
tree block backref root 5
item 7 key (123780136960 EXTENT_ITEM 4096) itemoff 3587 itemsize 51
extent refs 1 gen 62191 flags 2
tree block key (34645 c 33037) level 0
tree block backref root 5
item 8 key (123780141056 EXTENT_ITEM 4096) itemoff 3536 itemsize 51
extent refs 1 gen 50007 flags 2
tree block key (31007 60 4044) level 0
tree block backref root 5
item 9 key (123780145152 EXTENT_ITEM 4096) itemoff 3485 itemsize 51
extent refs 1 gen 62202 flags 2
tree block key (123644329984 a8 4096) level 0
tree block backref root 2
item 10 key (123780149248 EXTENT_ITEM 4096) itemoff 3434 itemsize 51
extent refs 1 gen 62202 flags 2
tree block key (123644854272 a8 4096) level 0
tree block backref root 2
item 11 key (123780153344 EXTENT_ITEM 4096) itemoff 3383 itemsize 51
extent refs 1 gen 62202 flags 2
tree block key (123645849600 a8 4096) level 0
tree block backref root 2
item 12 key (123780157440 EXTENT_ITEM 4096) itemoff 3332 itemsize 51
extent refs 1 gen 62207 flags 2
tree block key (123411308544 a8 4096) level 2
tree block backref root 2
item 13 key (123780161536 EXTENT_ITEM 4096) itemoff 3281 itemsize 51
extent refs 1 gen 62200 flags 2
tree block key (1325101 c 1264) level 0
tree block backref root 5
item 14 key (123780165632 EXTENT_ITEM 4096) itemoff 3230 itemsize 51
extent refs 1 gen 56401 flags 2
tree block key (59621 1 0) level 1
tree block backref root 5
item 15 key (123780169728 EXTENT_ITEM 4096) itemoff 3179 itemsize 51
extent refs 1 gen 24613 flags 2
tree block key (18446744073709551606 80 125996056576) level 0
tree block backref root 7
item 16 key (123780173824 EXTENT_ITEM 4096) itemoff 3128 itemsize 51
extent refs 1 gen 62189 flags 2
tree block key (1324334 1 0) level 0
tree block backref root 5
item 17 key (123780177920 EXTENT_ITEM 4095) itemoff 3077 itemsize 51
extent refs 1 gen 62207 flags 2
tree block key (123682791424 a8 4096) level 1
tree block backref root 2
item 18 key (123780182016 EXTENT_ITEM 4096) itemoff 3026 itemsize 51
extent refs 1 gen 62202 flags 2
tree block key (123648741376 a8 4096) level 0
tree block backref root 2
item 19 key (123780186112 EXTENT_ITEM 4096) itemoff 2975 itemsize 51
extent refs 1 gen 62201 flags 2
tree block key (28854 54 1781866506) level 0
tree block backref root 5
item 20 key (123780190208 EXTENT_ITEM 4096) itemoff 2924 itemsize 51
extent refs 1 gen 62192 flags 2
tree block key (1456 6c 3231744) level 0
tree block backref root 5
item 21 key (123780194304 EXTENT_ITEM 4096) itemoff 2873 itemsize 51
extent refs 1 gen 62189 flags 2
tree block key (123646390272 a8 4096) level 0
tree block backref root 2
item 22 key (123780198400 EXTENT_ITEM 4096) itemoff 2822 itemsize 51
extent refs 1 gen 58732 flags 2
tree block key (145006825472 a8 8192) level 0
tree block backref root 2
item 23 key (123780202496 EXTENT_ITEM 4096) itemoff 2771 itemsize 51
extent refs 1 gen 62191 flags 2
tree block key (123656515584 a8 4096) level 0
tree block backref root 2
item 24 key (123780206592 EXTENT_ITEM 4096) itemoff 2720 itemsize 51
extent refs 1 gen 59061 flags 2
tree block key (34873 1 0) level 0
tree block backref root 5
item 25 key (123780210688 EXTENT_ITEM 4096) itemoff 2669 itemsize 51
extent refs 1 gen 62207 flags 2
tree block key (123778146304 a8 4096) level 0
tree block backref root 2
item 26 key (123780214784 EXTENT_ITEM 4096) itemoff 2618 itemsize 51
extent refs 1 gen 62201 flags 2
tree block key (28848 c 2786) level 0
tree block backref root 5
item 27 key (123780218880 EXTENT_ITEM 4096) itemoff 2567 itemsize 51
extent refs 1 gen 62189 flags 2
tree block key (123657785344 a8 4096) level 0
tree block backref root 2
item 28 key (123780222976 EXTENT_ITEM 4096) itemoff 2516 itemsize 51
extent refs 1 gen 62201 flags 2
tree block key (133719777280 a8 4096) level 1
tree block backref root 2
item 29 key (123780227072 EXTENT_ITEM 4096) itemoff 2465 itemsize 51
extent refs 1 gen 62189 flags 2
tree block key (123659431936 a8 4096) level 0
tree block backref root 2
item 30 key (123780231168 EXTENT_ITEM 4096) itemoff 2414 itemsize 51
extent refs 1 gen 62202 flags 2
tree block key (123658563584 a8 4096) level 1
tree block backref root 2
item 31 key (123780235264 EXTENT_ITEM 4096) itemoff 2363 itemsize 51
extent refs 1 gen 46988 flags 2
tree block key (34911 6c 282624) level 0
tree block backref root 5
item 32 key (123780239360 EXTENT_ITEM 4096) itemoff 2312 itemsize 51
extent refs 1 gen 58714 flags 2
tree block key (63797821440 a8 4096) level 0
tree block backref root 2
item 33 key (123780243456 EXTENT_ITEM 4096) itemoff 2261 itemsize 51
extent refs 1 gen 62201 flags 2
tree block key (133728186368 a8 4096) level 0
tree block backref root 2
item 34 key (123780247552 EXTENT_ITEM 4096) itemoff 2210 itemsize 51
extent refs 1 gen 56401 flags 2
tree block key (59654 60 7) level 0
tree block backref root 5
item 35 key (123780251648 EXTENT_ITEM 4096) itemoff 2159 itemsize 51
extent refs 1 gen 62207 flags 2
tree block key (123778404352 a8 4096) level 0
tree block backref root 2
item 36 key (123780255744 EXTENT_ITEM 4096) itemoff 2108 itemsize 51
extent refs 1 gen 62202 flags 2
tree block key (123659759616 a8 4096) level 0
tree block backref root 2
item 37 key (123780259840 EXTENT_ITEM 4096) itemoff 2057 itemsize 51
extent refs 1 gen 62204 flags 2
tree block key (145014075392 a8 12288) level 0
tree block backref root 2
item 38 key (123780263936 EXTENT_ITEM 4096) itemoff 2006 itemsize 51
extent refs 1 gen 62193 flags 2
tree block key (145016651776 a8 8192) level 0
tree block backref root 2
item 39 key (123780268032 EXTENT_ITEM 4096) itemoff 1955 itemsize 51
extent refs 1 gen 62207 flags 2
tree block key (123778617344 a8 4096) level 0
tree block backref root 2
item 40 key (123780272128 EXTENT_ITEM 4096) itemoff 1904 itemsize 51
extent refs 1 gen 59985 flags 2
tree block key (18446744073709551606 80 62746009600) level 0
tree block backref root 7
item 41 key (123780276224 EXTENT_ITEM 4096) itemoff 1853 itemsize 51
extent refs 1 gen 62202 flags 2
tree block key (123660300288 a8 4096) level 0
tree block backref root 2
item 42 key (123780280320 EXTENT_ITEM 4096) itemoff 1802 itemsize 51
extent refs 1 gen 22901 flags 2
tree block key (66305400832 a8 4096) level 0
tree block backref root 2
item 43 key (123780284416 EXTENT_ITEM 4096) itemoff 1751 itemsize 51
extent refs 1 gen 62207 flags 2
tree block key (123778818048 a8 4096) level 0
tree block backref root 2
item 44 key (123780288512 EXTENT_ITEM 4096) itemoff 1700 itemsize 51
extent refs 1 gen 51582 flags 2
tree block key (455590 54 3842052003) level 0
tree block backref root 5
item 45 key (123780292608 EXTENT_ITEM 4096) itemoff 1649 itemsize 51
extent refs 1 gen 62200 flags 2
tree block key (1283 54 2984231802) level 0
tree block backref root 5
item 46 key (123780296704 EXTENT_ITEM 4096) itemoff 1598 itemsize 51
extent refs 1 gen 56398 flags 2
tree block key (54879 c 54735) level 0
tree block backref root 5
item 47 key (123780300800 EXTENT_ITEM 4096) itemoff 1547 itemsize 51
extent refs 1 gen 62201 flags 2
tree block key (2786 54 1989163538) level 1
tree block backref root 5
item 48 key (123780304896 EXTENT_ITEM 4096) itemoff 1496 itemsize 51
extent refs 1 gen 59040 flags 2
tree block key (123812081664 a8 4096) level 0
tree block backref root 2
failed to find block number 123780177920
Aborted

Mounting the fs read-only an reading the content works fine so far.

I've three systems running with btrfs, a dual Opteron (252), a Pentium 4
system and a netbook with N270 Atom. The netbook is the only one that shows
the errors. It's also the only system where I'm using gcc-4.5. Perhaps it's
related, but I doubt it's the only reason as I'm using gcc-4.5 since May.


regards,
Johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Johannes Hirte on
Am Sonntag 11 Juli 2010, 14:28:09 schrieb Johannes Hirte:
....
> I've three systems running with btrfs, a dual Opteron (252), a Pentium 4
> system and a netbook with N270 Atom. The netbook is the only one that shows
> the errors. It's also the only system where I'm using gcc-4.5. Perhaps it's
> related, but I doubt it's the only reason as I'm using gcc-4.5 since May.

On the Opteron system I got now csum errors. I've synced some data from the
netbook to the Opteron yesteray. After hitting ENOSPC with 4GB free, I've run
'btrfs-vol -b' on this fs in hope to get some more free space. It worked but
the command failed and I found in dmesg:

btrfs csum failed ino 339 off 935280640 csum 337776576 private 337776575
btrfs csum failed ino 339 off 935280640 csum 337776576 private 337776575
btrfs csum failed ino 339 off 935280640 csum 337776576 private 337776575
btrfs csum failed ino 339 off 935280640 csum 337776576 private 337776575

So I've tested the new synced data by syncing them to another disk on the
Optoern system (XFS). As I've expected (or better feared), some data wasn't
readable and I found more csum errors in dmesg:

btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1849137 off 368640 csum 3354885689 private 3354885688
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1912210 off 5095424 csum 847944548 private 847944547
btrfs csum failed ino 1959333 off 252362752 csum 686735346 private 686735345
btrfs csum failed ino 1959333 off 252362752 csum 686735346 private 686735345
btrfs csum failed ino 1959333 off 252362752 csum 686735346 private 686735345
btrfs csum failed ino 1959333 off 252362752 csum 686735346 private 686735345
btrfs csum failed ino 1959333 off 252362752 csum 686735346 private 686735345
btrfs csum failed ino 1959333 off 252362752 csum 686735346 private 686735345
btrfs csum failed ino 1959333 off 651108352 csum 2851505977 private 2851505976
btrfs csum failed ino 1959333 off 651108352 csum 2851505977 private 2851505976
btrfs csum failed ino 1959333 off 651108352 csum 2851505977 private 2851505976
btrfs csum failed ino 1959333 off 651108352 csum 2851505977 private 2851505976
btrfs csum failed ino 1959333 off 651108352 csum 2851505977 private 2851505976
btrfs csum failed ino 1959333 off 651108352 csum 2851505977 private 2851505976
btrfs csum failed ino 1959333 off 898342912 csum 4271223884 private 4271223883
btrfs csum failed ino 1959333 off 898342912 csum 4271223884 private 4271223883
btrfs csum failed ino 1959333 off 898342912 csum 4271223884 private 4271223883
btrfs csum failed ino 1959333 off 898342912 csum 4271223884 private 4271223883
btrfs csum failed ino 1959333 off 898342912 csum 4271223884 private 4271223883
btrfs csum failed ino 1959333 off 898342912 csum 4271223884 private 4271223883

I suspect something goes horribly wrong on writing to disc within btrfs. On
the netbook I got missing blocks, on the Opteron System bad csums. Both
systems are running linux-2.6.35-rc4, the netbook with gcc-4.5.0 the Opteron
system with gcc-4.4.4. I'll test the P4 system later, if there are similar
errors too.

regards,
Johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/