All of lore.kernel.org
 help / color / mirror / Atom feed
* btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872
@ 2016-08-24 22:19 Robert Munteanu
  2016-08-25  2:32 ` Duncan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Robert Munteanu @ 2016-08-24 22:19 UTC (permalink / raw)
  To: Btrfs BTRFS

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

Hi,

Using Kernel 4.7.1 ( openSUSE Tumbleweed x86_64 ), btrfsprogs 4.7 I
always get a hard lockup when trying to mount my btrfs root partition.

This may be due to some previous errors which only manifested
themselves now, as it's been converted from an ext4 partition.

Using mount -o ro works. Using mount -o recovery or mounting without
arguments does not. I've managed to capture one of the error messages,
but via screenshot only. I've transcribed some of it below, more at

  http://i.imgur.com/OSIddHE.jpg

BTRFS info (device sda1): disk space caching is enabled
BTRFS info (device sda1): detected SSD devices, enabling SSD mode
BTRFS info (device sda1): checking UUID tree
BTRFS info (device sda1): continuing balance
BTRFS info (device sda1): relocating block group 1047892328448 flags 1
BTRFS info (device sda1): found 805 extents
(...)
kernel BUG at ../fs/btrfs/extent-tree.c:1872
invalid opcode: 0000 [#1] PREEMPT SMP
(...)
Workqueue: btrfs-extent-refs btrfs_extent_refs_helper [btrfs]
(...)
Call Trace:
 [...] remove_extent_backref
 [...] __btrfs_free_extent_isra
 [...] __btrfs_run_delayed
 [...] delayed_ref_async_start
 [...] btrfs_scrubparity_helper
 [...] process_one_work
 [...] worked_thread
 [...] kthread
 [...] ret_from_fork
DWARF2 unwinder stuck at ret_from_fork

For reference, I've attached the output of

- btrfsck /dev/sda1
- btrfsck --repair /dev/sda1
- btrfsck --repair /dev/sda1 (2nd execution)

I've included two executions in repair mode to show that nothing of
interest changes between the two.

My way out is simply transferring the data out ( mount -o ro works )
and creating a new partition, but it would be interesting to fix it,
and if there's any information I can offer to help prepare a bug fix
please let me know.

Thanks,

Robert

-- 
http://robert.muntea.nu/

[-- Attachment #2: btrfsck.out --]
[-- Type: application/octet-stream, Size: 341 bytes --]

Checking filesystem on /dev/sda1
UUID: 54dea125-74cd-4bb2-86a2-f7bc645b76cf
found 194953592845 bytes used err is 0
total csum bytes: 185735760
total tree bytes: 4298801152
total fs tree bytes: 3928309760
total extent tree bytes: 144261120
btree space waste bytes: 801786863
file data blocks allocated: 1455292370944
 referenced 324826996736

[-- Attachment #3: btrfsck_repair.out --]
[-- Type: application/octet-stream, Size: 434 bytes --]

enabling repair mode
Checking filesystem on /dev/sda1
UUID: 54dea125-74cd-4bb2-86a2-f7bc645b76cf
cache and super generation don't match, space cache will be invalidated
found 194953576461 bytes used err is 0
total csum bytes: 185735760
total tree bytes: 4298784768
total fs tree bytes: 3928309760
total extent tree bytes: 144244736
btree space waste bytes: 801769889
file data blocks allocated: 1455292370944
 referenced 324826996736

[-- Attachment #4: btrfsck_repair_2.out --]
[-- Type: application/octet-stream, Size: 434 bytes --]

enabling repair mode
Checking filesystem on /dev/sda1
UUID: 54dea125-74cd-4bb2-86a2-f7bc645b76cf
cache and super generation don't match, space cache will be invalidated
found 194956742669 bytes used err is 0
total csum bytes: 185735760
total tree bytes: 4298784768
total fs tree bytes: 3928309760
total extent tree bytes: 144244736
btree space waste bytes: 801769740
file data blocks allocated: 1455292370944
 referenced 324826996736

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

* Re: btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872
  2016-08-24 22:19 btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872 Robert Munteanu
@ 2016-08-25  2:32 ` Duncan
  2016-08-25  6:29 ` Robert Munteanu
  2016-08-25 20:06 ` Robert Munteanu
  2 siblings, 0 replies; 5+ messages in thread
From: Duncan @ 2016-08-25  2:32 UTC (permalink / raw)
  To: linux-btrfs

Robert Munteanu posted on Thu, 25 Aug 2016 01:19:27 +0300 as excerpted:

> Using Kernel 4.7.1 ( openSUSE Tumbleweed x86_64 ), btrfsprogs 4.7 I
> always get a hard lockup when trying to mount my btrfs root partition.
> 
> This may be due to some previous errors which only manifested themselves
> now, as it's been converted from an ext4 partition.
> 
> Using mount -o ro works. Using mount -o recovery or mounting without
> arguments does not. I've managed to capture one of the error messages,
> but via screenshot only. I've transcribed some of it below, more at
> 
>   http://i.imgur.com/OSIddHE.jpg
> 
> BTRFS info (device sda1): disk space caching is enabled
> BTRFS info (device sda1): detected SSD devices, enabling SSD mode
> BTRFS info (device sda1): checking UUID tree
> BTRFS info (device sda1): continuing balance
> BTRFS info (device sda1): relocating block group 1047892328448 flags 1
> BTRFS info (device sda1): found 805 extents
> (...)
> kernel BUG at ../fs/btrfs/extent-tree.c:1872
> invalid opcode: 0000 [#1] PREEMPT SMP
> (...)

I'm just a btrfs user and list regular, and won't attempt to deal with 
the real problem, but this might help, and the results should help pin 
down the problem a bit better as well, so...

So it's trying to restart a balance.

What happens if you try mounting with the skip_balance mount option?  
Will that let you mount writable without immediate crashing?

If that lets you mount, you can then btrfs balance cancel to cancel it 
entirely, so you won't have to skip_balance every time.

Of course that doesn't fix the real problem, but if it's the balance 
that's triggering the lockup, that should avoid that and hopefully let 
you run more or less normally, altho if you try to access whatever file 
or metadata the balance is choking on, you'd still be in trouble.  And 
the results should pin down whether it's the balance, or something else, 
triggering the problem.

Beyond that I'll leave for the real experts.


-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


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

* Re: btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872
  2016-08-24 22:19 btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872 Robert Munteanu
  2016-08-25  2:32 ` Duncan
@ 2016-08-25  6:29 ` Robert Munteanu
  2016-08-25 20:06 ` Robert Munteanu
  2 siblings, 0 replies; 5+ messages in thread
From: Robert Munteanu @ 2016-08-25  6:29 UTC (permalink / raw)
  To: Btrfs BTRFS

(Replying to myself as I'm not subscribed and can't reply to Duncan's message)

Hi Duncan,

Good catch, mounting with -o skip_balance does allow me to mount the
disk properly.

Scrubbing the partition once mounted results in 0 errors.

I'm still going to keep this untouched for further investigation.

Thanks,

Robert


-- 
http://robert.muntea.nu/

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

* Re: btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872
  2016-08-24 22:19 btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872 Robert Munteanu
  2016-08-25  2:32 ` Duncan
  2016-08-25  6:29 ` Robert Munteanu
@ 2016-08-25 20:06 ` Robert Munteanu
  2016-10-19 17:24   ` Dāvis Mosāns
  2 siblings, 1 reply; 5+ messages in thread
From: Robert Munteanu @ 2016-08-25 20:06 UTC (permalink / raw)
  To: Btrfs BTRFS

On Thu, Aug 25, 2016 at 1:19 AM, Robert Munteanu
<robert.munteanu@gmail.com> wrote:
> I've managed to capture one of the error messages,
> but via screenshot only.


And here's the full output below, via netconsole

[ 2806.245627] BTRFS error (device sda1): Duplicate entries in free
space cache, dumping
[ 2806.277699] ------------[ cut here ]------------
[ 2806.277733] kernel BUG at ../fs/btrfs/extent-tree.c:1872!
[ 2806.277748] invalid opcode: 0000 [#1] PREEMPT SMP
[ 2806.277759] Modules linked in: netconsole configfs af_packet
nf_log_ipv6 xt_pkttype nf_log_ipv4 nf_log_common xt_LOG xt_limit
ip6t_REJECT nf_reject_ipv6 xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6
ip6table_raw ipt_REJECT nf_reject_ipv4 iptable_raw xt_CT
iptable_filter btrfs snd_hda_codec_hdmi ip6table_mangle
nf_conntrack_ipv4 nf_defrag_ipv4 snd_hda_codec_realtek xor ip_tables
snd_hda_codec_generic intel_rapl snd_hda_intel xt_conntrack
snd_hda_codec nf_conntrack x86_pkg_temp_thermal
i2c_designware_platform raid1 snd_hda_core intel_powerclamp 8250_dw
i2c_designware_core snd_hwdep md_mod joydev raid6_pq coretemp snd_pcm
idma64 hci_uart virt_dma firewire_ohci iTCO_wdt kvm_intel snd_timer
snd ip6table_filter btbcm firewire_core iTCO_vendor_support btqca
intel_lpss_pci kvm acpi_als btintel ip6_tables irqbypass bluetooth
pinctrl_sunrisepoint rfkill intel_lpss_acpi mei_me intel_lpss mfd_core
battery mei shpchp pinctrl_intel x_tables kfifo_buf serio_raw
industrialio soundcore i2c_i801 pcspkr acpi_pad thermal fan tpm_tis
tpm ppdev efivarfs overlay sg st udf crc_itu_t fuse squashfs loop
virtio_blk virtio_ring virtio dm_mod brd hid_logitech_hidpp
hid_logitech_dj hid_generic usbhid uas usb_storage crct10dif_pclmul
crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64
lrw gf128mul glue_helper ablk_helper cryptd r8169 mii nouveau sr_mod
cdrom mxm_wmi i2c_algo_bit ttm xhci_pci drm_kms_helper syscopyarea
xhci_hcd sysfillrect sysimgblt fb_sys_fops usbcore usb_common drm
i2c_hid parport_pc parport wmi video button fjes jitterentropy_rng
drbg ansi_cprng
[ 2806.278828] CPU: 0 PID: 7974 Comm: kworker/u8:1 Tainted: G        W
 O    4.7.1-1-default #1
[ 2806.278843] Hardware name: MSI MS-7971/H170A PC MATE (MS-7971),
BIOS B.80 07/27/2016
[ 2806.278905] Workqueue: btrfs-extent-refs btrfs_extent_refs_helper [btrfs]
[ 2806.278988] task: ffff88045da280c0 ti: ffff88044ba4c000 task.ti:
ffff88044ba4c000
[ 2806.279002] RIP: 0010:[<ffffffffa09802a3>]  [<ffffffffa09802a3>]
update_inline_extent_backref+0x2a3/0x2b0 [btrfs]
[ 2806.279052] RSP: 0018:ffff88044ba4fb40  EFLAGS: 00010293
[ 2806.279063] RAX: 0000000000000005 RBX: 0000000000003ac7 RCX: 0000000000000002
[ 2806.279076] RDX: ffff880000000000 RSI: 0000000000003af8 RDI: ffff88042a123158
[ 2806.279089] RBP: ffff88042a123158 R08: 0000000000004000 R09: 0000000000000000
[ 2806.279102] R10: 0000000000003ae0 R11: 0000000000000003 R12: 00000000fffffffb
[ 2806.279115] R13: ffff880429f4ec40 R14: 0000000000003adf R15: 00000000000000b2
[ 2806.279129] FS:  0000000000000000(0000) GS:ffff88046ec00000(0000)
knlGS:0000000000000000
[ 2806.279144] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2806.279156] CR2: 00007fc300010000 CR3: 0000000001e06000 CR4: 00000000003406f0
[ 2806.279169] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2806.279182] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2806.279194] Stack:
[ 2806.279202]  fffffffffffffffb ffff880436696800 ffff88044ba4fc0c
0000000000003ae0
[ 2806.279231]  000000c61a90e000 0000000000000000 ffff880436696800
000000000000000c
[ 2806.279259]  000000000000001d ffff880429f4ec40 ffffffffa098212a
ffffffffa09842b2
[ 2806.279287] Call Trace:
[ 2806.279354]  [<ffffffffa098212a>] remove_extent_backref+0x3a/0x60 [btrfs]
[ 2806.279469]  [<ffffffffa09842b2>]
__btrfs_free_extent.isra.70+0x712/0xd10 [btrfs]
[ 2806.279519]  [<ffffffffa09883fb>]
__btrfs_run_delayed_refs+0x51b/0x1270 [btrfs]
[ 2806.279568]  [<ffffffffa098bff5>] btrfs_run_delayed_refs+0x95/0x2c0 [btrfs]
[ 2806.279615]  [<ffffffffa098c2a9>] delayed_ref_async_start+0x89/0xa0 [btrfs]
[ 2806.279676]  [<ffffffffa09d42c2>] btrfs_scrubparity_helper+0xd2/0x350 [btrfs]
[ 2806.279702]  [<ffffffff810950ed>] process_one_work+0x1ed/0x4e0
[ 2806.279722]  [<ffffffff81095427>] worker_thread+0x47/0x4c0
[ 2806.279738]  [<ffffffff8109affd>] kthread+0xbd/0xe0
[ 2806.279754]  [<ffffffff816bb71f>] ret_from_fork+0x1f/0x40
[ 2806.283579] DWARF2 unwinder stuck at ret_from_fork+0x1f/0x40
[ 2806.283591]
[ 2806.283598] Leftover inexact backtrace:
[ 2806.283598]
[ 2806.283615]  [<ffffffff8109af40>] ? kthread_worker_fn+0x170/0x170
[ 2806.283627] Code: ff ff ff 41 bf 0d 00 00 00 41 bc 0d 00 00 00 e9
98 fe ff ff 0f 0b e8 f0 ce 09 00 44 89 e0 f7 d8 48 98 48 39 c1 0f 83
52 ff ff ff <0f> 0b 90 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 41
57 41
[ 2806.284036] RIP  [<ffffffffa09802a3>]
update_inline_extent_backref+0x2a3/0x2b0 [btrfs]
[ 2806.284082]  RSP <ffff88044ba4fb40>
[ 2806.287843] ---[ end trace 20d31075ee702942 ]---
[ 2806.287855] note: kworker/u8:1[7974] exited with preempt_count 2
[ 2806.287895] BUG: unable to handle kernel paging request at ffffffffffffffd8
[ 2806.287922] IP: [<ffffffff8109b4bc>] kthread_data+0xc/0x20
[ 2806.287941] PGD 1e09067 PUD 1e0b067 PMD 0
[ 2806.287966] Oops: 0000 [#2] PREEMPT SMP
[ 2806.287977] Modules linked in: netconsole configfs af_packet
nf_log_ipv6 xt_pkttype nf_log_ipv4 nf_log_common xt_LOG xt_limit
ip6t_REJECT nf_reject_ipv6 xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6
ip6table_raw ipt_REJECT nf_reject_ipv4 iptable_raw xt_CT
iptable_filter btrfs snd_hda_codec_hdmi ip6table_mangle
nf_conntrack_ipv4 nf_defrag_ipv4 snd_hda_codec_realtek xor ip_tables
snd_hda_codec_generic intel_rapl snd_hda_intel xt_conntrack
snd_hda_codec nf_conntrack x86_pkg_temp_thermal
i2c_designware_platform raid1 snd_hda_core intel_powerclamp 8250_dw
i2c_designware_core snd_hwdep md_mod joydev raid6_pq coretemp snd_pcm
idma64 hci_uart virt_dma firewire_ohci iTCO_wdt kvm_intel snd_timer
snd ip6table_filter btbcm firewire_core iTCO_vendor_support btqca
intel_lpss_pci kvm acpi_als btintel ip6_tables irqbypass bluetooth
pinctrl_sunrisepoint rfkill intel_lpss_acpi mei_me intel_lpss mfd_core
battery mei shpchp pinctrl_intel x_tables kfifo_buf serio_raw
industrialio soundcore i2c_i801 pcspkr acpi_pad thermal fan tpm_tis
tpm ppdev efivarfs overlay sg st udf crc_itu_t fuse squashfs loop
virtio_blk virtio_ring virtio dm_mod brd hid_logitech_hidpp
hid_logitech_dj hid_generic usbhid uas usb_storage crct10dif_pclmul
crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64
lrw gf128mul glue_helper ablk_helper cryptd r8169 mii nouveau sr_mod
cdrom mxm_wmi i2c_algo_bit ttm xhci_pci drm_kms_helper syscopyarea
xhci_hcd sysfillrect sysimgblt fb_sys_fops usbcore usb_common drm
i2c_hid parport_pc parport wmi video button fjes jitterentropy_rng
drbg ansi_cprng
[ 2806.289010] CPU: 0 PID: 7974 Comm: kworker/u8:1 Tainted: G      D W
 O    4.7.1-1-default #1
[ 2806.291886] Hardware name: MSI MS-7971/H170A PC MATE (MS-7971),
BIOS B.80 07/27/2016
[ 2806.293953] task: ffff88045da280c0 ti: ffff88044ba4c000 task.ti:
ffff88044ba4c000
[ 2806.294888] RIP: 0010:[<ffffffff8109b4bc>]  [<ffffffff8109b4bc>]
kthread_data+0xc/0x20
[ 2806.295837] RSP: 0018:ffff88044ba4f8d8  EFLAGS: 00010002
[ 2806.296781] RAX: 0000000000000000 RBX: ffff88046ec18240 RCX: 0000000000000000
[ 2806.297590] RDX: ffff88017fc06dc0 RSI: ffff88045da28140 RDI: ffff88045da280c0
[ 2806.298220] RBP: ffff88044ba4f930 R08: 00000000ffffffff R09: 0000000000000000
[ 2806.298846] R10: 0000000000000000 R11: 0000000000000000 R12: ffff88045da286d8
[ 2806.299479] R13: ffff88046ec18240 R14: ffff88045da280c0 R15: 0000000000018240
[ 2806.300103] FS:  0000000000000000(0000) GS:ffff88046ec00000(0000)
knlGS:0000000000000000
[ 2806.300728] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2806.301337] CR2: 0000000000000028 CR3: 0000000001e06000 CR4: 00000000003406f0
[ 2806.301944] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2806.302408] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2806.302836] Stack:
[ 2806.303259]  ffffffff81095dda ffffffff816b6f37 00ad000000000200
0000000000000011
[ 2806.303700]  ffff88045da280c0 ffff88017fc12d80 ffff88044ba50000
ffff88044ba4f440
[ 2806.304132]  ffffffff81a16a2f 0000000000000000 ffff88017e26e040
ffff88044ba4f948
[ 2806.304573] Call Trace:
[ 2806.305002]  [<ffffffff81095dda>] wq_worker_sleeping+0xa/0x80
[ 2806.305426]  [<ffffffff816b6f37>] thread_return+0x274/0x4dd
[ 2806.305851]  [<ffffffff816b71dc>] schedule+0x3c/0x90
[ 2806.306269]  [<ffffffff81080a77>] do_exit+0x807/0xbc0
[ 2806.306691]  [<ffffffff8102f7cc>] oops_end+0x9c/0xd0
[ 2806.307106]  [<ffffffff8102d0f0>] do_error_trap+0x70/0xd0
[ 2806.307436]  [<ffffffff816bcf2e>] invalid_op+0x1e/0x30
[ 2806.309293] DWARF2 unwinder stuck at invalid_op+0x1e/0x30
[ 2806.309622]
[ 2806.309948] Leftover inexact backtrace:
[ 2806.309948]
[ 2806.310626]  [<ffffffffa09802a3>] ?
update_inline_extent_backref+0x2a3/0x2b0 [btrfs]
[ 2806.311016]  [<ffffffffa098212a>] ? remove_extent_backref+0x3a/0x60 [btrfs]
[ 2806.311406]  [<ffffffffa09842b2>] ?
__btrfs_free_extent.isra.70+0x712/0xd10 [btrfs]
[ 2806.311801]  [<ffffffffa09883fb>] ?
__btrfs_run_delayed_refs+0x51b/0x1270 [btrfs]
[ 2806.312170]  [<ffffffff811ee06e>] ? kmem_cache_alloc+0x9e/0x570
[ 2806.312567]  [<ffffffffa098bff5>] ? btrfs_run_delayed_refs+0x95/0x2c0 [btrfs]
[ 2806.312956]  [<ffffffffa098c2a9>] ? delayed_ref_async_start+0x89/0xa0 [btrfs]
[ 2806.313351]  [<ffffffffa09d42c2>] ?
btrfs_scrubparity_helper+0xd2/0x350 [btrfs]
[ 2806.313727]  [<ffffffff810950ed>] ? process_one_work+0x1ed/0x4e0
[ 2806.314115]  [<ffffffff81095427>] ? worker_thread+0x47/0x4c0
[ 2806.314509]  [<ffffffff810953e0>] ? process_one_work+0x4e0/0x4e0
[ 2806.314967]  [<ffffffff8109affd>] ? kthread+0xbd/0xe0
[ 2806.315276]  [<ffffffff816bb71f>] ? ret_from_fork+0x1f/0x40
[ 2806.315659]  [<ffffffff8109af40>] ? kthread_worker_fn+0x170/0x170
[ 2806.316043] Code: ff ff e8 80 7b f6 ff e9 f4 fe ff ff e8 76 7b f6
ff 44 89 e0 5b 5d 41 5c c3 66 0f 1f 44 00 00 0f 1f 44 00 00 48 8b 87
b8 05 00 00 <48> 8b 40 d8 c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00
00 0f
[ 2806.316699] RIP  [<ffffffff8109b4bc>] kthread_data+0xc/0x20
[ 2806.317004]  RSP <ffff88044ba4f8d8>
[ 2806.317368] CR2: ffffffffffffffd8
[ 2806.317770] ---[ end trace 20d31075ee702943 ]---
[ 2806.317771] Fixing recursive fault but reboot is needed!
[ 2806.317772] BUG: scheduling while atomic: kworker/u8:1/7974/0x00000003
[ 2806.317774] Modules linked in: netconsole configfs af_packet
nf_log_ipv6 xt_pkttype nf_log_ipv4 nf_log_common xt_LOG xt_limit
ip6t_REJECT nf_reject_ipv6 xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6
ip6table_raw ipt_REJECT nf_reject_ipv4 iptable_raw xt_CT
iptable_filter btrfs snd_hda_codec_hdmi ip6table_mangle
nf_conntrack_ipv4 nf_defrag_ipv4 snd_hda_codec_realtek xor ip_tables
snd_hda_codec_generic intel_rapl snd_hda_intel xt_conntrack
snd_hda_codec nf_conntrack x86_pkg_temp_thermal
i2c_designware_platform raid1 snd_hda_core intel_powerclamp 8250_dw
i2c_designware_core snd_hwdep md_mod joydev raid6_pq coretemp snd_pcm
idma64 hci_uart virt_dma firewire_ohci iTCO_wdt kvm_intel snd_timer
snd ip6table_filter btbcm firewire_core iTCO_vendor_support btqca
intel_lpss_pci kvm acpi_als btintel ip6_tables irqbypass bluetooth
pinctrl_sunrisepoint rfkill intel_lpss_acpi mei_me intel_lpss mfd_core
battery mei shpchp pinctrl_intel x_tables kfifo_buf serio_raw
industrialio soundcore i2c_i801 pcspkr acpi_pad thermal fan tpm_tis
tpm ppdev efivarfs overlay sg st udf crc_itu_t fuse squashfs loop
virtio_blk virtio_ring virtio dm_mod brd hid_logitech_hidpp
hid_logitech_dj hid_generic usbhid uas usb_storage crct10dif_pclmul
crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64
lrw gf128mul glue_helper ablk_helper cryptd r8169 mii nouveau sr_mod
cdrom mxm_wmi i2c_algo_bit ttm xhci_pci drm_kms_helper syscopyarea
xhci_hcd sysfillrect sysimgblt fb_sys_fops usbcore usb_common drm
i2c_hid parport_pc parport wmi video button fjes jitterentropy_rng
drbg ansi_cprng
[ 2806.318922] CPU: 0 PID: 7974 Comm: kworker/u8:1 Tainted: G      D W
 O    4.7.1-1-default #1
[ 2806.318923] Hardware name: MSI MS-7971/H170A PC MATE (MS-7971),
BIOS B.80 07/27/2016
[ 2806.318930]  0000000000000000 ffffffff81393104 ffff88046ec18240
ffff88044ba4f6c0
[ 2806.318934]  ffffffff810a12cc ffff88044ba4f718 ffffffff816b6fdb
0000000000000046
[ 2806.319044]  ffffffff8118b419 ffff88045da280c0 ffff88044ba4f740
ffff88044ba50000
[ 2806.319047] Call Trace:
[ 2806.319053]  [<ffffffff8102ed5e>] dump_trace+0x5e/0x320
[ 2806.319057]  [<ffffffff8102f12c>] show_stack_log_lvl+0x10c/0x180
[ 2806.319060]  [<ffffffff8102fe41>] show_stack+0x21/0x40
[ 2806.319063]  [<ffffffff81393104>] dump_stack+0x5c/0x78
[ 2806.319066]  [<ffffffff810a12cc>] __schedule_bug+0x4c/0x60
[ 2806.319070]  [<ffffffff816b6fdb>] thread_return+0x318/0x4dd
[ 2806.319073]  [<ffffffff816b71dc>] schedule+0x3c/0x90
[ 2806.319076]  [<ffffffff81080c0a>] do_exit+0x99a/0xbc0
[ 2806.319079]  [<ffffffff8102f7cc>] oops_end+0x9c/0xd0
[ 2806.319082]  [<ffffffff8106473c>] no_context+0x10c/0x370
[ 2806.319085]  [<ffffffff816bd608>] page_fault+0x28/0x30
[ 2806.320182] DWARF2 unwinder stuck at page_fault+0x28/0x30
[ 2806.320241]
[ 2806.320242] Leftover inexact backtrace:
[ 2806.320242]
[ 2806.320244]  [<ffffffff8109b4bc>] ? kthread_data+0xc/0x20
[ 2806.320247]  [<ffffffff81095dda>] ? wq_worker_sleeping+0xa/0x80
[ 2806.320249]  [<ffffffff816b6f37>] ? thread_return+0x274/0x4dd
[ 2806.320252]  [<ffffffff816b71dc>] ? schedule+0x3c/0x90
[ 2806.320254]  [<ffffffff81080a77>] ? do_exit+0x807/0xbc0
[ 2806.320256]  [<ffffffff8102f7cc>] ? oops_end+0x9c/0xd0
[ 2806.320258]  [<ffffffff8102d0f0>] ? do_error_trap+0x70/0xd0
[ 2806.320268]  [<ffffffffa09802a3>] ?
update_inline_extent_backref+0x2a3/0x2b0 [btrfs]
[ 2806.320276]  [<ffffffffa097b87a>] ? btrfs_search_slot+0x97a/0xa20 [btrfs]
[ 2806.320278]  [<ffffffff816bcf2e>] ? invalid_op+0x1e/0x30
[ 2806.320286]  [<ffffffffa09802a3>] ?
update_inline_extent_backref+0x2a3/0x2b0 [btrfs]
[ 2806.320295]  [<ffffffffa098212a>] ? remove_extent_backref+0x3a/0x60 [btrfs]
[ 2806.320303]  [<ffffffffa09842b2>] ?
__btrfs_free_extent.isra.70+0x712/0xd10 [btrfs]
[ 2806.320311]  [<ffffffffa09883fb>] ?
__btrfs_run_delayed_refs+0x51b/0x1270 [btrfs]
[ 2806.320314]  [<ffffffff811ee06e>] ? kmem_cache_alloc+0x9e/0x570
[ 2806.320323]  [<ffffffffa098bff5>] ? btrfs_run_delayed_refs+0x95/0x2c0 [btrfs]
[ 2806.320331]  [<ffffffffa098c2a9>] ? delayed_ref_async_start+0x89/0xa0 [btrfs]
[ 2806.320343]  [<ffffffffa09d42c2>] ?
btrfs_scrubparity_helper+0xd2/0x350 [btrfs]
[ 2806.320346]  [<ffffffff810950ed>] ? process_one_work+0x1ed/0x4e0
[ 2806.320348]  [<ffffffff81095427>] ? worker_thread+0x47/0x4c0
[ 2806.320350]  [<ffffffff810953e0>] ? process_one_work+0x4e0/0x4e0
[ 2806.320351]  [<ffffffff8109affd>] ? kthread+0xbd/0xe0
[ 2806.320353]  [<ffffffff816bb71f>] ? ret_from_fork+0x1f/0x40
[ 2806.320355]  [<ffffffff8109af40>] ? kthread_worker_fn+0x170/0x170
[ 2823.930151] NMI watchdog: Watchdog detected hard LOCKUP on cpu
1 dModules linked in: netconsole configfs af_packet nf_log_ipv6
xt_pkttype nf_log_ipv4 nf_log_common xt_LOG xt_limit ip6t_REJECT
nf_reject_ipv6 xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw
ipt_REJECT nf_reject_ipv4 iptable_raw xt_CT iptable_filter btrfs
snd_hda_codec_hdmi ip6table_mangle nf_conntrack_ipv4 nf_defrag_ipv4
snd_hda_codec_realtek xor ip_tables snd_hda_codec_generic intel_rapl
snd_hda_intel xt_conntrack snd_hda_codec nf_conntrack
x86_pkg_temp_thermal i2c_designware_platform raid1 snd_hda_core
intel_powerclamp 8250_dw i2c_designware_core snd_hwdep md_mod joydev
raid6_pq coretemp snd_pcm idma64 hci_uart virt_dma firewire_ohci
iTCO_wdt kvm_intel snd_timer snd ip6table_filter btbcm firewire_core
iTCO_vendor_support btqca intel_lpss_pci kvm acpi_als btintel
ip6_tables irqbypass bluetooth pinctrl_sunrisepoint rfkill
intel_lpss_acpi mei_me intel_lpss mfd_core battery mei shpchp
pinctrl_intel x_tables kfifo_buf[ 2823.930151] CPU: 1 PID: 0 Comm:
swapper/1 Tainted: G      D W  O    4.7.1-1-default #1
[ 2823.930152] Hardware name: MSI MS-7971/H170A PC MATE (MS-7971),
BIOS B.80 07/27/2016
[ 2823.930152] task: ffff88017dcc4040 ti: ffff88017dcc8000 task.ti:
ffff88017dcc8000
[ 2823.930152] RIP: 0010:[<ffffffff81579c4a>]  [<ffffffff81579c4a>]
cpuidle_enter_state+0x11a/0x2e0
[ 2823.930152] RSP: 0018:ffff88017dccbeb8  EFLAGS: 00000246
[ 2823.930152] RAX: 0000000000000000 RBX: 0000000000000006 RCX: 000000000000001f
[ 2823.930153] RDX: 0000000000000000 RSI: ffff88046ec95918 RDI: 0000000000000000
[ 2823.930153] RBP: ffffe8ffffc8b7d0 R08: cccccccccccccccd R09: 0000000000000008
[ 2823.930153] R10: 0000000000000ed3 R11: 0000000000000ed4 R12: ffffffff81eb2578
[ 2823.930153] R13: 0000000000000006 R14: 0000000000000006 R15: 0000028dd070d3c3
[ 2823.930154] FS:  0000000000000000(0000) GS:ffff88046ec80000(0000)
knlGS:0000000000000000
[ 2823.930154] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2823.930154] CR2: 00007fc30000a000 CR3: 0000000001e06000 CR4: 00000000003406e0
[ 2823.930154] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2823.930154] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2823.930155] Stack:
[ 2823.930155]  0000028dd033df61 0000000000000000 ffff88017dccc000
ffffe8ffffc8b7d0
[ 2823.930155]  ffffffff81f1b480 ffff88017dcc8000 0000000000000000
ffffffff81eb2320
[ 2823.930155]  ffffffff810be06e ffff88017dcc8000 80645f44d0bc5d52
0000000000000000
[ 2823.930155] Call Trace:
[ 2823.930156]  [<ffffffff810be06e>] cpu_startup_entry+0x2be/0x380
[ 2823.930156]  [<ffffffff8104d5b8>] start_secondary+0x148/0x170
[ 2823.930156] Code: a9 7e 89 c3 e8 b8 0d b3 ff 49 89 c7 0f 1f 44 00
00 31 ff e8 89 40 b4 ff 8b 44 24 0c 85 c0 0f 85 4e 01 00 00 fb 66 0f
1f 44 00 00 <4c> 2b 3c 24 48 ba cf f7 53 e3 a5 9b c4 20 4c 89 f8 49 c1
ff 3f
[ 2823.930156] Kernel panic - not syncing: Hard LOCKUP
[ 2824.983144] Shutting down cpus with NMI
[ 2824.983145] Kernel Offset: disabled

Note that mounting with -o skip_balance works for 10-15 minutes, after
that I still get a lockup.

Robert


-- 
http://robert.muntea.nu/

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

* Re: btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872
  2016-08-25 20:06 ` Robert Munteanu
@ 2016-10-19 17:24   ` Dāvis Mosāns
  0 siblings, 0 replies; 5+ messages in thread
From: Dāvis Mosāns @ 2016-10-19 17:24 UTC (permalink / raw)
  Cc: Btrfs BTRFS

Happens for me too with 4.8.2

[ 1002.265296] BTRFS info (device vdb): disk space caching is enabled
[ 1002.265299] BTRFS info (device vdb): has skinny extents
[ 1002.952569] BTRFS info (device vdb): continuing balance
[ 1003.079696] BTRFS info (device vdb): relocating block group
655951396864 flags 17
[ 1004.028703] BTRFS info (device vdb): found 105 extents
[ 1004.956861] ------------[ cut here ]------------
[ 1004.956910] kernel BUG at fs/btrfs/extent-tree.c:1868!
[ 1004.956946] invalid opcode: 0000 [#1] PREEMPT SMP
[ 1004.956978] Modules linked in: mousedev nls_iso8859_1 nls_cp437
vfat fat kvm_amd kvm irqbypass crct10dif_pclmul crc32_pclmul
ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul input_leds
snd_intel8x0 evdev glue_helper led_class ablk_helper ppdev cryptd
mac_hid snd_ac97_codec ac97_bus psmouse snd_pcm acpi_cpufreq snd_timer
parport_pc tpm_tis tpm_tis_core snd intel_agp tpm pcspkr button
qemu_fw_cfg parport intel_gtt i2c_piix4 soundcore sch_fq_codel
ip_tables x_tables btrfs xor sd_modraid6_pq virtio_gpu drm_kms_helper
syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm virtio_net
virtio_console virtio_blk virtio_balloon xhci_pci xhci_hcd serio_raw
ahci atkbd usbcore libps2 libahci i8042 ata_generic virtio_pci
pata_acpi ata_piix virtio_ring usb_common floppy serio libata
crc32c_intel virtio scsi_mod
[ 1004.957638] CPU: 5 PID: 143 Comm: kworker/u12:6 Tainted: G        W
      4.8.2-1-ARCH #1
[ 1004.957690] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 0.0.0 02/06/2015
[ 1004.957767] Workqueue: btrfs-extent-refs btrfs_extent_refs_helper [btrfs]
[ 1004.957812] task: ffff880233e40e40 task.stack: ffff880233e48000
[ 1004.957851] RIP: 0010:[<ffffffffa027a35b>]  [<ffffffffa027a35b>]
update_inline_extent_backref+0x2ab/0x2b0 [btrfs]
[ 1004.957930] RSP: 0018:ffff880233e4bac8  EFLAGS: 00010293
[ 1004.957965] RAX: 0000000000000005 RBX: 00000000000025f0 RCX: 0000000000000002
[ 1004.958010] RDX: ffff880000000000 RSI: 0000000000002621 RDI: 0000000000000000
[ 1004.958055] RBP: ffff880233e4bb18 R08: 0000000000004000 R09: 0000000000000000
[ 1004.958100] R10: 0000000000002609 R11: 0000000000000002 R12: ffff88022acee348
[ 1004.958145] R13: 00000000fffffffb R14: ffff880233638540 R15: 00000000000000b2
[ 1004.958194] FS:  0000000000000000(0000) GS:ffff88023fd40000(0000)
knlGS:0000000000000000
[ 1004.958246] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1004.958283] CR2: 00007f42b0906120 CR3: 0000000233db1000 CR4: 00000000000406e0
[ 1004.958331] Stack:
[ 1004.958348]  0000000000002609 ffff880233e4bbbc ffff88022d3b9000
fffffffffffffffb
[ 1004.958406]  0000000000002608 ffff88022d3b9000 0000000000000000
ffff88023295ee60
[ 1004.958463]  ffff880233638540 000000000000007f ffff880233e4bb30
ffffffffa027ac8f
[ 1004.958519] Call Trace:
[ 1004.958553]  [<ffffffffa027ac8f>] remove_extent_backref+0x3f/0x80 [btrfs]
[ 1004.958610]  [<ffffffffa027be78>]
__btrfs_free_extent.isra.33+0x6c8/0xca0 [btrfs]
[ 1004.958674]  [<ffffffffa02803b0>]
__btrfs_run_delayed_refs+0x5b0/0x12e0 [btrfs]
[ 1004.958727]  [<ffffffff811e3150>] ? kmem_cache_free+0x1e0/0x210
[ 1004.958769]  [<ffffffff810c7306>] ? cpuacct_charge+0x86/0xa0
[ 1004.958821]  [<ffffffffa02841a1>] btrfs_run_delayed_refs+0xa1/0x2a0 [btrfs]
[ 1004.958879]  [<ffffffffa0284434>] delayed_ref_async_start+0x94/0xb0 [btrfs]
[ 1004.958939]  [<ffffffffa02d037d>] btrfs_scrubparity_helper+0x7d/0x340 [btrfs]
[ 1004.959007]  [<ffffffffa02d067e>] btrfs_extent_refs_helper+0xe/0x10 [btrfs]
[ 1004.959059]  [<ffffffff81095ef5>] process_one_work+0x1e5/0x470
[ 1004.959104]  [<ffffffff810961c8>] worker_thread+0x48/0x4e0
[ 1004.959148]  [<ffffffff81096180>] ? process_one_work+0x470/0x470
[ 1004.959194]  [<ffffffff8109be38>] kthread+0xd8/0xf0
[ 1004.959233]  [<ffffffff8102c782>] ? __switch_to+0x2d2/0x630
[ 1004.960132]  [<ffffffff815f7eff>] ret_from_fork+0x1f/0x40
[ 1004.960132]  [<ffffffff8109bd60>] ? kthread_worker_fn+0x170/0x170
[ 1004.960132] Code: b0 e9 6b ff ff ff 41 bf 0d 00 00 00 41 bd 0d 00
00 00 e9 8f fe ff ff 0f 0b 0f 0b 44 89 e8 f7 d8 48 98 48 39 c1 0f 83
4f ff ff ff <0f> 0b 0f 1f 00 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41
55 41
[ 1004.960132] RIP  [<ffffffffa027a35b>]
update_inline_extent_backref+0x2ab/0x2b0 [btrfs]
[ 1004.960132]  RSP <ffff880233e4bac8>
[ 1004.977825] ---[ end trace 8696bc20b65a0f77 ]---
[ 1004.979754] note: kworker/u12:6[143] exited with preempt_count 2



Label: 'RAID1'  uuid: 247e6249-6de1-45cb-9dd0-fa8a654234bf
        Total devices 2 FS bytes used 360.15GiB
        devid    1 size 2.73TiB used 363.03GiB path /dev/vdb
        devid    2 size 2.73TiB used 363.03GiB path /dev/vda

Overall:
    Device size:                   5.46TiB
    Device allocated:            726.06GiB
    Device unallocated:            4.75TiB
    Device missing:                  0.00B
    Used:                        720.30GiB
    Free (estimated):              2.38TiB      (min: 2.38TiB)
    Data ratio:                       2.00
    Metadata ratio:                   2.00
    Global reserve:              512.00MiB      (used: 0.00B)

Data,RAID1: Size:360.00GiB, Used:358.52GiB
   /dev/vda      360.00GiB
   /dev/vdb      360.00GiB

Metadata,RAID1: Size:3.00GiB, Used:1.63GiB
   /dev/vda        3.00GiB
   /dev/vdb        3.00GiB

System,RAID1: Size:32.00MiB, Used:80.00KiB
   /dev/vda       32.00MiB
   /dev/vdb       32.00MiB

Unallocated:
   /dev/vda        2.37TiB
   /dev/vdb        2.37TiB

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

end of thread, other threads:[~2016-10-19 17:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-24 22:19 btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872 Robert Munteanu
2016-08-25  2:32 ` Duncan
2016-08-25  6:29 ` Robert Munteanu
2016-08-25 20:06 ` Robert Munteanu
2016-10-19 17:24   ` Dāvis Mosāns

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.