From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.virtall.com ([178.63.195.102]:60949 "EHLO mail.virtall.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794Ab3GMEQ6 (ORCPT ); Sat, 13 Jul 2013 00:16:58 -0400 Received: from mail.virtall.com (localhost [127.0.0.1]) by mail.virtall.com (Postfix) with ESMTP id 659793AA654 for ; Sat, 13 Jul 2013 06:08:37 +0200 (CEST) Received: from localhost (unknown [119.77.240.100]) by mail.virtall.com (Postfix) with ESMTPSA id 582B43AA64A for ; Sat, 13 Jul 2013 06:08:36 +0200 (CEST) Date: Sat, 13 Jul 2013 12:08:29 +0800 From: Tomasz Chmielewski To: linux-btrfs@vger.kernel.org Subject: btrfs filesystem balance /mnt/btrfs -> segmentation fault (kernel BUG at fs/btrfs/relocation.c:3296!) Message-ID: <20130713120829.2e67645b@wpkg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-btrfs-owner@vger.kernel.org List-ID: I've enabled "extended inode refs" and "skinny metadata extent refs" with btrfstune. Then, I've tried running "btrfs filesystem balance" - unfortunately it segfaulted. (not sure if I should run balance operation after using btrfstune with -r and -x)? This is with 3.10 kernel with "Btrfs: make backref walking code handle skinny metadata" patch https://patchwork.kernel.org/patch/2800271/ [18483.575594] ------------[ cut here ]------------ [18483.575644] kernel BUG at fs/btrfs/relocation.c:3296! [18483.575692] invalid opcode: 0000 [#1] SMP [18483.575739] Modules linked in: veth ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables cpufreq_ondemand cpufreq_conservative cpufreq_powersave cpufreq_stats bridge stp llc ipv6 btrfs xor raid6_pq zlib_deflate loop acpi_cpufreq mperf freq_table intel_powerclamp kvm_intel kvm crc32_pclmul i2c_i801 i2c_core video button lpc_ich mfd_core microcode pcspkr ehci_pci ehci_hcd ext4 crc16 jbd2 mbcache raid1 sg sd_mod ahci libahci libata scsi_mod r8169 mii [18483.576119] CPU: 2 PID: 13753 Comm: btrfs Not tainted 3.10.0 #2 [18483.576167] Hardware name: System manufacturer System Product Name/P8H77-M PRO, BIOS 1101 02/04/2013 [18483.576259] task: ffff8807f3edc4a0 ti: ffff8802ceb26000 task.ti: ffff8802ceb26000 [18483.576348] RIP: 0010:[] [] __add_tree_block+0x11b/0x12c [btrfs] [18483.576453] RSP: 0018:ffff8802ceb27a28 EFLAGS: 00010287 [18483.576501] RAX: 0000000000000001 RBX: ffff8807efdadcf0 RCX: 0000018b46636000 [18483.576550] RDX: 00000000000000a9 RSI: ffff88047afa24f4 RDI: ffff8802ceb27a68 [18483.576600] RBP: ffff8802ceb27a98 R08: ffff8802ceb27a68 R09: ffff880527110348 [18483.576650] R10: 0000000000001000 R11: 0000160000000000 R12: 0000018b46647000 [18483.576699] R13: ffff880345192800 R14: ffff8802ceb27b40 R15: 0000000000001000 [18483.576752] FS: 00007fb48c80d740(0000) GS:ffff88081fa80000(0000) knlGS:0000000000000000 [18483.576842] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [18483.576892] CR2: 0000000045e025a8 CR3: 0000000624b31000 CR4: 00000000001407e0 [18483.576941] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [18483.576991] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [18483.577040] Stack: [18483.577083] ffff8807f3e00c00 ffff880500000001 0000000000000000 6000ffffa070af5f [18483.577184] 00a90000018b4663 0000000000000000 a90000018b466360 0000000000000000 [18483.577278] ffff8802ceb27a98 ffff8807eddd3120 ffff880345192800 0000000000000904 [18483.577368] Call Trace: [18483.577422] [] add_data_references+0xc1/0x245 [btrfs] [18483.577480] [] relocate_block_group+0x212/0x503 [btrfs] [18483.577537] [] btrfs_relocate_block_group+0x14f/0x283 [btrfs] [18483.577634] [] btrfs_relocate_chunk.isra.65+0x50/0x3bc [btrfs] [18483.577731] [] ? free_extent_buffer+0x77/0x7c [btrfs] [18483.577788] [] btrfs_balance+0x9c2/0xb9a [btrfs] [18483.577838] [] ? __do_fault+0x3d0/0x40a [18483.577888] [] ? __sb_start_write+0xbd/0xf1 [18483.577947] [] btrfs_ioctl_balance+0x22e/0x2ac [btrfs] [18483.578004] [] btrfs_ioctl+0xfab/0x1967 [btrfs] [18483.578055] [] ? avc_has_perm_flags+0x32/0xf7 [18483.578104] [] ? __do_page_fault+0x34f/0x3f3 [18483.578153] [] vfs_ioctl+0x21/0x34 [18483.578200] [] do_vfs_ioctl+0x3b1/0x3f4 [18483.578248] [] SyS_ioctl+0x52/0x82 [18483.578298] [] system_call_fastpath+0x16/0x1b [18483.578345] Code: 4c 89 f7 e8 77 b1 ff ff 48 89 c2 31 c0 48 85 d2 75 1b e9 42 ff ff ff 48 8d 75 ae 4c 89 f1 48 89 da 4c 89 ef e8 f2 d6 ff ff eb b7 <0f> 0b 48 83 c4 48 5b 41 5c 41 5d 41 5e 41 5f 5d c3 55 48 89 e5 [18483.578527] RIP [] __add_tree_block+0x11b/0x12c [btrfs] [18483.578588] RSP [18483.578921] ---[ end trace 5fbd1b64c8886e51 ]--- -- Tomasz Chmielewski http://wpkg.org