[Kernel-packages] [Bug 1890951] Re: btrfs not writable when mounted without "skip_balance"

2020-08-31 Thread Johannes Rohr
today's kernel update seems to have fixed it, as expected.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1890951

Title:
  btrfs not writable when mounted without "skip_balance"

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Yesterday, I upgraded to Ubuntu 20.04, since  when there is a problem
  with the btrfs volume it is installed on. The system hung when
  launching a btrfs balance and on next boot, it hung indefinitely, when
  trying to created the volatile files and dirs.

  Booting from a Debian buster rescue system, I noticed that I was
  unable to create or delete any files and I noticed the following in
  dmesg:

  [Sun Aug  9 12:21:35 2020] [ cut here ]
  [Sun Aug  9 12:21:35 2020] kernel BUG at fs/btrfs/relocation.c:2626!
  [Sun Aug  9 12:21:35 2020] invalid opcode:  [#1] SMP PTI
  [Sun Aug  9 12:21:35 2020] CPU: 1 PID: 4537 Comm: btrfs-balance Tainted: G
   O  5.4.47 #1
  [Sun Aug  9 12:21:35 2020] Hardware name: FUJITSU D3401-H1/D3401-H1, BIOS 
V5.0.0.11 R1.14.0 for D3401-H1x06/09/2016
  [Sun Aug  9 12:21:35 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:35 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45
  [Sun Aug  9 12:21:35 2020] RSP: 0018:8887e0b0bb20 EFLAGS: 00010246
  [Sun Aug  9 12:21:35 2020] RAX: 8887dfab5280 RBX:  RCX: 

  [Sun Aug  9 12:21:35 2020] RDX: 8887e0b0bb24 RSI: 8887e0b0bc10 RDI: 
8887dfab52c0
  [Sun Aug  9 12:21:35 2020] RBP: 8887dfab5280 R08: 8887dfab52c0 R09: 
a0491e7e
  [Sun Aug  9 12:21:35 2020] R10: 8887f4ba7e70 R11: 090ed158 R12: 
8887dfab5280
  [Sun Aug  9 12:21:35 2020] R13: 8887fd330800 R14: 8887e0b0bc10 R15: 
8887e7fa66e8
  [Sun Aug  9 12:21:35 2020] FS:  () 
GS:0e24() knlGS:
  [Sun Aug  9 12:21:35 2020] CS:  0010 DS:  ES:  CR0: 80050033
  [Sun Aug  9 12:21:35 2020] CR2: 55b4d5b7cfe0 CR3: 0200a004 CR4: 
003606e0
  [Sun Aug  9 12:21:35 2020] DR0:  DR1:  DR2: 

  [Sun Aug  9 12:21:35 2020] DR3:  DR6: fffe0ff0 DR7: 
0400
  [Sun Aug  9 12:21:35 2020] Call Trace:
  [Sun Aug  9 12:21:35 2020]  do_relocation+0xb6/0x4c2 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? 
calcu_metadata_size.isra.36.constprop.42+0x9e/0xc4 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? do_raw_spin_lock+0x2f/0x5a
  [Sun Aug  9 12:21:35 2020]  ? btrfs_block_rsv_refill+0x4b/0x8b [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_tree_blocks+0x301/0x427 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? tree_insert+0x49/0x4e [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? add_tree_block.isra.38+0x11e/0x144 [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_block_group+0x279/0x49e [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_block_group+0x15e/0x23d [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_chunk+0x25/0x8c [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_balance+0xaf0/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? btrfs_balance+0xd45/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  balance_kthread+0x32/0x46 [btrfs]
  [Sun Aug  9 12:21:35 2020]  kthread+0xf5/0xfa
  [Sun Aug  9 12:21:35 2020]  ? kthread_associate_blkcg+0x86/0x86
  [Sun Aug  9 12:21:35 2020]  ret_from_fork+0x3a/0x50
  [Sun Aug  9 12:21:35 2020] Modules linked in: btrfs xor zstd_decompress 
zstd_compress lzo_compress lzo_decompress zlib_deflate raid6_pq libcrc32c 
sd_mod ipmi_devintf ipmi_msghandler sg x86_pkg_temp_thermal intel_powerclamp 
kvm_intel kvm irqbypass crc32_pclmul crc32c_intel iTCO_wdt ghash_clmulni_intel 
aesni_intel crypto_simd psmouse ahci cryptd libahci i2c_i801 serio_raw 
glue_helper intel_pch_thermal evdev video thermal acpi_pad button fan jc42 
ftsteutates nct6775 hwmon_vid coretemp ip_tables x_tables autofs4 e1000e
  [Sun Aug  9 12:21:36 2020] ---[ end trace 442b443de6cecc6e ]---
  [Sun Aug  9 12:21:36 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:36 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45

  So this is obviously a btrfs bug that got introduced by the newer btrfs code 
in the newer kernel, although, booting an older kernel didn't fix it. 
Apparently something about the fs is messed up now and no balance can be run. 
The only temporary remedy I found was to add the skip_balance mount option to 
/etc/fstab, but of course, this is a crutch, and when you can't run balance, 
then the fs is bound to run out of space at some 

[Kernel-packages] [Bug 1890951] Re: btrfs not writable when mounted without "skip_balance"

2020-08-10 Thread Lukas Tribus
Also see:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1889669

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1890951

Title:
  btrfs not writable when mounted without "skip_balance"

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Yesterday, I upgraded to Ubuntu 20.04, since  when there is a problem
  with the btrfs volume it is installed on. The system hung when
  launching a btrfs balance and on next boot, it hung indefinitely, when
  trying to created the volatile files and dirs.

  Booting from a Debian buster rescue system, I noticed that I was
  unable to create or delete any files and I noticed the following in
  dmesg:

  [Sun Aug  9 12:21:35 2020] [ cut here ]
  [Sun Aug  9 12:21:35 2020] kernel BUG at fs/btrfs/relocation.c:2626!
  [Sun Aug  9 12:21:35 2020] invalid opcode:  [#1] SMP PTI
  [Sun Aug  9 12:21:35 2020] CPU: 1 PID: 4537 Comm: btrfs-balance Tainted: G
   O  5.4.47 #1
  [Sun Aug  9 12:21:35 2020] Hardware name: FUJITSU D3401-H1/D3401-H1, BIOS 
V5.0.0.11 R1.14.0 for D3401-H1x06/09/2016
  [Sun Aug  9 12:21:35 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:35 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45
  [Sun Aug  9 12:21:35 2020] RSP: 0018:8887e0b0bb20 EFLAGS: 00010246
  [Sun Aug  9 12:21:35 2020] RAX: 8887dfab5280 RBX:  RCX: 

  [Sun Aug  9 12:21:35 2020] RDX: 8887e0b0bb24 RSI: 8887e0b0bc10 RDI: 
8887dfab52c0
  [Sun Aug  9 12:21:35 2020] RBP: 8887dfab5280 R08: 8887dfab52c0 R09: 
a0491e7e
  [Sun Aug  9 12:21:35 2020] R10: 8887f4ba7e70 R11: 090ed158 R12: 
8887dfab5280
  [Sun Aug  9 12:21:35 2020] R13: 8887fd330800 R14: 8887e0b0bc10 R15: 
8887e7fa66e8
  [Sun Aug  9 12:21:35 2020] FS:  () 
GS:0e24() knlGS:
  [Sun Aug  9 12:21:35 2020] CS:  0010 DS:  ES:  CR0: 80050033
  [Sun Aug  9 12:21:35 2020] CR2: 55b4d5b7cfe0 CR3: 0200a004 CR4: 
003606e0
  [Sun Aug  9 12:21:35 2020] DR0:  DR1:  DR2: 

  [Sun Aug  9 12:21:35 2020] DR3:  DR6: fffe0ff0 DR7: 
0400
  [Sun Aug  9 12:21:35 2020] Call Trace:
  [Sun Aug  9 12:21:35 2020]  do_relocation+0xb6/0x4c2 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? 
calcu_metadata_size.isra.36.constprop.42+0x9e/0xc4 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? do_raw_spin_lock+0x2f/0x5a
  [Sun Aug  9 12:21:35 2020]  ? btrfs_block_rsv_refill+0x4b/0x8b [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_tree_blocks+0x301/0x427 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? tree_insert+0x49/0x4e [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? add_tree_block.isra.38+0x11e/0x144 [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_block_group+0x279/0x49e [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_block_group+0x15e/0x23d [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_chunk+0x25/0x8c [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_balance+0xaf0/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? btrfs_balance+0xd45/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  balance_kthread+0x32/0x46 [btrfs]
  [Sun Aug  9 12:21:35 2020]  kthread+0xf5/0xfa
  [Sun Aug  9 12:21:35 2020]  ? kthread_associate_blkcg+0x86/0x86
  [Sun Aug  9 12:21:35 2020]  ret_from_fork+0x3a/0x50
  [Sun Aug  9 12:21:35 2020] Modules linked in: btrfs xor zstd_decompress 
zstd_compress lzo_compress lzo_decompress zlib_deflate raid6_pq libcrc32c 
sd_mod ipmi_devintf ipmi_msghandler sg x86_pkg_temp_thermal intel_powerclamp 
kvm_intel kvm irqbypass crc32_pclmul crc32c_intel iTCO_wdt ghash_clmulni_intel 
aesni_intel crypto_simd psmouse ahci cryptd libahci i2c_i801 serio_raw 
glue_helper intel_pch_thermal evdev video thermal acpi_pad button fan jc42 
ftsteutates nct6775 hwmon_vid coretemp ip_tables x_tables autofs4 e1000e
  [Sun Aug  9 12:21:36 2020] ---[ end trace 442b443de6cecc6e ]---
  [Sun Aug  9 12:21:36 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:36 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45

  So this is obviously a btrfs bug that got introduced by the newer btrfs code 
in the newer kernel, although, booting an older kernel didn't fix it. 
Apparently something about the fs is messed up now and no balance can be run. 
The only temporary remedy I found was to add the skip_balance mount option to 
/etc/fstab, but of course, this is a crutch, and when you can't run balance, 
then the fs is bound to run out of space 

[Kernel-packages] [Bug 1890951] Re: btrfs not writable when mounted without "skip_balance"

2020-08-10 Thread Johannes Rohr
** No longer affects: linux

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1890951

Title:
  btrfs not writable when mounted without "skip_balance"

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Yesterday, I upgraded to Ubuntu 20.04, since  when there is a problem
  with the btrfs volume it is installed on. The system hung when
  launching a btrfs balance and on next boot, it hung indefinitely, when
  trying to created the volatile files and dirs.

  Booting from a Debian buster rescue system, I noticed that I was
  unable to create or delete any files and I noticed the following in
  dmesg:

  [Sun Aug  9 12:21:35 2020] [ cut here ]
  [Sun Aug  9 12:21:35 2020] kernel BUG at fs/btrfs/relocation.c:2626!
  [Sun Aug  9 12:21:35 2020] invalid opcode:  [#1] SMP PTI
  [Sun Aug  9 12:21:35 2020] CPU: 1 PID: 4537 Comm: btrfs-balance Tainted: G
   O  5.4.47 #1
  [Sun Aug  9 12:21:35 2020] Hardware name: FUJITSU D3401-H1/D3401-H1, BIOS 
V5.0.0.11 R1.14.0 for D3401-H1x06/09/2016
  [Sun Aug  9 12:21:35 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:35 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45
  [Sun Aug  9 12:21:35 2020] RSP: 0018:8887e0b0bb20 EFLAGS: 00010246
  [Sun Aug  9 12:21:35 2020] RAX: 8887dfab5280 RBX:  RCX: 

  [Sun Aug  9 12:21:35 2020] RDX: 8887e0b0bb24 RSI: 8887e0b0bc10 RDI: 
8887dfab52c0
  [Sun Aug  9 12:21:35 2020] RBP: 8887dfab5280 R08: 8887dfab52c0 R09: 
a0491e7e
  [Sun Aug  9 12:21:35 2020] R10: 8887f4ba7e70 R11: 090ed158 R12: 
8887dfab5280
  [Sun Aug  9 12:21:35 2020] R13: 8887fd330800 R14: 8887e0b0bc10 R15: 
8887e7fa66e8
  [Sun Aug  9 12:21:35 2020] FS:  () 
GS:0e24() knlGS:
  [Sun Aug  9 12:21:35 2020] CS:  0010 DS:  ES:  CR0: 80050033
  [Sun Aug  9 12:21:35 2020] CR2: 55b4d5b7cfe0 CR3: 0200a004 CR4: 
003606e0
  [Sun Aug  9 12:21:35 2020] DR0:  DR1:  DR2: 

  [Sun Aug  9 12:21:35 2020] DR3:  DR6: fffe0ff0 DR7: 
0400
  [Sun Aug  9 12:21:35 2020] Call Trace:
  [Sun Aug  9 12:21:35 2020]  do_relocation+0xb6/0x4c2 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? 
calcu_metadata_size.isra.36.constprop.42+0x9e/0xc4 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? do_raw_spin_lock+0x2f/0x5a
  [Sun Aug  9 12:21:35 2020]  ? btrfs_block_rsv_refill+0x4b/0x8b [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_tree_blocks+0x301/0x427 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? tree_insert+0x49/0x4e [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? add_tree_block.isra.38+0x11e/0x144 [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_block_group+0x279/0x49e [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_block_group+0x15e/0x23d [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_chunk+0x25/0x8c [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_balance+0xaf0/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? btrfs_balance+0xd45/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  balance_kthread+0x32/0x46 [btrfs]
  [Sun Aug  9 12:21:35 2020]  kthread+0xf5/0xfa
  [Sun Aug  9 12:21:35 2020]  ? kthread_associate_blkcg+0x86/0x86
  [Sun Aug  9 12:21:35 2020]  ret_from_fork+0x3a/0x50
  [Sun Aug  9 12:21:35 2020] Modules linked in: btrfs xor zstd_decompress 
zstd_compress lzo_compress lzo_decompress zlib_deflate raid6_pq libcrc32c 
sd_mod ipmi_devintf ipmi_msghandler sg x86_pkg_temp_thermal intel_powerclamp 
kvm_intel kvm irqbypass crc32_pclmul crc32c_intel iTCO_wdt ghash_clmulni_intel 
aesni_intel crypto_simd psmouse ahci cryptd libahci i2c_i801 serio_raw 
glue_helper intel_pch_thermal evdev video thermal acpi_pad button fan jc42 
ftsteutates nct6775 hwmon_vid coretemp ip_tables x_tables autofs4 e1000e
  [Sun Aug  9 12:21:36 2020] ---[ end trace 442b443de6cecc6e ]---
  [Sun Aug  9 12:21:36 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:36 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45

  So this is obviously a btrfs bug that got introduced by the newer btrfs code 
in the newer kernel, although, booting an older kernel didn't fix it. 
Apparently something about the fs is messed up now and no balance can be run. 
The only temporary remedy I found was to add the skip_balance mount option to 
/etc/fstab, but of course, this is a crutch, and when you can't run balance, 
then the fs is bound to run out of space at some point.
  --- 
  ProblemType: Bug
  

[Kernel-packages] [Bug 1890951] Re: btrfs not writable when mounted without "skip_balance"

2020-08-10 Thread Johannes Rohr
apparently fixed in kernel 5.4.56 
https://lore.kernel.org/linux-btrfs/8a3370fd-7cda-78d2-b036-8350c5a3e...@gmx.com/T/#r52f03985dd7982c8f92c8a65089583f01c62020b
 
Will it become available for Ubuntu?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1890951

Title:
  btrfs not writable when mounted without "skip_balance"

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Yesterday, I upgraded to Ubuntu 20.04, since  when there is a problem
  with the btrfs volume it is installed on. The system hung when
  launching a btrfs balance and on next boot, it hung indefinitely, when
  trying to created the volatile files and dirs.

  Booting from a Debian buster rescue system, I noticed that I was
  unable to create or delete any files and I noticed the following in
  dmesg:

  [Sun Aug  9 12:21:35 2020] [ cut here ]
  [Sun Aug  9 12:21:35 2020] kernel BUG at fs/btrfs/relocation.c:2626!
  [Sun Aug  9 12:21:35 2020] invalid opcode:  [#1] SMP PTI
  [Sun Aug  9 12:21:35 2020] CPU: 1 PID: 4537 Comm: btrfs-balance Tainted: G
   O  5.4.47 #1
  [Sun Aug  9 12:21:35 2020] Hardware name: FUJITSU D3401-H1/D3401-H1, BIOS 
V5.0.0.11 R1.14.0 for D3401-H1x06/09/2016
  [Sun Aug  9 12:21:35 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:35 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45
  [Sun Aug  9 12:21:35 2020] RSP: 0018:8887e0b0bb20 EFLAGS: 00010246
  [Sun Aug  9 12:21:35 2020] RAX: 8887dfab5280 RBX:  RCX: 

  [Sun Aug  9 12:21:35 2020] RDX: 8887e0b0bb24 RSI: 8887e0b0bc10 RDI: 
8887dfab52c0
  [Sun Aug  9 12:21:35 2020] RBP: 8887dfab5280 R08: 8887dfab52c0 R09: 
a0491e7e
  [Sun Aug  9 12:21:35 2020] R10: 8887f4ba7e70 R11: 090ed158 R12: 
8887dfab5280
  [Sun Aug  9 12:21:35 2020] R13: 8887fd330800 R14: 8887e0b0bc10 R15: 
8887e7fa66e8
  [Sun Aug  9 12:21:35 2020] FS:  () 
GS:0e24() knlGS:
  [Sun Aug  9 12:21:35 2020] CS:  0010 DS:  ES:  CR0: 80050033
  [Sun Aug  9 12:21:35 2020] CR2: 55b4d5b7cfe0 CR3: 0200a004 CR4: 
003606e0
  [Sun Aug  9 12:21:35 2020] DR0:  DR1:  DR2: 

  [Sun Aug  9 12:21:35 2020] DR3:  DR6: fffe0ff0 DR7: 
0400
  [Sun Aug  9 12:21:35 2020] Call Trace:
  [Sun Aug  9 12:21:35 2020]  do_relocation+0xb6/0x4c2 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? 
calcu_metadata_size.isra.36.constprop.42+0x9e/0xc4 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? do_raw_spin_lock+0x2f/0x5a
  [Sun Aug  9 12:21:35 2020]  ? btrfs_block_rsv_refill+0x4b/0x8b [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_tree_blocks+0x301/0x427 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? tree_insert+0x49/0x4e [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? add_tree_block.isra.38+0x11e/0x144 [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_block_group+0x279/0x49e [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_block_group+0x15e/0x23d [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_chunk+0x25/0x8c [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_balance+0xaf0/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? btrfs_balance+0xd45/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  balance_kthread+0x32/0x46 [btrfs]
  [Sun Aug  9 12:21:35 2020]  kthread+0xf5/0xfa
  [Sun Aug  9 12:21:35 2020]  ? kthread_associate_blkcg+0x86/0x86
  [Sun Aug  9 12:21:35 2020]  ret_from_fork+0x3a/0x50
  [Sun Aug  9 12:21:35 2020] Modules linked in: btrfs xor zstd_decompress 
zstd_compress lzo_compress lzo_decompress zlib_deflate raid6_pq libcrc32c 
sd_mod ipmi_devintf ipmi_msghandler sg x86_pkg_temp_thermal intel_powerclamp 
kvm_intel kvm irqbypass crc32_pclmul crc32c_intel iTCO_wdt ghash_clmulni_intel 
aesni_intel crypto_simd psmouse ahci cryptd libahci i2c_i801 serio_raw 
glue_helper intel_pch_thermal evdev video thermal acpi_pad button fan jc42 
ftsteutates nct6775 hwmon_vid coretemp ip_tables x_tables autofs4 e1000e
  [Sun Aug  9 12:21:36 2020] ---[ end trace 442b443de6cecc6e ]---
  [Sun Aug  9 12:21:36 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:36 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45

  So this is obviously a btrfs bug that got introduced by the newer btrfs code 
in the newer kernel, although, booting an older kernel didn't fix it. 
Apparently something about the fs is messed up now and no balance can be run. 
The only temporary remedy I found was to add the skip_balance mount 

[Kernel-packages] [Bug 1890951] Re: btrfs not writable when mounted without "skip_balance"

2020-08-10 Thread Johannes Rohr
Apparently this is (probably) fixed in kernels from 5.4.54
https://lore.kernel.org/linux-btrfs/8a3370fd-7cda-
78d2-b036-8350c5a3e...@gmx.com/T/#r52f03985dd7982c8f92c8a65089583f01c62020b
so I hope it becomes available in Ubuntu soon.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1890951

Title:
  btrfs not writable when mounted without "skip_balance"

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Yesterday, I upgraded to Ubuntu 20.04, since  when there is a problem
  with the btrfs volume it is installed on. The system hung when
  launching a btrfs balance and on next boot, it hung indefinitely, when
  trying to created the volatile files and dirs.

  Booting from a Debian buster rescue system, I noticed that I was
  unable to create or delete any files and I noticed the following in
  dmesg:

  [Sun Aug  9 12:21:35 2020] [ cut here ]
  [Sun Aug  9 12:21:35 2020] kernel BUG at fs/btrfs/relocation.c:2626!
  [Sun Aug  9 12:21:35 2020] invalid opcode:  [#1] SMP PTI
  [Sun Aug  9 12:21:35 2020] CPU: 1 PID: 4537 Comm: btrfs-balance Tainted: G
   O  5.4.47 #1
  [Sun Aug  9 12:21:35 2020] Hardware name: FUJITSU D3401-H1/D3401-H1, BIOS 
V5.0.0.11 R1.14.0 for D3401-H1x06/09/2016
  [Sun Aug  9 12:21:35 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:35 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45
  [Sun Aug  9 12:21:35 2020] RSP: 0018:8887e0b0bb20 EFLAGS: 00010246
  [Sun Aug  9 12:21:35 2020] RAX: 8887dfab5280 RBX:  RCX: 

  [Sun Aug  9 12:21:35 2020] RDX: 8887e0b0bb24 RSI: 8887e0b0bc10 RDI: 
8887dfab52c0
  [Sun Aug  9 12:21:35 2020] RBP: 8887dfab5280 R08: 8887dfab52c0 R09: 
a0491e7e
  [Sun Aug  9 12:21:35 2020] R10: 8887f4ba7e70 R11: 090ed158 R12: 
8887dfab5280
  [Sun Aug  9 12:21:35 2020] R13: 8887fd330800 R14: 8887e0b0bc10 R15: 
8887e7fa66e8
  [Sun Aug  9 12:21:35 2020] FS:  () 
GS:0e24() knlGS:
  [Sun Aug  9 12:21:35 2020] CS:  0010 DS:  ES:  CR0: 80050033
  [Sun Aug  9 12:21:35 2020] CR2: 55b4d5b7cfe0 CR3: 0200a004 CR4: 
003606e0
  [Sun Aug  9 12:21:35 2020] DR0:  DR1:  DR2: 

  [Sun Aug  9 12:21:35 2020] DR3:  DR6: fffe0ff0 DR7: 
0400
  [Sun Aug  9 12:21:35 2020] Call Trace:
  [Sun Aug  9 12:21:35 2020]  do_relocation+0xb6/0x4c2 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? 
calcu_metadata_size.isra.36.constprop.42+0x9e/0xc4 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? do_raw_spin_lock+0x2f/0x5a
  [Sun Aug  9 12:21:35 2020]  ? btrfs_block_rsv_refill+0x4b/0x8b [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_tree_blocks+0x301/0x427 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? tree_insert+0x49/0x4e [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? add_tree_block.isra.38+0x11e/0x144 [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_block_group+0x279/0x49e [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_block_group+0x15e/0x23d [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_chunk+0x25/0x8c [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_balance+0xaf0/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? btrfs_balance+0xd45/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  balance_kthread+0x32/0x46 [btrfs]
  [Sun Aug  9 12:21:35 2020]  kthread+0xf5/0xfa
  [Sun Aug  9 12:21:35 2020]  ? kthread_associate_blkcg+0x86/0x86
  [Sun Aug  9 12:21:35 2020]  ret_from_fork+0x3a/0x50
  [Sun Aug  9 12:21:35 2020] Modules linked in: btrfs xor zstd_decompress 
zstd_compress lzo_compress lzo_decompress zlib_deflate raid6_pq libcrc32c 
sd_mod ipmi_devintf ipmi_msghandler sg x86_pkg_temp_thermal intel_powerclamp 
kvm_intel kvm irqbypass crc32_pclmul crc32c_intel iTCO_wdt ghash_clmulni_intel 
aesni_intel crypto_simd psmouse ahci cryptd libahci i2c_i801 serio_raw 
glue_helper intel_pch_thermal evdev video thermal acpi_pad button fan jc42 
ftsteutates nct6775 hwmon_vid coretemp ip_tables x_tables autofs4 e1000e
  [Sun Aug  9 12:21:36 2020] ---[ end trace 442b443de6cecc6e ]---
  [Sun Aug  9 12:21:36 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:36 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45

  So this is obviously a btrfs bug that got introduced by the newer btrfs code 
in the newer kernel, although, booting an older kernel didn't fix it. 
Apparently something about the fs is messed up now and no balance can be run. 
The only temporary remedy I found 

[Kernel-packages] [Bug 1890951] Re: btrfs not writable when mounted without "skip_balance"

2020-08-09 Thread Bug Watch Updater
Launchpad has imported 10 comments from the remote bug at
https://bugzilla.kernel.org/show_bug.cgi?id=203405.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2019-04-24T00:34:54+00:00 furlongm wrote:

If I mount with skip_balance, the following does not happen. But if I
try to start a balance processes go into a D state and the balance
hangs.


[  173.488407] kernel BUG at ../fs/btrfs/relocation.c:1449!
[  173.488410] invalid opcode:  [#1] SMP PTI
[  173.488414] CPU: 7 PID: 2542 Comm: btrfs-balance Tainted: G   O 
4.12.14-lp150.12.58-default #1 openSUSE Leap 15.0
[  173.488416] Hardware name: Dell Inc. OptiPlex 9020/00V62H, BIOS A24 
10/24/2018
[  173.488417] task: 8803c85f80c0 task.stack: c90002234000
[  173.488439] RIP: 0010:create_reloc_root+0x1dc/0x1f0 [btrfs]
[  173.488440] RSP: 0018:c90002237910 EFLAGS: 00010282
[  173.488442] RAX: ffef RBX: 880408c99c00 RCX: 0001
[  173.488444] RDX: 0005 RSI: 88040bdc2a80 RDI: 0286
[  173.488445] RBP: 8803dd514d98 R08: 88040b8c5a80 R09: 
[  173.488447] R10: 0002 R11: 88040bdc2a80 R12: fff7
[  173.488448] R13: 88040679c000 R14: 8803efafe800 R15: 000c4000
[  173.488450] FS:  () GS:88041ebc() 
knlGS:
[  173.488451] CS:  0010 DS:  ES:  CR0: 80050033
[  173.488453] CR2: 7f26c9915b00 CR3: 0200a006 CR4: 001606e0
[  173.488454] Call Trace:
[  173.488468]  btrfs_init_reloc_root+0x5b/0xa0 [btrfs]
[  173.488478]  record_root_in_trans+0xb7/0xf0 [btrfs]
[  173.488488]  btrfs_record_root_in_trans+0x4e/0x60 [btrfs]
[  173.488497]  start_transaction+0xa6/0x410 [btrfs]
[  173.488506]  __btrfs_prealloc_file_range+0xbb/0x460 [btrfs]
[  173.488516]  btrfs_prealloc_file_range+0x10/0x20 [btrfs]
[  173.488527]  prealloc_file_extent_cluster+0x113/0x200 [btrfs]
[  173.488537]  relocate_file_extent_cluster+0x8d/0x470 [btrfs]
[  173.488546]  ? __btrfs_end_transaction+0x1c1/0x2e0 [btrfs]
[  173.488555]  relocate_data_extent+0x5f/0xc0 [btrfs]
[  173.488564]  relocate_block_group+0x495/0x6f0 [btrfs]
[  173.488573]  btrfs_relocate_block_group+0x188/0x230 [btrfs]
[  173.488583]  btrfs_relocate_chunk+0x4a/0xf0 [btrfs]
[  173.488592]  btrfs_shrink_device+0x1c4/0x4c0 [btrfs]
[  173.488602]  __btrfs_balance+0xd4/0xbe0 [btrfs]
[  173.488611]  ? insert_balance_item.isra.33+0x9a/0x350 [btrfs]
[  173.488614]  ? printk+0x43/0x4b
[  173.488624]  ? btrfs_dev_replace_lock.part.6+0x15/0x20 [btrfs]
[  173.488634]  ? btrfs_dev_replace_lock+0x85/0x90 [btrfs]
[  173.488643]  btrfs_balance+0x2de/0x5c0 [btrfs]
[  173.488651]  ? btrfs_balance+0x5c0/0x5c0 [btrfs]
[  173.488659]  balance_kthread+0x56/0x80 [btrfs]
[  173.488662]  kthread+0x11a/0x130
[  173.488664]  ? kthread_create_on_node+0x40/0x40
[  173.488667]  ret_from_fork+0x35/0x40
[  173.488669] Code: 48 c7 83 dc 00 00 00 00 00 00 00 48 c7 83 e4 00 00 00 00 
00 00 00 c6 83 ec 00 00 00 00 c6 83 ed 00 00 00 00 e9 1b ff ff ff 0f 0b <0f> 0b 
0f 0b 0f 0b 0f 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 0f
[  173.488687] Modules linked in: usblp ccm af_packet ebtable_filter ebtables 
nf_log_ipv6 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit devlink 
nfnetlink_cthelper nfnetlink vboxpci(O) vboxnetadp(O) vboxnetflt(O) ip6t_REJECT 
nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT xt_pkttype xt_tcpudp vboxdrv(O) 
iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast 
nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack bnep nf_conntrack 
libcrc32c ip6table_filter msr ip6_tables x_tables arc4 nls_iso8859_1 nls_cp437 
vfat fat intel_rapl x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_hdmi 
snd_hda_codec_realtek snd_hda_codec_generic coretemp iwlmvm kvm_intel btusb 
mac80211 kvm btrtl snd_hda_intel btbcm irqbypass btintel iwlwifi crc32_pclmul 
ghash_clmulni_intel snd_hda_codec pcbc bluetooth
[  173.488716]  snd_hda_core dell_wmi dell_smbios ecdh_generic snd_hwdep 
aesni_intel sparse_keymap mei_wdt dcdbas aes_x86_64 crypto_simd glue_helper 
snd_pcm cryptd cfg80211 rfkill i2c_i801 pcspkr snd_timer lpc_ich wmi e1000e snd 
mei_me ptp
pps_core shpchp mei thermal soundcore button btrfs xor hid_generic usbhid 
raid6_pq sr_mod cdrom i915 crc32c_intel i2c_algo_bit xhci_pci drm_kms_helper 
syscopyarea ehci_pci sysfillrect xhci_hcd sysimgblt fb_sys_fops ehci_hcd ahci 
libahci drm usbcore drm_panel_orientation_quirks video sg dm_multipath dm_mod 
scsi_dh_rdac scsi_dh_emc scsi_dh_alua efivarfs
[  173.488750] ---[ end trace c9b049613add55d3 ]---
[  173.488765] RIP: 0010:create_reloc_root+0x1dc/0x1f0 [btrfs]
[  173.488772] RSP: 0018:c90002237910 EFLAGS: 00010282
[  173.488779] 

[Kernel-packages] [Bug 1890951] Re: btrfs not writable when mounted without "skip_balance"

2020-08-09 Thread Johannes Rohr
** Bug watch added: Linux Kernel Bug Tracker #203405
   https://bugzilla.kernel.org/show_bug.cgi?id=203405

** Also affects: linux via
   https://bugzilla.kernel.org/show_bug.cgi?id=203405
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1890951

Title:
  btrfs not writable when mounted without "skip_balance"

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Yesterday, I upgraded to Ubuntu 20.04, since  when there is a problem
  with the btrfs volume it is installed on. The system hung when
  launching a btrfs balance and on next boot, it hung indefinitely, when
  trying to created the volatile files and dirs.

  Booting from a Debian buster rescue system, I noticed that I was
  unable to create or delete any files and I noticed the following in
  dmesg:

  [Sun Aug  9 12:21:35 2020] [ cut here ]
  [Sun Aug  9 12:21:35 2020] kernel BUG at fs/btrfs/relocation.c:2626!
  [Sun Aug  9 12:21:35 2020] invalid opcode:  [#1] SMP PTI
  [Sun Aug  9 12:21:35 2020] CPU: 1 PID: 4537 Comm: btrfs-balance Tainted: G
   O  5.4.47 #1
  [Sun Aug  9 12:21:35 2020] Hardware name: FUJITSU D3401-H1/D3401-H1, BIOS 
V5.0.0.11 R1.14.0 for D3401-H1x06/09/2016
  [Sun Aug  9 12:21:35 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:35 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45
  [Sun Aug  9 12:21:35 2020] RSP: 0018:8887e0b0bb20 EFLAGS: 00010246
  [Sun Aug  9 12:21:35 2020] RAX: 8887dfab5280 RBX:  RCX: 

  [Sun Aug  9 12:21:35 2020] RDX: 8887e0b0bb24 RSI: 8887e0b0bc10 RDI: 
8887dfab52c0
  [Sun Aug  9 12:21:35 2020] RBP: 8887dfab5280 R08: 8887dfab52c0 R09: 
a0491e7e
  [Sun Aug  9 12:21:35 2020] R10: 8887f4ba7e70 R11: 090ed158 R12: 
8887dfab5280
  [Sun Aug  9 12:21:35 2020] R13: 8887fd330800 R14: 8887e0b0bc10 R15: 
8887e7fa66e8
  [Sun Aug  9 12:21:35 2020] FS:  () 
GS:0e24() knlGS:
  [Sun Aug  9 12:21:35 2020] CS:  0010 DS:  ES:  CR0: 80050033
  [Sun Aug  9 12:21:35 2020] CR2: 55b4d5b7cfe0 CR3: 0200a004 CR4: 
003606e0
  [Sun Aug  9 12:21:35 2020] DR0:  DR1:  DR2: 

  [Sun Aug  9 12:21:35 2020] DR3:  DR6: fffe0ff0 DR7: 
0400
  [Sun Aug  9 12:21:35 2020] Call Trace:
  [Sun Aug  9 12:21:35 2020]  do_relocation+0xb6/0x4c2 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? 
calcu_metadata_size.isra.36.constprop.42+0x9e/0xc4 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? do_raw_spin_lock+0x2f/0x5a
  [Sun Aug  9 12:21:35 2020]  ? btrfs_block_rsv_refill+0x4b/0x8b [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_tree_blocks+0x301/0x427 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? tree_insert+0x49/0x4e [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? add_tree_block.isra.38+0x11e/0x144 [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_block_group+0x279/0x49e [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_block_group+0x15e/0x23d [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_chunk+0x25/0x8c [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_balance+0xaf0/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? btrfs_balance+0xd45/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  balance_kthread+0x32/0x46 [btrfs]
  [Sun Aug  9 12:21:35 2020]  kthread+0xf5/0xfa
  [Sun Aug  9 12:21:35 2020]  ? kthread_associate_blkcg+0x86/0x86
  [Sun Aug  9 12:21:35 2020]  ret_from_fork+0x3a/0x50
  [Sun Aug  9 12:21:35 2020] Modules linked in: btrfs xor zstd_decompress 
zstd_compress lzo_compress lzo_decompress zlib_deflate raid6_pq libcrc32c 
sd_mod ipmi_devintf ipmi_msghandler sg x86_pkg_temp_thermal intel_powerclamp 
kvm_intel kvm irqbypass crc32_pclmul crc32c_intel iTCO_wdt ghash_clmulni_intel 
aesni_intel crypto_simd psmouse ahci cryptd libahci i2c_i801 serio_raw 
glue_helper intel_pch_thermal evdev video thermal acpi_pad button fan jc42 
ftsteutates nct6775 hwmon_vid coretemp ip_tables x_tables autofs4 e1000e
  [Sun Aug  9 12:21:36 2020] ---[ end trace 442b443de6cecc6e ]---
  [Sun Aug  9 12:21:36 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:36 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45

  So this is obviously a btrfs bug that got introduced by the newer btrfs code 
in the newer kernel, although, booting an older kernel didn't fix it. 
Apparently something about the fs is messed up now and no balance can be run. 
The 

[Kernel-packages] [Bug 1890951] Re: btrfs not writable when mounted without "skip_balance"

2020-08-09 Thread Johannes Rohr
apport information

** Changed in: linux (Ubuntu)
   Status: Incomplete => New

** Tags added: apport-collected focal

** Description changed:

  Yesterday, I upgraded to Ubuntu 20.04, since  when there is a problem
  with the btrfs volume it is installed on. The system hung when launching
  a btrfs balance and on next boot, it hung indefinitely, when trying to
  created the volatile files and dirs.
  
  Booting from a Debian buster rescue system, I noticed that I was unable
  to create or delete any files and I noticed the following in dmesg:
  
  [Sun Aug  9 12:21:35 2020] [ cut here ]
  [Sun Aug  9 12:21:35 2020] kernel BUG at fs/btrfs/relocation.c:2626!
  [Sun Aug  9 12:21:35 2020] invalid opcode:  [#1] SMP PTI
  [Sun Aug  9 12:21:35 2020] CPU: 1 PID: 4537 Comm: btrfs-balance Tainted: G
   O  5.4.47 #1
  [Sun Aug  9 12:21:35 2020] Hardware name: FUJITSU D3401-H1/D3401-H1, BIOS 
V5.0.0.11 R1.14.0 for D3401-H1x06/09/2016
  [Sun Aug  9 12:21:35 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:35 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45
  [Sun Aug  9 12:21:35 2020] RSP: 0018:8887e0b0bb20 EFLAGS: 00010246
  [Sun Aug  9 12:21:35 2020] RAX: 8887dfab5280 RBX:  RCX: 

  [Sun Aug  9 12:21:35 2020] RDX: 8887e0b0bb24 RSI: 8887e0b0bc10 RDI: 
8887dfab52c0
  [Sun Aug  9 12:21:35 2020] RBP: 8887dfab5280 R08: 8887dfab52c0 R09: 
a0491e7e
  [Sun Aug  9 12:21:35 2020] R10: 8887f4ba7e70 R11: 090ed158 R12: 
8887dfab5280
  [Sun Aug  9 12:21:35 2020] R13: 8887fd330800 R14: 8887e0b0bc10 R15: 
8887e7fa66e8
  [Sun Aug  9 12:21:35 2020] FS:  () 
GS:0e24() knlGS:
  [Sun Aug  9 12:21:35 2020] CS:  0010 DS:  ES:  CR0: 80050033
  [Sun Aug  9 12:21:35 2020] CR2: 55b4d5b7cfe0 CR3: 0200a004 CR4: 
003606e0
  [Sun Aug  9 12:21:35 2020] DR0:  DR1:  DR2: 

  [Sun Aug  9 12:21:35 2020] DR3:  DR6: fffe0ff0 DR7: 
0400
  [Sun Aug  9 12:21:35 2020] Call Trace:
  [Sun Aug  9 12:21:35 2020]  do_relocation+0xb6/0x4c2 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? 
calcu_metadata_size.isra.36.constprop.42+0x9e/0xc4 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? do_raw_spin_lock+0x2f/0x5a
  [Sun Aug  9 12:21:35 2020]  ? btrfs_block_rsv_refill+0x4b/0x8b [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_tree_blocks+0x301/0x427 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? tree_insert+0x49/0x4e [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? add_tree_block.isra.38+0x11e/0x144 [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_block_group+0x279/0x49e [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_block_group+0x15e/0x23d [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_chunk+0x25/0x8c [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_balance+0xaf0/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? btrfs_balance+0xd45/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  balance_kthread+0x32/0x46 [btrfs]
  [Sun Aug  9 12:21:35 2020]  kthread+0xf5/0xfa
  [Sun Aug  9 12:21:35 2020]  ? kthread_associate_blkcg+0x86/0x86
  [Sun Aug  9 12:21:35 2020]  ret_from_fork+0x3a/0x50
  [Sun Aug  9 12:21:35 2020] Modules linked in: btrfs xor zstd_decompress 
zstd_compress lzo_compress lzo_decompress zlib_deflate raid6_pq libcrc32c 
sd_mod ipmi_devintf ipmi_msghandler sg x86_pkg_temp_thermal intel_powerclamp 
kvm_intel kvm irqbypass crc32_pclmul crc32c_intel iTCO_wdt ghash_clmulni_intel 
aesni_intel crypto_simd psmouse ahci cryptd libahci i2c_i801 serio_raw 
glue_helper intel_pch_thermal evdev video thermal acpi_pad button fan jc42 
ftsteutates nct6775 hwmon_vid coretemp ip_tables x_tables autofs4 e1000e
  [Sun Aug  9 12:21:36 2020] ---[ end trace 442b443de6cecc6e ]---
  [Sun Aug  9 12:21:36 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:36 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45
  
- So this is obviously a btrfs bug that got introduced by the newer btrfs
- code in the newer kernel, although, booting an older kernel didn't fix
- it. Apparently something about the fs is messed up now and no balance
- can be run. The only temporary remedy I found was to add the
- skip_balance mount option to /etc/fstab, but of course, this is a
- crutch, and when you can't run balance, then the fs is bound to run out
- of space at some point.
+ So this is obviously a btrfs bug that got introduced by the newer btrfs code 
in the newer kernel, although, booting an older kernel didn't fix it. 
Apparently something about the fs is 

[Kernel-packages] [Bug 1890951] Re: btrfs not writable when mounted without "skip_balance"

2020-08-09 Thread Johannes Rohr
Unfortunately, producing the logs apart from the backtrace above isn't
really possible. As soon as I reproduce the bug, the FS becomes
unwritable, so that no logs can be obtained. That's a catch22

** Changed in: linux (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1890951

Title:
  btrfs not writable when mounted without "skip_balance"

Status in linux package in Ubuntu:
  New

Bug description:
  Yesterday, I upgraded to Ubuntu 20.04, since  when there is a problem
  with the btrfs volume it is installed on. The system hung when
  launching a btrfs balance and on next boot, it hung indefinitely, when
  trying to created the volatile files and dirs.

  Booting from a Debian buster rescue system, I noticed that I was
  unable to create or delete any files and I noticed the following in
  dmesg:

  [Sun Aug  9 12:21:35 2020] [ cut here ]
  [Sun Aug  9 12:21:35 2020] kernel BUG at fs/btrfs/relocation.c:2626!
  [Sun Aug  9 12:21:35 2020] invalid opcode:  [#1] SMP PTI
  [Sun Aug  9 12:21:35 2020] CPU: 1 PID: 4537 Comm: btrfs-balance Tainted: G
   O  5.4.47 #1
  [Sun Aug  9 12:21:35 2020] Hardware name: FUJITSU D3401-H1/D3401-H1, BIOS 
V5.0.0.11 R1.14.0 for D3401-H1x06/09/2016
  [Sun Aug  9 12:21:35 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:35 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45
  [Sun Aug  9 12:21:35 2020] RSP: 0018:8887e0b0bb20 EFLAGS: 00010246
  [Sun Aug  9 12:21:35 2020] RAX: 8887dfab5280 RBX:  RCX: 

  [Sun Aug  9 12:21:35 2020] RDX: 8887e0b0bb24 RSI: 8887e0b0bc10 RDI: 
8887dfab52c0
  [Sun Aug  9 12:21:35 2020] RBP: 8887dfab5280 R08: 8887dfab52c0 R09: 
a0491e7e
  [Sun Aug  9 12:21:35 2020] R10: 8887f4ba7e70 R11: 090ed158 R12: 
8887dfab5280
  [Sun Aug  9 12:21:35 2020] R13: 8887fd330800 R14: 8887e0b0bc10 R15: 
8887e7fa66e8
  [Sun Aug  9 12:21:35 2020] FS:  () 
GS:0e24() knlGS:
  [Sun Aug  9 12:21:35 2020] CS:  0010 DS:  ES:  CR0: 80050033
  [Sun Aug  9 12:21:35 2020] CR2: 55b4d5b7cfe0 CR3: 0200a004 CR4: 
003606e0
  [Sun Aug  9 12:21:35 2020] DR0:  DR1:  DR2: 

  [Sun Aug  9 12:21:35 2020] DR3:  DR6: fffe0ff0 DR7: 
0400
  [Sun Aug  9 12:21:35 2020] Call Trace:
  [Sun Aug  9 12:21:35 2020]  do_relocation+0xb6/0x4c2 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? 
calcu_metadata_size.isra.36.constprop.42+0x9e/0xc4 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? do_raw_spin_lock+0x2f/0x5a
  [Sun Aug  9 12:21:35 2020]  ? btrfs_block_rsv_refill+0x4b/0x8b [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_tree_blocks+0x301/0x427 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? tree_insert+0x49/0x4e [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? add_tree_block.isra.38+0x11e/0x144 [btrfs]
  [Sun Aug  9 12:21:35 2020]  relocate_block_group+0x279/0x49e [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_block_group+0x15e/0x23d [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_relocate_chunk+0x25/0x8c [btrfs]
  [Sun Aug  9 12:21:35 2020]  btrfs_balance+0xaf0/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  ? btrfs_balance+0xd45/0xd45 [btrfs]
  [Sun Aug  9 12:21:35 2020]  balance_kthread+0x32/0x46 [btrfs]
  [Sun Aug  9 12:21:35 2020]  kthread+0xf5/0xfa
  [Sun Aug  9 12:21:35 2020]  ? kthread_associate_blkcg+0x86/0x86
  [Sun Aug  9 12:21:35 2020]  ret_from_fork+0x3a/0x50
  [Sun Aug  9 12:21:35 2020] Modules linked in: btrfs xor zstd_decompress 
zstd_compress lzo_compress lzo_decompress zlib_deflate raid6_pq libcrc32c 
sd_mod ipmi_devintf ipmi_msghandler sg x86_pkg_temp_thermal intel_powerclamp 
kvm_intel kvm irqbypass crc32_pclmul crc32c_intel iTCO_wdt ghash_clmulni_intel 
aesni_intel crypto_simd psmouse ahci cryptd libahci i2c_i801 serio_raw 
glue_helper intel_pch_thermal evdev video thermal acpi_pad button fan jc42 
ftsteutates nct6775 hwmon_vid coretemp ip_tables x_tables autofs4 e1000e
  [Sun Aug  9 12:21:36 2020] ---[ end trace 442b443de6cecc6e ]---
  [Sun Aug  9 12:21:36 2020] RIP: 0010:select_reloc_root+0x5b/0x19f [btrfs]
  [Sun Aug  9 12:21:36 2020] Code: c0 c7 44 24 04 00 00 00 00 e8 8b 9d 17 e1 48 
89 df 4c 89 f6 48 8d 54 24 04 e8 9c e6 ff ff 48 8b 58 60 48 89 c5 48 85 db 75 
02 <0f> 0b 48 8b 43 20 a8 02 75 02 0f 0b 48 83 bb df 01 00 00 f8 75 45

  So this is obviously a btrfs bug that got introduced by the newer
  btrfs code in the newer kernel, although, booting an older kernel
  didn't fix it. Apparently something about the fs is messed up now and
  no balance can be run. The only