|
Bugzilla – Full Text Bug Listing |
| Summary: | Kernel BUG at ../fs/btrfs/relocation.c:1449! | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | Matwey Kornilov <matwey.kornilov> |
| Component: | Kernel | Assignee: | Jeff Mahoney <jeffm> |
| Status: | RESOLVED DUPLICATE | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Critical | ||
| Priority: | P1 - Urgent | CC: | ChG, tiwai |
| Version: | Leap 15.1 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Community User | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | kernel message | ||
The issue is missed in 4.12.14-lp150.12.48-default. The system boots and works successfully with 4.12.14-lp150.12.48-default. Me too - while restarting a laptop after a hard shutdown: BTRFS info (device sda3): relocating block group 394822418432 flags data kernel BUG at ../fs/btrfs/relocation.c:1449! History: Laptop in battery mode went into Suspend to RAM. Short before the battery was completely empty, it woke up to go into hibernate (suspend to disk). Somewhere in between, someone illiterate long-pressed the power-off button, forcefully shutting off the laptop. At reboot, the root filesystem could not be mounted due to the above error. I booted the current openSuSE rescue disk (4.12.14-lp151.27-default) and ran btrfsck: <code> localhost:/home/linux # btrfsck --readonly /dev/sda3 Opening filesystem to check... Checking filesystem on /dev/sda3 UUID: fc1d5d52-f410-4975-9f4a-db7608f4b647 [1/7] checking root items [2/7] checking extents [3/7] checking free space cache [4/7] checking fs roots [5/7] checking only csums items (without verifying data) [6/7] checking root refs [7/7] checking quota groups Qgroup rescan is running, qgroups will not be printed. found 41040199680 bytes used, no error found total csum bytes: 34569716 total tree bytes: 1653080064 total fs tree bytes: 1528610816 total extent tree bytes: 77987840 btree space waste bytes: 299105246 file data blocks allocated: 531479437312 referenced 98732949504 localhost:/home/linux # </code> Only <b>mount</b>ing the filesystem triggers the bug, most likely due to only <code>btrfs_mount()</code> replaying/rolling back the btrs journal/log. The full dmesg output while trying to mount the affected root filesystem: ================= <code> [ 274.800616] BTRFS info (device sda3): disk space caching is enabled [ 274.800618] BTRFS info (device sda3): has skinny extents [ 274.818605] BTRFS info (device sda3): detected SSD devices, enabling SSD mode [ 274.832490] BTRFS info (device sda3): suspended qgroups for relocation recovery [ 274.838479] BTRFS info (device sda3): resuming qgroups after relocation recovery [ 274.844766] BTRFS info (device sda3): checking UUID tree [ 274.844784] BTRFS info (device sda3): continuing balance [ 274.874632] BTRFS info (device sda3): relocating block group 394822418432 flags data [ 274.926528] ------------[ cut here ]------------ [ 274.926530] kernel BUG at ../fs/btrfs/relocation.c:1449! [ 274.926535] invalid opcode: 0000 [#1] SMP PTI [ 274.926541] CPU: 2 PID: 2564 Comm: btrfs-balance Not tainted 4.12.14-lp151.27-default #1 openSUSE Leap 15.1 [ 274.926543] Hardware name: LENOVO 20A8S06X00/20A8S06X00, BIOS GRET52WW (1.29 ) 05/05/2017 [ 274.926546] task: ffff8801091e0140 task.stack: ffffc90002a40000 [ 274.926578] RIP: 0010:create_reloc_root+0x1dc/0x1f0 [btrfs] [ 274.926580] RSP: 0018:ffffc90002a43918 EFLAGS: 00010282 [ 274.926583] RAX: 00000000ffffffef RBX: ffff880223892400 RCX: 0000000000000001 [ 274.926586] RDX: 0000000000000022 RSI: ffff8801795cc380 RDI: 0000000000000286 [ 274.926588] RBP: ffff88021b5c6bb8 R08: ffff88010a1340a8 R09: 0000000000000000 [ 274.926590] R10: 0000000000000003 R11: ffff8801795cc380 R12: fffffffffffffff7 [ 274.926593] R13: ffff880170186000 R14: ffff880232fd9800 R15: 00000000000c4000 [ 274.926596] FS: 0000000000000000(0000) GS:ffff88023e280000(0000) knlGS:0000000000000000 [ 274.926598] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 274.926601] CR2: 00005620a0278550 CR3: 000000000200a005 CR4: 00000000001606e0 [ 274.926603] Call Trace: [ 274.926625] btrfs_init_reloc_root+0x5b/0xa0 [btrfs] [ 274.926643] record_root_in_trans+0xb4/0xe0 [btrfs] [ 274.926661] btrfs_record_root_in_trans+0x4e/0x60 [btrfs] [ 274.926677] start_transaction+0xa6/0x410 [btrfs] [ 274.926700] __btrfs_prealloc_file_range+0xbb/0x460 [btrfs] [ 274.926725] btrfs_prealloc_file_range+0x10/0x20 [btrfs] [ 274.926745] prealloc_file_extent_cluster+0x113/0x200 [btrfs] [ 274.926762] relocate_file_extent_cluster+0x8d/0x470 [btrfs] [ 274.926777] ? __btrfs_end_transaction+0x1c1/0x2e0 [btrfs] [ 274.926793] relocate_data_extent+0x78/0xc0 [btrfs] [ 274.926808] relocate_block_group+0x495/0x6f0 [btrfs] [ 274.926823] btrfs_relocate_block_group+0x18e/0x280 [btrfs] [ 274.926841] btrfs_relocate_chunk+0x4a/0xf0 [btrfs] [ 274.926857] btrfs_shrink_device+0x1cd/0x520 [btrfs] [ 274.926873] __btrfs_balance+0xda/0xbd0 [btrfs] [ 274.926877] ? printk+0x43/0x4b [ 274.926894] ? btrfs_dev_replace_lock.part.6+0x15/0x20 [btrfs] [ 274.926910] ? btrfs_dev_replace_lock+0x8a/0xa0 [btrfs] [ 274.926928] btrfs_balance+0x2de/0x5c0 [btrfs] [ 274.926946] ? btrfs_balance+0x5c0/0x5c0 [btrfs] [ 274.926968] balance_kthread+0x56/0x80 [btrfs] [ 274.926974] kthread+0x113/0x130 [ 274.926979] ? kthread_create_worker_on_cpu+0x50/0x50 [ 274.926986] ret_from_fork+0x35/0x40 [ 274.926990] 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 [ 274.927039] Modules linked in: fuse xt_tcpudp ip6t_rpfilter af_packet ip6t_REJECT ipt_REJECT xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables msr arc4 iwlmvm snd_hda_codec_realtek mac80211 uvcvideo snd_hda_codec_hdmi snd_hda_codec_generic intel_rapl snd_hda_intel videobuf2_vmalloc btusb snd_hda_codec x86_pkg_temp_thermal btrtl videobuf2_memops intel_powerclamp iwlwifi snd_hda_core videobuf2_v4l2 btbcm snd_hwdep videobuf2_core coretemp btintel snd_pcm videodev [ 274.927103] thinkpad_acpi bluetooth kvm_intel snd_timer cdc_acm mei_wdt ledtrig_audio cfg80211 ecdh_generic kvm iTCO_wdt snd mei_me rfkill iTCO_vendor_support i2c_i801 soundcore irqbypass mei lpc_ich wmi_bmof pcspkr joydev battery thermal ac tpm_crb overlay nls_utf8 isofs squashfs btrfs zstd_compress zstd_decompress xxhash xor raid6_pq hid_multitouch usbhid cdc_mbim cdc_ncm cdc_wdm usbnet mii uas usb_storage crc32_pclmul crc32c_intel ghash_clmulni_intel pcbc aesni_intel xhci_pci scsi_transport_iscsi serio_raw aes_x86_64 crypto_simd glue_helper ehci_pci cryptd ehci_hcd ahci xhci_hcd libahci usbcore i915 i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops e1000e ptp pps_core drm drm_panel_orientation_quirks wmi video button sunrpc dm_mirror dm_region_hash dm_log loop sg dm_multipath [ 274.927164] dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua efivarfs [ 274.927170] ---[ end trace 7fc8c85e4873941d ]--- [ 274.927188] RIP: 0010:create_reloc_root+0x1dc/0x1f0 [btrfs] [ 274.927190] RSP: 0018:ffffc90002a43918 EFLAGS: 00010282 [ 274.927193] RAX: 00000000ffffffef RBX: ffff880223892400 RCX: 0000000000000001 [ 274.927195] RDX: 0000000000000022 RSI: ffff8801795cc380 RDI: 0000000000000286 [ 274.927197] RBP: ffff88021b5c6bb8 R08: ffff88010a1340a8 R09: 0000000000000000 [ 274.927200] R10: 0000000000000003 R11: ffff8801795cc380 R12: fffffffffffffff7 [ 274.927202] R13: ffff880170186000 R14: ffff880232fd9800 R15: 00000000000c4000 [ 274.927205] FS: 0000000000000000(0000) GS:ffff88023e280000(0000) knlGS:0000000000000000 [ 274.927207] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 274.927209] CR2: 00005620a0278550 CR3: 000000000200a005 CR4: 00000000001606e0 </code> ================= Before any further repair attempts, I will try to dd the filesystem into an image file and could provide it for further analysis of this bug. Christian, for me only booting system with old kernel fixed the issue. After the successful mount everything become working on all kernels. I also have backuped filesystem image (20GB) if anybody needs this. This was resolved by: https://kernel.suse.com/cgit/kernel/commit/fs/btrfs?h=openSUSE-15.1&id=462118e0130323d8b45654dbba15cbc54d9428c8 There is no additional information in the duplicate bug. Qu identified the cause as an issue he'd already fixed. *** This bug has been marked as a duplicate of bug 1133612 *** |
Created attachment 803949 [details] kernel message Hello, I am running openSUSE Leap 15.0 with 4.12.14-lp150.12.58-default And today my OS become unbootable, at every boot I see the following kernel BUG message (see attachement). I use btrfs only for root partitions. Using LiveUSB, I've checked that the partition is clear and can be mounted. However, the issue persists at every boot try.