Kernel bug when running btrfs balance

Bug #1878749 reported by Paillomams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

syslog extract:

May 15 00:38:28 rpi4 kernel: [ 1464.345380] kernel BUG at /build/linux-raspi2-5.3-5IVhed/linux-raspi2-5.3-5.3.0/fs/btrfs/relocation.c:4729!
May 15 00:38:28 rpi4 kernel: [ 1464.355281] Internal error: Oops - BUG: 0 [#1] SMP
May 15 00:38:28 rpi4 kernel: [ 1464.360141] Modules linked in: xt_nat iptable_nat dm_crypt nls_ascii algif_skcipher af_alg ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 xt_comment btsdio nf_log_ipv4 nf_log_common bluetooth bcm2835_v4l2(CE) xt_LOG ecdh_generic bcm2835_mmal_vchiq(CE) ecc vc_sm_cma(CE) xt_multiport v4l2_common xt_recent videobuf2_vmalloc videobuf2_memops brcmfmac videobuf2_v4l2 brcmutil videobuf2_common cfg80211 videodev xt_limit xt_tcpudp raspberrypi_hwmon mc xt_addrtype rpivid_mem spidev uio_pdrv_genirq uio xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 sch_fq_codel nf_defrag_ipv4 iptable_filter bpfilter iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor xor_neon raid6_pq libcrc32c raid1 raid0 multipath linear broadcom bcm_phy_lib hid_generic
May 15 00:38:28 rpi4 kernel: [ 1464.360198] usbhid mdio_bcm_unimac crct10dif_ce sdhci_iproc genet gpio_regulator phy_generic fixed uas usb_storage aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64
May 15 00:38:28 rpi4 kernel: [ 1464.464074] CPU: 0 PID: 8225 Comm: btrfs-balance Tainted: G C E 5.3.0-1023-raspi2 #25~18.04.1-Ubuntu
May 15 00:38:28 rpi4 kernel: [ 1464.474482] Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
May 15 00:38:28 rpi4 kernel: [ 1464.480395] pstate: 20400005 (nzCv daif +PAN -UAO)
May 15 00:38:28 rpi4 kernel: [ 1464.485330] pc : btrfs_reloc_cow_block+0x34c/0x3a0 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.490928] lr : __btrfs_cow_block+0x368/0x600 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.496133] sp : ffff000013b437b0
May 15 00:38:28 rpi4 kernel: [ 1464.499487] x29: ffff000013b437b0 x28: 0000000000000000
May 15 00:38:28 rpi4 kernel: [ 1464.504870] x27: 0000000000000001 x26: 0000000000000001
May 15 00:38:28 rpi4 kernel: [ 1464.510253] x25: ffff9c0ac32c4a80 x24: ffff9c0bb321c618
May 15 00:38:28 rpi4 kernel: [ 1464.515634] x23: 0000000000000001 x22: ffff9c0b63242a50
May 15 00:38:28 rpi4 kernel: [ 1464.521016] x21: ffff9c0b23e51ef0 x20: ffff9c0b4f111000
May 15 00:38:28 rpi4 kernel: [ 1464.526399] x19: ffff9c0b74bb5000 x18: 0000000000000000
May 15 00:38:28 rpi4 kernel: [ 1464.531780] x17: 0000000000000000 x16: ffff40af26f8be78
May 15 00:38:28 rpi4 kernel: [ 1464.537163] x15: 0000000000000000 x14: 0000000000000000
May 15 00:38:28 rpi4 kernel: [ 1464.542545] x13: 0000000000000000 x12: 0000000000000000
May 15 00:38:28 rpi4 kernel: [ 1464.547926] x11: 0000000000000000 x10: ffff9c0b10e83a40
May 15 00:38:28 rpi4 kernel: [ 1464.553308] x9 : ffff9c0aca004750 x8 : ffff40af2775b9e7
May 15 00:38:28 rpi4 kernel: [ 1464.558690] x7 : ffff9c0b578814e1 x6 : ffff9c0b578814e0
May 15 00:38:28 rpi4 kernel: [ 1464.564071] x5 : ffff9c0b552b59c0 x4 : ffff9c0b552b59c0
May 15 00:38:28 rpi4 kernel: [ 1464.569452] x3 : ffff9c0b63242a50 x2 : 0000000000096be7
May 15 00:38:28 rpi4 kernel: [ 1464.574833] x1 : 0000000000000000 x0 : 0000012e979b4000
May 15 00:38:28 rpi4 kernel: [ 1464.580216] Call trace:
May 15 00:38:28 rpi4 kernel: [ 1464.582735] btrfs_reloc_cow_block+0x34c/0x3a0 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.587979] __btrfs_cow_block+0x368/0x600 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.592869] btrfs_cow_block+0x100/0x218 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.597583] btrfs_search_slot+0x560/0x930 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.602475] do_relocation+0x408/0x5b8 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.607014] relocate_tree_blocks+0x4f8/0x5c0 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.612170] relocate_block_group+0x3dc/0x638 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.617325] btrfs_relocate_block_group+0x18c/0x2d8 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.623009] btrfs_relocate_chunk+0x48/0xe0 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.627988] __btrfs_balance+0x864/0xa38 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.632703] btrfs_balance+0x434/0x748 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.637301] balance_kthread+0x38/0x70 [btrfs]
May 15 00:38:28 rpi4 kernel: [ 1464.641811] kthread+0x124/0x128
May 15 00:38:28 rpi4 kernel: [ 1464.645081] ret_from_fork+0x10/0x1c
May 15 00:38:28 rpi4 kernel: [ 1464.648706] Code: f9401321 eb01001f 54fff020 f9002fbc (d4210000)
May 15 00:38:28 rpi4 kernel: [ 1464.654884] ---[ end trace 01ad7c5a4a25131c ]---
May 15 00:38:28 rpi4 kernel: [ 1464.660405] WARNING: CPU: 0 PID: 0 at /build/linux-raspi2-5.3-5IVhed/linux-raspi2-5.3-5.3.0/kernel/rcu/tree.c:562 rcu_idle_enter+0x70/0x78
May 15 00:38:28 rpi4 kernel: [ 1464.673030] Modules linked in: xt_nat iptable_nat dm_crypt nls_ascii algif_skcipher af_alg ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 xt_comment btsdio nf_log_ipv4 nf_log_common bluetooth bcm2835_v4l2(CE) xt_LOG ecdh_generic bcm2835_mmal_vchiq(CE) ecc vc_sm_cma(CE) xt_multiport v4l2_common xt_recent videobuf2_vmalloc videobuf2_memops brcmfmac videobuf2_v4l2 brcmutil videobuf2_common cfg80211 videodev xt_limit xt_tcpudp raspberrypi_hwmon mc xt_addrtype rpivid_mem spidev uio_pdrv_genirq uio xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 sch_fq_codel nf_defrag_ipv4 iptable_filter bpfilter iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor xor_neon raid6_pq libcrc32c raid1 raid0 multipath linear broadcom bcm_phy_lib hid_generic
May 15 00:38:28 rpi4 kernel: [ 1464.673092] usbhid mdio_bcm_unimac crct10dif_ce sdhci_iproc genet gpio_regulator phy_generic fixed uas usb_storage aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64
May 15 00:38:28 rpi4 kernel: [ 1464.776998] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G D C E 5.3.0-1023-raspi2 #25~18.04.1-Ubuntu
May 15 00:38:28 rpi4 kernel: [ 1464.786799] Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
May 15 00:38:28 rpi4 kernel: [ 1464.792721] pstate: 20400085 (nzCv daIf +PAN -UAO)
May 15 00:38:28 rpi4 kernel: [ 1464.797586] pc : rcu_idle_enter+0x70/0x78
May 15 00:38:28 rpi4 kernel: [ 1464.801659] lr : do_idle+0x1d4/0x2c0
May 15 00:38:28 rpi4 kernel: [ 1464.805284] sp : ffff40af27c03ec0
May 15 00:38:28 rpi4 kernel: [ 1464.808646] x29: ffff40af27c03ec0 x28: 0000000000bab334
May 15 00:38:28 rpi4 kernel: [ 1464.814039] x27: 0000000000000000 x26: 0000000000000000
May 15 00:38:28 rpi4 kernel: [ 1464.819431] x25: 0000000000000000 x24: ffff40af27c097ec
May 15 00:38:28 rpi4 kernel: [ 1464.824822] x23: ffff40af27756f38 x22: ffff40af27c09000
May 15 00:38:28 rpi4 kernel: [ 1464.830213] x21: ffff40af27c09000 x20: 0000000000000001
May 15 00:38:28 rpi4 kernel: [ 1464.835605] x19: ffff40af27c09740 x18: ffff40af272a2fa0
May 15 00:38:28 rpi4 kernel: [ 1464.840996] x17: 0000000000000000 x16: 000000000000000e
May 15 00:38:28 rpi4 kernel: [ 1464.846388] x15: 0000000000000001 x14: ffff9c0bb7582148
May 15 00:38:28 rpi4 kernel: [ 1464.851778] x13: 0000000000000004 x12: 0000000000000000
May 15 00:38:28 rpi4 kernel: [ 1464.857168] x11: ffff9c0bb7595430 x10: 0000000000001950
May 15 00:38:28 rpi4 kernel: [ 1464.862560] x9 : ffff40af27c03e00 x8 : ffff40af27c11ff0
May 15 00:38:28 rpi4 kernel: [ 1464.867952] x7 : 0000000000000000 x6 : 0000000000000001
May 15 00:38:28 rpi4 kernel: [ 1464.873342] x5 : 0000000000000000 x4 : ffff40af27c07000
May 15 00:38:28 rpi4 kernel: [ 1464.878733] x3 : 4000000000000002 x2 : ffff40af27759000
May 15 00:38:28 rpi4 kernel: [ 1464.884124] x1 : 4000000000000000 x0 : ffff9c0bb75960c0
May 15 00:38:28 rpi4 kernel: [ 1464.889516] Call trace:
May 15 00:38:28 rpi4 kernel: [ 1464.891999] rcu_idle_enter+0x70/0x78
May 15 00:38:28 rpi4 kernel: [ 1464.895717] do_idle+0x1d4/0x2c0
May 15 00:38:28 rpi4 kernel: [ 1464.898994] cpu_startup_entry+0x2c/0x30
May 15 00:38:28 rpi4 kernel: [ 1464.902978] rest_init+0xb8/0xc8
May 15 00:38:28 rpi4 kernel: [ 1464.906255] arch_call_rest_init+0x14/0x1c
May 15 00:38:28 rpi4 kernel: [ 1464.910412] start_kernel+0x4f8/0x524
May 15 00:38:28 rpi4 kernel: [ 1464.914128] ---[ end trace 01ad7c5a4a25131d ]---
---
ProblemType: Bug
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Jan 28 2018 seq
 crw-rw---- 1 root audio 116, 33 Jan 28 2018 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
DistroRelease: Ubuntu 18.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Package: linux (not installed)
PciMultimedia:

ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 LANG=C.UTF-8
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: coherent_pool=1M 8250.nr_uarts=1 cma=64M bcm2708_fb.fbwidth=0 bcm2708_fb.fbheight=0 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:7B:70:FF vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 net.ifnames=0 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=UUID=c53a32a7-abd4-4a65-8639-5696788573fc rootfstype=btrfs elevator=deadline rootwait fixrtc
ProcVersionSignature: Ubuntu 5.3.0-1023.25~18.04.1-raspi2 5.3.18
RelatedPackageVersions:
 linux-restricted-modules-5.3.0-1023-raspi2 N/A
 linux-backports-modules-5.3.0-1023-raspi2 N/A
 linux-firmware 1.173.18
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
Tags: bionic uec-images
Uname: Linux 5.3.0-1023-raspi2 aarch64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True

Revision history for this message
Paillomams (aymeric-pallottini) wrote :
Revision history for this message
Paillomams (aymeric-pallottini) wrote :

btrfs balance hangs and never complete after this bug trace appears in syslog

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1878749

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: eoan
Revision history for this message
Paillomams (aymeric-pallottini) wrote : CurrentDmesg.txt

apport information

tags: added: apport-collected bionic uec-images
description: updated
Revision history for this message
Paillomams (aymeric-pallottini) wrote : Lspci.txt

apport information

Revision history for this message
Paillomams (aymeric-pallottini) wrote : Lsusb.txt

apport information

Revision history for this message
Paillomams (aymeric-pallottini) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Paillomams (aymeric-pallottini) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Paillomams (aymeric-pallottini) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Paillomams (aymeric-pallottini) wrote : ProcModules.txt

apport information

Revision history for this message
Paillomams (aymeric-pallottini) wrote : UdevDb.txt

apport information

Revision history for this message
Paillomams (aymeric-pallottini) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Hmm, could you please try 20.04?

I wonder how you made rootfs Btrfs?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Paillomams (aymeric-pallottini) wrote :

The drive failing balance is not rootfs. It is a different multi device btrfs volume (no RAID).
This is my main local server. I will try with 20.04 when the upgrade is available.

rootfs as btrfs:
- format HDD to btrfs
- copy sdcard content to HDD
- update UUID and rootfstype in /boot/firmware/nobtcmd.txt
- /boot/firmware remains on sdcard
- update fstab
- reboot

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.