[Kernel-packages] [Bug 1740462] Re: Deletion of subvolumes by docker system prune causes btrfs to become unusable/unmountable because of skinny extends

2018-04-13 Thread kolya
I've just experienced same problem on 17.10, 4.13.0-38-generic

** Changed in: linux (Ubuntu)
   Status: Expired => Confirmed

-- 
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/1740462

Title:
  Deletion of subvolumes by docker system prune causes btrfs to become
  unusable/unmountable because of skinny extends

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  `docker system prune` caused a few processes to hang a few minutes
  while I could still capture

  ```
  [   85.821088] [ cut here ]
  [   85.821108] WARNING: CPU: 6 PID: 75 at 
/build/linux-8h04gD/linux-4.13.0/fs/btrfs/extent-tree.c:3009 
btrfs_run_delayed_refs+0x244/0x250 [btrfs]
  [   85.821109] Modules linked in: rfcomm msr nf_conntrack_netlink nfnetlink 
xfrm_user xfrm_algo xt_addrtype br_netfilter xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat 
nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack libcrc32c ipt_REJECT 
nf_reject_ipv4 xt_tcpudp bridge stp llc ebtable_filter ebtables ip6table_filter 
ip6_tables snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic 
snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_timer snd 
soundcore iptable_filter cdc_ether usbnet pci_stub vboxpci(OE) vboxnetadp(OE) 
vboxnetflt(OE) bnep r8152 vboxdrv(OE) bbswitch(OE) binfmt_misc btusb btrtl 
btbcm btintel rtsx_usb_ms memstick bluetooth ecdh_generic uvcvideo 
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev
  [   85.821133]  media hid_multitouch zfs(POE) zunicode(POE) zavl(POE) 
icp(POE) nls_iso8859_1 zcommon(POE) znvpair(POE) spl(OE) intel_rapl 
x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass 
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 
crypto_simd glue_helper cryptd intel_cstate input_leds intel_rapl_perf joydev 
serio_raw ideapad_laptop sparse_keymap arc4 wmi iwldvm mac80211 iwlwifi mac_hid 
cfg80211 lpc_ich mei_me mei shpchp sunrpc ib_iser rdma_cm iw_cm ib_cm ib_core 
iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi coda parport_pc ppdev lp 
parport ip_tables x_tables autofs4 btrfs xor raid6_pq rtsx_usb_sdmmc rtsx_usb 
hid_generic usbhid hid psmouse i915 video r8169 i2c_algo_bit mii drm_kms_helper 
syscopyarea sysfillrect ahci sysimgblt fb_sys_fops
  [   85.821163]  libahci drm
  [   85.821165] CPU: 6 PID: 75 Comm: kworker/u16:1 Tainted: P   OE   
4.13.0-21-generic #24-Ubuntu
  [   85.821166] Hardware name: LENOVO 20221/INVALID, BIOS 71CN51WW(V1.21) 
07/12/2013
  [   85.821181] Workqueue: btrfs-extent-refs btrfs_extent_refs_helper [btrfs]
  [   85.821182] task: 9a5c6c6b8000 task.stack: a8f681b58000
  [   85.821192] RIP: 0010:btrfs_run_delayed_refs+0x244/0x250 [btrfs]
  [   85.821193] RSP: 0018:a8f681b5bd80 EFLAGS: 00010282
  [   85.821194] RAX: 0026 RBX: ffef RCX: 

  [   85.821194] RDX:  RSI: 9a5c7f38dc78 RDI: 
9a5c7f38dc78
  [   85.821195] RBP: a8f681b5bdd8 R08: 0001 R09: 
042f
  [   85.821196] R10: a8f681b5bc70 R11:  R12: 
9a5c6b3c5438
  [   85.821196] R13: 9a5c5fc3 R14: 9a5b85529a00 R15: 
028f
  [   85.821197] FS:  () GS:9a5c7f38() 
knlGS:
  [   85.821198] CS:  0010 DS:  ES:  CR0: 80050033
  [   85.821199] CR2: 5643c2753020 CR3: 0002e8e09000 CR4: 
001406e0
  [   85.821200] Call Trace:
  [   85.821211]  delayed_ref_async_start+0x98/0xb0 [btrfs]
  [   85.821224]  btrfs_worker_helper+0x7a/0x2e0 [btrfs]
  [   85.821235]  btrfs_extent_refs_helper+0xe/0x10 [btrfs]
  [   85.821239]  process_one_work+0x1e7/0x410
  [   85.821241]  worker_thread+0x4b/0x420
  [   85.821242]  kthread+0x125/0x140
  [   85.821244]  ? process_one_work+0x410/0x410
  [   85.821245]  ? kthread_create_on_node+0x70/0x70
  [   85.821248]  ret_from_fork+0x25/0x30
  [   85.821249] Code: fe ff 89 d9 ba c1 0b 00 00 48 c7 c6 60 28 7d c0 4c 89 e7 
e8 e5 a2 09 00 e9 b5 fe ff ff 89 de 48 c7 c7 98 93 7d c0 e8 8d 02 7b ec <0f> ff 
eb d3 e8 60 a4 09 00 0f 1f 00 0f 1f 44 00 00 55 48 89 e5 
  [   85.821268] ---[ end trace 9bddba90bd2dbd28 ]---
  [   85.821271] BTRFS: error (device sda5) in btrfs_run_delayed_refs:3009: 
errno=-17 Object already exists
  [   85.821274] BTRFS info (device sda5): forced readonly
  ```

  from `dmesg`. After a forced restart with the power button, I could
  reproduce the issue (and had to restart with the power button every
  time), so that finally the filesystem because unmountable because of
  skinny extents (couldn't capture the stack for the unmountable state).

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: linux-image-4.13.0-21-generic 4.13.0-21.24
  ProcVersionSignature: Ubuntu 4.13.0-21.24-generic 4.13.13
  

[Kernel-packages] [Bug 1740462] Re: Deletion of subvolumes by docker system prune causes btrfs to become unusable/unmountable because of skinny extends

2018-03-03 Thread Launchpad Bug Tracker
[Expired for linux (Ubuntu) because there has been no activity for 60
days.]

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

-- 
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/1740462

Title:
  Deletion of subvolumes by docker system prune causes btrfs to become
  unusable/unmountable because of skinny extends

Status in linux package in Ubuntu:
  Expired

Bug description:
  `docker system prune` caused a few processes to hang a few minutes
  while I could still capture

  ```
  [   85.821088] [ cut here ]
  [   85.821108] WARNING: CPU: 6 PID: 75 at 
/build/linux-8h04gD/linux-4.13.0/fs/btrfs/extent-tree.c:3009 
btrfs_run_delayed_refs+0x244/0x250 [btrfs]
  [   85.821109] Modules linked in: rfcomm msr nf_conntrack_netlink nfnetlink 
xfrm_user xfrm_algo xt_addrtype br_netfilter xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat 
nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack libcrc32c ipt_REJECT 
nf_reject_ipv4 xt_tcpudp bridge stp llc ebtable_filter ebtables ip6table_filter 
ip6_tables snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic 
snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_timer snd 
soundcore iptable_filter cdc_ether usbnet pci_stub vboxpci(OE) vboxnetadp(OE) 
vboxnetflt(OE) bnep r8152 vboxdrv(OE) bbswitch(OE) binfmt_misc btusb btrtl 
btbcm btintel rtsx_usb_ms memstick bluetooth ecdh_generic uvcvideo 
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev
  [   85.821133]  media hid_multitouch zfs(POE) zunicode(POE) zavl(POE) 
icp(POE) nls_iso8859_1 zcommon(POE) znvpair(POE) spl(OE) intel_rapl 
x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass 
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 
crypto_simd glue_helper cryptd intel_cstate input_leds intel_rapl_perf joydev 
serio_raw ideapad_laptop sparse_keymap arc4 wmi iwldvm mac80211 iwlwifi mac_hid 
cfg80211 lpc_ich mei_me mei shpchp sunrpc ib_iser rdma_cm iw_cm ib_cm ib_core 
iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi coda parport_pc ppdev lp 
parport ip_tables x_tables autofs4 btrfs xor raid6_pq rtsx_usb_sdmmc rtsx_usb 
hid_generic usbhid hid psmouse i915 video r8169 i2c_algo_bit mii drm_kms_helper 
syscopyarea sysfillrect ahci sysimgblt fb_sys_fops
  [   85.821163]  libahci drm
  [   85.821165] CPU: 6 PID: 75 Comm: kworker/u16:1 Tainted: P   OE   
4.13.0-21-generic #24-Ubuntu
  [   85.821166] Hardware name: LENOVO 20221/INVALID, BIOS 71CN51WW(V1.21) 
07/12/2013
  [   85.821181] Workqueue: btrfs-extent-refs btrfs_extent_refs_helper [btrfs]
  [   85.821182] task: 9a5c6c6b8000 task.stack: a8f681b58000
  [   85.821192] RIP: 0010:btrfs_run_delayed_refs+0x244/0x250 [btrfs]
  [   85.821193] RSP: 0018:a8f681b5bd80 EFLAGS: 00010282
  [   85.821194] RAX: 0026 RBX: ffef RCX: 

  [   85.821194] RDX:  RSI: 9a5c7f38dc78 RDI: 
9a5c7f38dc78
  [   85.821195] RBP: a8f681b5bdd8 R08: 0001 R09: 
042f
  [   85.821196] R10: a8f681b5bc70 R11:  R12: 
9a5c6b3c5438
  [   85.821196] R13: 9a5c5fc3 R14: 9a5b85529a00 R15: 
028f
  [   85.821197] FS:  () GS:9a5c7f38() 
knlGS:
  [   85.821198] CS:  0010 DS:  ES:  CR0: 80050033
  [   85.821199] CR2: 5643c2753020 CR3: 0002e8e09000 CR4: 
001406e0
  [   85.821200] Call Trace:
  [   85.821211]  delayed_ref_async_start+0x98/0xb0 [btrfs]
  [   85.821224]  btrfs_worker_helper+0x7a/0x2e0 [btrfs]
  [   85.821235]  btrfs_extent_refs_helper+0xe/0x10 [btrfs]
  [   85.821239]  process_one_work+0x1e7/0x410
  [   85.821241]  worker_thread+0x4b/0x420
  [   85.821242]  kthread+0x125/0x140
  [   85.821244]  ? process_one_work+0x410/0x410
  [   85.821245]  ? kthread_create_on_node+0x70/0x70
  [   85.821248]  ret_from_fork+0x25/0x30
  [   85.821249] Code: fe ff 89 d9 ba c1 0b 00 00 48 c7 c6 60 28 7d c0 4c 89 e7 
e8 e5 a2 09 00 e9 b5 fe ff ff 89 de 48 c7 c7 98 93 7d c0 e8 8d 02 7b ec <0f> ff 
eb d3 e8 60 a4 09 00 0f 1f 00 0f 1f 44 00 00 55 48 89 e5 
  [   85.821268] ---[ end trace 9bddba90bd2dbd28 ]---
  [   85.821271] BTRFS: error (device sda5) in btrfs_run_delayed_refs:3009: 
errno=-17 Object already exists
  [   85.821274] BTRFS info (device sda5): forced readonly
  ```

  from `dmesg`. After a forced restart with the power button, I could
  reproduce the issue (and had to restart with the power button every
  time), so that finally the filesystem because unmountable because of
  skinny extents (couldn't capture the stack for the unmountable state).

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: linux-image-4.13.0-21-generic 4.13.0-21.24
  ProcVersionSignature: Ubuntu 

[Kernel-packages] [Bug 1740462] Re: Deletion of subvolumes by docker system prune causes btrfs to become unusable/unmountable because of skinny extends

2018-01-02 Thread Joseph Salisbury
Did this issue start happening after an update/upgrade?  Was there a
prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.15 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".


Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15-rc6/


** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

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

** Tags added: kernel-da-key

-- 
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/1740462

Title:
  Deletion of subvolumes by docker system prune causes btrfs to become
  unusable/unmountable because of skinny extends

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  `docker system prune` caused a few processes to hang a few minutes
  while I could still capture

  ```
  [   85.821088] [ cut here ]
  [   85.821108] WARNING: CPU: 6 PID: 75 at 
/build/linux-8h04gD/linux-4.13.0/fs/btrfs/extent-tree.c:3009 
btrfs_run_delayed_refs+0x244/0x250 [btrfs]
  [   85.821109] Modules linked in: rfcomm msr nf_conntrack_netlink nfnetlink 
xfrm_user xfrm_algo xt_addrtype br_netfilter xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat 
nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack libcrc32c ipt_REJECT 
nf_reject_ipv4 xt_tcpudp bridge stp llc ebtable_filter ebtables ip6table_filter 
ip6_tables snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic 
snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_timer snd 
soundcore iptable_filter cdc_ether usbnet pci_stub vboxpci(OE) vboxnetadp(OE) 
vboxnetflt(OE) bnep r8152 vboxdrv(OE) bbswitch(OE) binfmt_misc btusb btrtl 
btbcm btintel rtsx_usb_ms memstick bluetooth ecdh_generic uvcvideo 
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev
  [   85.821133]  media hid_multitouch zfs(POE) zunicode(POE) zavl(POE) 
icp(POE) nls_iso8859_1 zcommon(POE) znvpair(POE) spl(OE) intel_rapl 
x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass 
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 
crypto_simd glue_helper cryptd intel_cstate input_leds intel_rapl_perf joydev 
serio_raw ideapad_laptop sparse_keymap arc4 wmi iwldvm mac80211 iwlwifi mac_hid 
cfg80211 lpc_ich mei_me mei shpchp sunrpc ib_iser rdma_cm iw_cm ib_cm ib_core 
iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi coda parport_pc ppdev lp 
parport ip_tables x_tables autofs4 btrfs xor raid6_pq rtsx_usb_sdmmc rtsx_usb 
hid_generic usbhid hid psmouse i915 video r8169 i2c_algo_bit mii drm_kms_helper 
syscopyarea sysfillrect ahci sysimgblt fb_sys_fops
  [   85.821163]  libahci drm
  [   85.821165] CPU: 6 PID: 75 Comm: kworker/u16:1 Tainted: P   OE   
4.13.0-21-generic #24-Ubuntu
  [   85.821166] Hardware name: LENOVO 20221/INVALID, BIOS 71CN51WW(V1.21) 
07/12/2013
  [   85.821181] Workqueue: btrfs-extent-refs btrfs_extent_refs_helper [btrfs]
  [   85.821182] task: 9a5c6c6b8000 task.stack: a8f681b58000
  [   85.821192] RIP: 0010:btrfs_run_delayed_refs+0x244/0x250 [btrfs]
  [   85.821193] RSP: 0018:a8f681b5bd80 EFLAGS: 00010282
  [   85.821194] RAX: 0026 RBX: ffef RCX: 

  [   85.821194] RDX:  RSI: 9a5c7f38dc78 RDI: 
9a5c7f38dc78
  [   85.821195] RBP: a8f681b5bdd8 R08: 0001 R09: 
042f
  [   85.821196] R10: a8f681b5bc70 R11:  R12: 
9a5c6b3c5438
  [   85.821196] R13: 9a5c5fc3 R14: 9a5b85529a00 R15: 
028f
  [   85.821197] FS:  () GS:9a5c7f38() 
knlGS:
  [   85.821198] CS:  0010 DS:  ES:  CR0: 80050033
  [   85.821199] CR2: 5643c2753020 CR3: 0002e8e09000 CR4: 
001406e0
  [   85.821200] Call Trace:
  [   85.821211]  delayed_ref_async_start+0x98/0xb0 [btrfs]
  [   85.821224]  btrfs_worker_helper+0x7a/0x2e0 [btrfs]
  [   85.821235]  btrfs_extent_refs_helper+0xe/0x10 [btrfs]
  [   85.821239]  process_one_work+0x1e7/0x410
  [   85.821241]  worker_thread+0x4b/0x420
  [   85.821242]  kthread+0x125/0x140
  [   85.821244]  ? process_one_work+0x410/0x410
  [   85.821245]  ? kthread_create_on_node+0x70/0x70
  [   85.821248]  ret_from_fork+0x25/0x30
  [   85.821249] Code: fe ff 89 d9 ba c1 0b 00 00 48 c7 c6 60 28 7d c0 4c 89 e7 
e8 e5 a2 09 00 e9 b5 fe ff ff 89 de 48 c7 c7 98 93 7d c0 e8 8d 02 7b ec <0f> ff 
eb d3 e8 60 a4 09 00 0f 1f 00