BTRFS Kernel Panic
So it looks like btrfs really is still experimental.
I have / and /var on two separate btrfs partitions and I consistently get
a kernel panic when I run "aptitude update" (see the end). I also managed
to get the same results by using find and dd to read every file in /var.
Although my oops output does have RIP: btrfs_num_copies, I do not think that
I need to use btrfs-zero-log because (1) I am using a 3.2 series kernel, (2)
my panic callstack does not have a function that begins with "replay_one_",
and (3) I am able to mount the partitions (and boot) just fine. It is only
when some process such as aptitude or updatedb (indexing for the locate
command) tries to read something in the filesystem.
I tried scrubbing the filesystems, but no errors were found (and somehow no
panics occured). Finally, I can't really see what's going on with an strace
or anything because the panic happens before anything gets written to
the disk
(even if I do an emergency sync and remount-ro with sysrq before rebooting),
and I *really* don't want to install netconsole because I am worried that
any package management will cause a panic during an installation which could
make my situation much worse.
I have run out of ideas and am looking for suggestions.
The panic from /var/log/kern.log:
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.632188] parent transid
verify failed on 18446277369678266402 wanted 18446277756225214326 found 0
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.632203] parent transid
verify failed on 18446277369678266402 wanted 18446277756225214326 found 0
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.632278] ------------[
cut here ]------------
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.632331] kernel BUG at
/build/buildd-linux_3.2.39-2-amd64-G5_nN0/linux-3.2.39/fs/btrfs/volumes.c:2860!
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.632412] invalid opcode:
0000 [#1] SMP
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.632458] CPU 0
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.632478] Modules linked
in: hidp cryptd aes_x86_64 aes_generic nbd ip6table_filter ip6_tables
iptable_filter ip_tables ebtable_nat ebtables x_tables parport_pc ppdev
lp parport rfcomm bnep cpufreq_userspace cpufreq_stats cpufreq_powersave
cpufreq_conservative pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O)
vboxdrv(O) binfmt_misc uinput fuse nfsd nfs nfs_acl auth_rpcgss fscache
lockd sunrpc loop dm_crypt sg uvcvideo videodev v4l2_compat_ioctl32
media btusb bluetooth crc16 joydev ata_generic acpi_cpufreq i915 mperf
r592 dell_laptop ata_piix coretemp drm_kms_helper dcdbas drm
i2c_algo_bit memstick snd_hda_codec_idt snd_hda_codec_hdmi pcspkr arc4
firewire_ohci firewire_core crc_itu_t iwl3945 iwl_legacy snd_hda_intel
mac80211 snd_hda_codec sky2 snd_hwdep snd_pcm snd_page_alloc psmouse
serio_raw cfg80211 rfkill r852 sm_common nand nand_ecc nand_ids mtd
dell_wmi snd_seq snd_seq_device sparse_keymap snd_timer sdhci_pci sdhci
snd iTCO_wdt iTCO_vendor_support wmi soundcore processor mm
Apr 7 17:39:29 alexdell2-wheezy kernel: c_core i2c_i801 video battery
ac i2c_core evdev power_supply button btrfs crc32c libcrc32c
zlib_deflate dm_mod usb_storage usbhid hid sl811_hcd ohci_hcd sr_mod
cdrom sd_mod crc_t10dif thermal ahci libahci libata thermal_sys uhci_hcd
scsi_mod ehci_hcd usbcore usb_common
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.633954]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.633972] Pid: 6448, comm:
aptitude Tainted: G O 3.2.0-4-amd64 #1 Debian 3.2.39-2 Dell
Inc. Inspiron 1525 /0WP007
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634090] RIP:
0010:[<ffffffffa016d594>] [<ffffffffa016d594>]
btrfs_num_copies+0x3f/0x89 [btrfs]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634196] RSP:
0018:ffff88004dd1d9b8 EFLAGS: 00010246
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634244] RAX:
0000000000000000 RBX: fffe578900000022 RCX: 0000000000000001
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634304] RDX:
ffffffffffffffff RSI: fffe578900000022 RDI: ffff880115079110
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634363] RBP:
ffff880115079110 R08: 00000000ffffffff R09: 0000000000000000
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634424] R10:
ffff88007972a6d8 R11: ffff88007972a6d8 R12: 0000000000000000
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634484] R13:
0000000000000000 R14: fffe57e2fffe5776 R15: ffff880116877820
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634545] FS:
00007f2b8c238760(0000) GS:ffff88011fc00000(0000) knlGS:0000000000000000
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634615] CS: 0010 DS:
0000 ES: 0000 CR0: 0000000080050033
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634664] CR2:
00007f2b8a913f50 CR3: 000000004dd1a000 CR4: 00000000000006f0
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634724] DR0:
0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634784] DR3:
0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634845] Process aptitude
(pid: 6448, threadinfo ffff88004dd1c000, task ffff88008c0c80c0)
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634917] Stack:
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.634938]
ffff880119224d20 0000000000001000 ffff8800a454d630 ffff880119224d20
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635017]
0000000000000000 ffffffffa014b067 0000000000000002 0000000016877ac0
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635095]
0000000000000001 ffff8800a454d630 ffff880119224c00 ffff88004dd1db38
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635174] Call Trace:
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635217]
[<ffffffffa014b067>] ? btree_read_extent_buffer_pages.isra.99+0x89/0xa9
[btrfs]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635308]
[<ffffffffa014c034>] ? read_tree_block+0x31/0x44 [btrfs]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635377]
[<ffffffffa0138d41>] ? read_block_for_search.isra.33+0xc9/0x2d2 [btrfs]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635449]
[<ffffffff8105f67a>] ? bit_waitqueue+0x17/0x75
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635510]
[<ffffffffa013a7b6>] ? btrfs_search_slot+0x495/0x64e [btrfs]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635585]
[<ffffffffa01474d4>] ? btrfs_lookup_dir_item+0x71/0xa0 [btrfs]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635664]
[<ffffffffa0158dc5>] ? btrfs_lookup_dentry+0xa8/0x3a4 [btrfs]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635727]
[<ffffffff810ec49f>] ? kmem_cache_alloc+0x86/0xea
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635799]
[<ffffffffa01590ce>] ? btrfs_lookup+0xd/0x45 [btrfs]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635853]
[<ffffffff81101ca5>] ? d_alloc_and_lookup+0x3a/0x60
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635907]
[<ffffffff81102749>] ? walk_component+0x219/0x406
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.635960]
[<ffffffff811035dd>] ? path_lookupat+0x7c/0x2bd
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636013]
[<ffffffff81036408>] ? should_resched+0x5/0x23
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028]
[<ffffffff8134c667>] ? _cond_resched+0x7/0x1c
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028]
[<ffffffff8110383a>] ? do_path_lookup+0x1c/0x87
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028]
[<ffffffff811052c3>] ? user_path_at_empty+0x47/0x7b
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028]
[<ffffffff810fd161>] ? cp_new_stat+0xe6/0xfa
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028]
[<ffffffff810fd32e>] ? vfs_fstatat+0x32/0x60
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028]
[<ffffffff810fd464>] ? sys_newstat+0x12/0x2b
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028]
[<ffffffff81352952>] ? system_call_fastpath+0x16/0x1b
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028] Code: 10 48 89
54 24 08 e8 5c 04 1e e1 48 8b 54 24 08 4c 89 e7 48 89 de e8 7f 0d ff ff
48 89 ef 49 89 c4 e8 b1 c8 ff ff 4d 85 e4 75 02 <0f> 0b 49 8b 44 24 18
48 39 d8 77 0a 49 03 44 24 20 48 39 d8 73
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028] RIP
[<ffffffffa016d594>] btrfs_num_copies+0x3f/0x89 [btrfs]
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.636028] RSP
<ffff88004dd1d9b8>
Apr 7 17:39:29 alexdell2-wheezy kernel: [ 7290.674418] ---[ end trace
a459afa09ff38e86 ]---
If there is a better way to include the log in the future (e.g. attachment),
please let me know.
Thank you,
Alex Robbins
Reply to: