public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Ooops in BTRFS in 2.6.34 / x86_64 when mounting subvolume by name
@ 2010-05-27 12:27 armin walland
  2010-06-06  6:07 ` Maciej Rutecki
  0 siblings, 1 reply; 2+ messages in thread
From: armin walland @ 2010-05-27 12:27 UTC (permalink / raw)
  To: linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 7394 bytes --]

hi dearest kernel developers, i sent this email to chris mason about a week 
ago but didn't receive any reply so i don't know if it actually reached him so 
i decided to sent it to the LKML to make sure it would not get lost:


i would like to report to you an Ooops in btrfs when mounting a subvolume by 
name. i tried to gather as much information as possible, if you want any more 
information i will be happy to provide it.

i first encountered the crash on my hardware machine and i was also able to 
reproduce it on a virtualbox vm with which i compiled this report.

i started with a default arch linux x86_64 installation, then compiled a 
vanilla 2.6.34 kernel from kernel.org using /proc/config.gz as a basis. the 
only changes i made were to compile BTRFS static and not as a module. when 
installing i used xfs as root filesystem from where i could then copy the data 
to the btrfs subvolume.

my goal is to have a btrfs filesystem with 2 subvolumes:
v_root as the / filesystem
v_home as the /home filesystem

reproduce:

## get latest btrfs-progs
[root@myhost ~]# uname -a
Linux myhost 2.6.34-BREZEL #1 SMP PREEMPT Wed May 19 21:01:33 CEST 2010 x86_64 
Intel(R) Xeon(R) CPU W3530 @ 2.80GHz GenuineIntel GNU/Linux
[root@myhost ~]# cd /usr/src
[root@myhost src]# git clone 
git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstable.git 
Initialized empty Git repository in /usr/src/btrfs-progs-unstable/.git/
remote: Counting objects: 1794, done.
remote: Compressing objects: 100% (687/687), done.
remote: Total 1794 (delta 1355), reused 1418 (delta 1103)
Receiving objects: 100% (1794/1794), 537.30 KiB, done.
Resolving deltas: 100% (1355/1355), done.

-> make && make install

## make the filesystem & subvolumes
mkdir -p /mnt/bt01/
[root@myhost ~]# mkfs.btrfs -L bt01 /dev/sda3
WARNING! - Btrfs v0.19-16-g075587c-dirty IS EXPERIMENTAL
WARNING! - see http://btrfs.wiki.kernel.org before using
fs created label bt01 on /dev/sda3
        nodesize 4096 leafsize 4096 sectorsize 4096 size 3.94GB
Btrfs v0.19-16-g075587c-dirty
[root@myhost ~]# mount /dev/sda3 /mnt/bt01/
[root@myhost ~]# cd /mnt/bt01/
[root@myhost bt01]# btrfsctl -S v_root .
operation complete
Btrfs v0.19-16-g075587c-dirty
[root@myhost bt01]# btrfsctl -S v_home .
operation complete
Btrfs v0.19-16-g075587c-dirty

## copy the data
[root@myhost bt01]# cd /
[root@myhost /]# find . -xdev | cpio -pv /mnt/bt01/v_root/
[root@myhost ~]# cd /dev/
[root@myhost ~]# find . -xdev | cpio -pv /mnt/bt01/v_root/dev/


## set the v_root subvolume as default subvolume
[root@myhost ~]# btrfs subvol list /mnt/bt01/
ID 256 top level 5 path v_root
ID 257 top level 5 path v_home
[root@myhost ~]# btrfs subvol set-default 256 /mnt/bt01/

## prepare for reboot:
[root@myhost ~]# umount /mnt/bt01/
[root@myhost ~]# mount /dev/sda3 /mnt/bt01/
[root@myhost ~]# vim /mnt/bt01/etc/fstab 
# change /
[...]
/dev/sda3 / btrfs defaults 0 1

[root@myhost ~]# vim /boot/grub/menu.lst
# (0) Arch Linux BTRFS
title  Arch Linux BTRFS
root   (hd0,0)
kernel /vmlinuz26-BREZEL root=/dev/sda3 ro vga=795
initrd /kernel26-BREZEL.img

## reboot
[root@myhost ~]# reboot; exit

## after reboot:  (looks fine)
[root@myhost ~]# df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda3    btrfs    4.0G  1.2G  2.3G  34% /
udev         tmpfs     10M  116K  9.9M   2% /dev                                                                                                                                                                                
shm          tmpfs    500M     0  500M   0% /dev/shm                                                                                                                                                                            
/dev/sda1     ext3    236M   33M  192M  15% /boot                                                                                                                                                                               

## now try to mount the second subvolume as /home with subvol=v_home
[root@myhost ~]# mount -o subvol=v_home /dev/sda3 /home/                                                                                                                                                                        
mount: /dev/sda3 is not a valid block device                                                                                                                                                                                    
[root@myhost ~]# 2010 May 21 14:31:04 myhost Oops: 0000 [#1] PREEMPT SMP                                                                                                                                                        
2010 May 21 14:31:04 myhost last sysfs file: 
/sys/devices/virtual/dmi/id/product_uuid                                                                                                                                           
2010 May 21 14:31:04 myhost Stack:                                                                                                                                                                                              
2010 May 21 14:31:04 myhost Call Trace:                                                                                                                                                                                         
2010 May 21 14:31:04 myhost Code: 02 a8 35 00 48 c7 c7 6a c8 5a 81 31 c0 e8 f4 
a7 35 00 eb a0 90 90 90 90 90 90 90 90 90 90 90 90 48 8b 87 a0 00 00 00 55 48 
89 e5 <48> 8b 88 b8 02 00 00 8b 81 34 04 00 00 0f b7 91 5a 04 00 00 c9                                                                                                                                                                                                                             
2010 May 21 14:31:04 myhost CR2: 00000000000002b8                                                                                                                                                                               
2010 May 21 14:31:12 myhost Oops: 0000 [#2] PREEMPT SMP                                                                                                                                                                         
2010 May 21 14:31:12 myhost last sysfs file: 
/sys/devices/virtual/dmi/id/product_uuid

########
i attached 3 screenshots and ocr texts from 3 screens worth of stack trace, i 
hope they can be helpful.
########

----------
REBOOT
----------

## now do the same thing but use subvolid instead of subvol:
[root@myhost ~]# btrfs subvolume list /
ID 256 top level 5 path v_root
ID 257 top level 5 path v_home
[root@myhost ~]# mount -o subvolid=257 /dev/sda3 /home/
[root@myhost ~]# df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda3    btrfs    4.0G  1.2G  2.3G  34% /
udev         tmpfs     10M  116K  9.9M   2% /dev
shm          tmpfs    500M     0  500M   0% /dev/shm
/dev/sda1     ext3    236M   33M  192M  15% /boot
/dev/sda3    btrfs    4.0G  1.2G  2.3G  34% /home

works perfectly.

please let me know if you need anything else and thanks a lot for this 
marvellous filesystem :)

-- 
best rgds, armin

please try not to send me HTML emails!


[-- Attachment #1.2: stack1.png --]
[-- Type: image/png, Size: 68284 bytes --]

[-- Attachment #1.3: stack1.txt --]
[-- Type: text/plain, Size: 5036 bytes --]

___                                           ____________8_______ _8___8___                                         0  __'_  __''
__d_________ _0__0__ _____0o_0____ __ ___ __ __ __0
:: Starting Cron Daemon                                                                                       [DONE]
:: Starting D-BUS system messagebus                                                                               [DONE]
:: Starting Hardware Abstraction Layer                                                                             [FAIL]
:: Starting the UirtuaIBox Guest Additions                                                                           [FAIL]
(modprobe uboxguest fai Ied)
:: Starting UirtuaIBox Guest Addition seruice                                                                         [   ]
irtuaIBox Additions moduIe not Ioaded!
:: Starting Secure SheII Daemon                                                                                  [DONE]
:: Starting the UirtuaIBox Guest Additions                                                                           [FAIL]
(modprobe uboxguest fai Ied)
:: Starting UirtuaIBox Guest Addition seruice                                                                         [   ]
irtuaIBox Additions moduIe not Ioaded!

Orch Linux 2.6.34-BREZEL  (myhost) (tty1)

yhost Iogin: BUG: unabIe to handIe XerneI NULL pointer dereference at 0_0_0_0_0_0_0_0_0_0_0_0_0_2b8
IP: [<ffffffff8114c84b_] bio _ et_nr_uecs+0_xb/0_x40_
_GD 3d4ac0_67 PUD 3da420_67 PMD 0_
_ops: 0_0_0_0_ [#1] PREEMPT SMP
Iast sysfs fi Ie: /sys/deuices/uirtuaI/dmi/id/product_uuid
PU 0_
oduIes IinXed in: i2c _ iix4 snd_inteI8x0_ i2c_core snd_ac97_codec snd_seq_dummy snd_seq_oss snd_seq_midi_euent snd_seq snd_seq_deuice ac97_bus snd _ cm_oss snd_m
ixer_oss snd _ cm snd_timer ppdeu e10_0_0_ snd thermaI processor soundcore button ac Ip parport _ c snd _ age_aIIoc pcspXr psmouse eudeu sg parport serio_raw rtc_cmos
rtc_core rtc_Iib sr_mod ohci_hcd fIoppy ehci_hcd cdrom sd_mod usbcore

_id: 461, comm: btrfs-transacti Not tainted 2.6.34-BREZEL #1 /UirtuaIBox
_IP: 0_0_10_:[<ffffffff8114c84b_]  [<ffffffff8114c84b_] bio_et_nr_uecs+0_xb/0_x40_
_SP: 0_0_18:ffff880_0_3d169a50_  EFLAGS: 0_0_0_10_246
_AX: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ RBX: 0_0_0_0_0_0_0_0_0_0_0_0_10_0_0_ RCX: 0_0_0_0_0_0_0_0_0_0_1420_90_
_DX: ffffea0_0_0_0_d66a48 RSI: ffff880_0_3e7880_30_ RDI: ffff880_0_3e6f80_0_0_
_BP: ffff880_0_3d169a50_ R0_8: 0_0_0_0_0_0_0_0_0_0_0_0_10_0_0_ R0_9: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_
_10_: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ R11: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ R12: 0_0_0_0_0_0_0_0_0_0_0_0_0_10_0_
_13: ffff880_0_3d169c20_ R14: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ R15: ffff880_0_3e7880_30_
_S:  0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_(0_0_0_0_) GS:ffff880_0_0_1a0_0_0_0_0_(0_0_0_0_) XnIGS:0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_
S:  0_0_10_ DS: 0_0_0_0_ ES: 0_0_0_0_ CR0_: 0_0_0_0_0_0_0_0_80_0_50_0_3b
R2: 0_0_0_0_0_0_0_0_0_0_0_0_0_2b8 CR3: 0_0_0_0_0_0_0_0_3dbe20_0_0_ CR4: 0_0_0_0_0_0_0_0_0_0_0_0_0_6f0_
_DR0_: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ DR1: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ DR2: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_
_DR3: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ DR6: 0_0_0_0_0_0_0_0_ffff0_ff0_ DR7: 0_0_0_0_0_0_0_0_0_0_0_0_0_40_0_
_rocess btrfs-transacti (pid: 461, threadinfo ffff880_0_3d1680_0_0_, tasX ffff880_0_3d339560_)
_tacX:
ffff880_0_3d169ac0_ ffffffff81283f33 0_0_0_0_0_0_0_0_0_0_0_0_0_282 ffffea0_0_0_0_d66a48
<0__ 0_0_0_0_0_4413d169ac0_ 0_0_0_0_0_0_0_0_0_0_0_0_10_0_0_ 0_0_0_0_0_0_0_0_0_0_1420_90_ ffffea0_0_0_0_d66a48
<0__ 0_0_0_0_0_0_0_63d169af0_ ffff880_0_3e7880_30_ 0_0_0_0_0_0_0_0_284120_0_0_ 0_0_0_0_0_0_0_0_0_0_0_0_10_0_0_
aII Trace:
[<ffffffff81283f33_] submit_extent _ age+0_x1e3/0_x260_
[<ffffffff8128720_c_] _ extent_writepage+0_x47c/0_x6c0_
[<ffffffff812853c0__] T end_bio_extent_writepage+0_x0_/0_x180_
[<ffffffff8128788f_] extent_write_fuII _ age+0_x9f/0_xe0_
[<ffffffff812621d0__] T btree _ et_extent+0_x0_/0_x1b0_
[<ffffffff81264151_] btree_writepage+0_xa1/0_x120_
[<ffffffff810_e1f20__] write_one _ age+0_x80_/0_x120_
[<ffffffff8126860_3_] btrfs_write_marXed_extents+0_xe3/0_x160_
[<ffffffff8126880_9_] btrfs_write_and_wait_marXed_extents+0_x29/0_x60_
[<ffffffff81268866_] btrfs_write_and_wait_transaction+0_x26/0_x50_
[<ffffffff81268ef9_] btrfs_commit_transaction+0_x4b9/0_x770_
[<ffffffff810_71980__] T autoremoue_waXe_function+0_x0_/0_x40_
[<ffffffff81268391_] T start_transaction+0_x121/0_x180_
[<ffffffff81262c5b_] transaction_Xthread+0_x21b/0_x250_
[<ffffffff81262a40__] T transaction_Xthread+0_x0_/0_x250_
[<ffffffff810_7140_e_] Xthread+0_x8e/0_xa0_
[<ffffffff810_0_ace4_] XerneI_thread_heIper+0_x4/0_x10_
[<ffffffff810_71380__] T Xthread+0_x0_/0_xa0_
[<ffffffff810_0_ace0__] T XerneI_thread_heIper+0_x0_/0_x10_
ode: 0_2 a8 35 0_0_ 48 c7 c7 6a c8 5a 81 31 c0_ e8 f4 a7 35 0_0_ eb a0_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 48 8b 87 a0_ 0_0_ 0_0_ 0_0_ 55 48 89 e5 <48_ 8b 88 b8 0_2 0_0_ 0_0_ 8b
__,,,d^__ _',___l_,0_,__0 ___0_l',__ _ _o_   __^___,,_l_______0__'l_'____

[-- Attachment #1.4: stack2.txt --]
[-- Type: text/plain, Size: 4982 bytes --]

__,                                           ____________8_______ _8___8___                                         0  __'_  _0_a'
__d_________ _0__0__ _____0o_0____ __ ___ __ __ __0
_13: ffff880_0_3d169c20_ R14: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ R15: ffff880_0_3e7880_30_
_S:  0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_(0_0_0_0_) GS:ffff880_0_0_1a0_0_0_0_0_(0_0_0_0_) XnIGS:0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_
S:  0_0_10_ DS: 0_0_0_0_ ES: 0_0_0_0_ CR0_: 0_0_0_0_0_0_0_0_80_0_50_0_3b
R2: 0_0_0_0_0_0_0_0_0_0_0_0_0_2b8 CR3: 0_0_0_0_0_0_0_0_3dbe20_0_0_ CR4: 0_0_0_0_0_0_0_0_0_0_0_0_0_6f0_
_DR0_: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ DR1: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ DR2: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_
_DR3: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ DR6: 0_0_0_0_0_0_0_0_ffff0_ff0_ DR7: 0_0_0_0_0_0_0_0_0_0_0_0_0_40_0_
_rocess btrfs-transacti (pid: 461, threadinfo ffff880_0_3d1680_0_0_, tasX ffff880_0_3d339560_)
_tacX:
ffff880_0_3d169ac0_ ffffffff81283f33 0_0_0_0_0_0_0_0_0_0_0_0_0_282 ffffea0_0_0_0_d66a48
<0__ 0_0_0_0_0_4413d169ac0_ 0_0_0_0_0_0_0_0_0_0_0_0_10_0_0_ 0_0_0_0_0_0_0_0_0_0_1420_90_ ffffea0_0_0_0_d66a48
<0__ 0_0_0_0_0_0_0_63d169af0_ ffff880_0_3e7880_30_ 0_0_0_0_0_0_0_0_284120_0_0_ 0_0_0_0_0_0_0_0_0_0_0_0_10_0_0_
aII Trace:
[<ffffffff81283f33_] submit_extent _ age+0_x1e3/0_x260_
[<ffffffff8128720_c_] _ extent_writepage+0_x47c/0_x6c0_
[<ffffffff812853c0__] T end_bio_extent_writepage+0_x0_/0_x180_
[<ffffffff8128788f_] extent_write_fuII _ age+0_x9f/0_xe0_
[<ffffffff812621d0__] T btree _ et_extent+0_x0_/0_x1b0_
[<ffffffff81264151_] btree_writepage+0_xa1/0_x120_
[<ffffffff810_e1f20__] write_one _ age+0_x80_/0_x120_
[<ffffffff8126860_3_] btrfs_write_marXed_extents+0_xe3/0_x160_
[<ffffffff8126880_9_] btrfs_write_and_wait_marXed_extents+0_x29/0_x60_
[<ffffffff81268866_] btrfs_write_and_wait_transaction+0_x26/0_x50_
[<ffffffff81268ef9_] btrfs_commit_transaction+0_x4b9/0_x770_
[<ffffffff810_71980__] T autoremoue_waXe_function+0_x0_/0_x40_
[<ffffffff81268391_] T start_transaction+0_x121/0_x180_
[<ffffffff81262c5b_] transaction_Xthread+0_x21b/0_x250_
[<ffffffff81262a40__] T transaction_Xthread+0_x0_/0_x250_
[<ffffffff810_7140_e_] Xthread+0_x8e/0_xa0_
[<ffffffff810_0_ace4_] XerneI_thread_heIper+0_x4/0_x10_
[<ffffffff810_71380__] T Xthread+0_x0_/0_xa0_
[<ffffffff810_0_ace0__] T XerneI_thread_heIper+0_x0_/0_x10_
ode: 0_2 a8 35 0_0_ 48 c7 c7 6a c8 5a 81 31 c0_ e8 f4 a7 35 0_0_ eb a0_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 48 8b 87 a0_ 0_0_ 0_0_ 0_0_ 55 48 89 e5 <48_ 8b 88 b8 0_2 0_0_ 0_0_ 8b
81 34 0_4 0_0_ 0_0_ 0_f b7 91 5a 0_4 0_0_ 0_0_ c9
_IP  [<ffffffff8114c84b_] bio_et_nr_uecs+0_xb/0_x40_
RSP <ffff880_0_3d169a50__
R2: 0_0_0_0_0_0_0_0_0_0_0_0_0_2b8
--[ end trace ab5318656d5fbefa ]---
__UG: unabIe to handIe XerneI NULL pointer dereference at 0_0_0_0_0_0_0_0_0_0_0_0_0_2b8
IP: [<ffffffff8114c84b_] bio _ et_nr_uecs+0_xb/0_x40_
_GD 3d4ac0_67 PUD 3da420_67 PMD 0_
_ops: 0_0_0_0_ [#2] PREEMPT SMP
Iast sysfs fi Ie: /sys/deuices/uirtuaI/dmi/id/product_uuid
PU 0_
oduIes IinXed in: i2c _ iix4 snd_inteI8x0_ i2c_core snd_ac97_codec snd_seq_dummy snd_seq_oss snd_seq_midi_euent snd_seq snd_seq_deuice ac97_bus snd _ cm_oss snd_m
ixer_oss snd _ cm snd_timer ppdeu e10_0_0_ snd thermaI processor soundcore button ac Ip parport _ c snd _ age_aIIoc pcspXr psmouse eudeu sg parport serio_raw rtc_cmos
rtc_core rtc_Iib sr_mod ohci_hcd fIoppy ehci_hcd cdrom sd_mod usbcore

_id: 861, comm: fIush-btrfs-1 Tainted: G    D   2.6.34-BREZEL #1 /UirtuaIBox
_IP: 0_0_10_:[<ffffffff8114c84b_]  [<ffffffff8114c84b_] bio_et_nr_uecs+0_xb/0_x40_
_SP: 0_0_18:ffff880_0_3d4d59a0_  EFLAGS: 0_0_0_10_246
_AX: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ RBX: 0_0_0_0_0_0_0_0_0_0_0_0_10_0_0_ RCX: 0_0_0_0_0_0_0_0_0_0_36e740_
_DX: ffffea0_0_0_0_cf420_8 RSI: ffff880_0_3b8c1458 RDI: ffff880_0_3e6f80_0_0_
_BP: ffff880_0_3d4d59a0_ R0_8: 0_0_0_0_0_0_0_0_0_0_0_0_10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l_l_____0__'l_'____

[-- Attachment #1.5: stack3.txt --]
[-- Type: text/plain, Size: 4431 bytes --]

__,                                           ____________8_______ _8___8___                                         0  __'_  _0_a'
__d_________ _0__0__ _____0o_0____ __ ___ __ __ __0
81 34 0_4 0_0_ 0_0_ 0_f b7 91 5a 0_4 0_0_ 0_0_ c9
_IP  [<ffffffff8114c84b_] bio_et_nr_uecs+0_xb/0_x40_
RSP <ffff880_0_3d169a50__
R2: 0_0_0_0_0_0_0_0_0_0_0_0_0_2b8
--[ end trace ab5318656d5fbefa ]---
__UG: unabIe to handIe XerneI NULL pointer dereference at 0_0_0_0_0_0_0_0_0_0_0_0_0_2b8
IP: [<ffffffff8114c84b_] bio _ et_nr_uecs+0_xb/0_x40_
_GD 3d4ac0_67 PUD 3da420_67 PMD 0_
_ops: 0_0_0_0_ [#2] PREEMPT SMP
Iast sysfs fi Ie: /sys/deuices/uirtuaI/dmi/id/product_uuid
PU 0_
oduIes IinXed in: i2c _ iix4 snd_inteI8x0_ i2c_core snd_ac97_codec snd_seq_dummy snd_seq_oss snd_seq_midi_euent snd_seq snd_seq_deuice ac97_bus snd _ cm_oss snd_m
ixer_oss snd _ cm snd_timer ppdeu e10_0_0_ snd thermaI processor soundcore button ac Ip parport _ c snd _ age_aIIoc pcspXr psmouse eudeu sg parport serio_raw rtc_cmos
rtc_core rtc_Iib sr_mod ohci_hcd fIoppy ehci_hcd cdrom sd_mod usbcore

_id: 861, comm: fIush-btrfs-1 Tainted: G    D   2.6.34-BREZEL #1 /UirtuaIBox
_IP: 0_0_10_:[<ffffffff8114c84b_]  [<ffffffff8114c84b_] bio_et_nr_uecs+0_xb/0_x40_
_SP: 0_0_18:ffff880_0_3d4d59a0_  EFLAGS: 0_0_0_10_246
_AX: 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_ RBX: 0_0_0_0_0_0_0_0_0_0_0_0_10_0_0_ RCX: 0_0_0_0_0_0_0_0_0_0_36e740_
_DX: ffffea0_0_0_0_cf420_8 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_0_10_0_0_ 0_0_0_0_0_0_0_0_0_0_36e740_ ffffea0_0_0_0_cf420_8
<0__ 0_0_0_0_0_0_0_50_0_d22c68 ffff880_0_3b8c1458 0_0_0_0_0_0_0_0_0_0_0_570_0_0_ 0_0_0_0_0_0_0_0_0_0_0_0_10_0_0_
aII Trace:
[<ffffffff81283f33_] submit_extent _ age+0_x1e3/0_x260_
[<ffffffff8128720_c_] _ extent_writepage+0_x47c/0_x6c0_
[<ffffffff812853c0__] T end_bio_extent_writepage+0_x0_/0_x180_
[<ffffffff81287628_] extent_write_cache _ ages.cIone.0_+0_x1d8/0_x350_
[<ffffffff8126a8f0__] T _ btrfs_submit_bio_start+0_x0_/0_x30_
[<ffffffff810_4534d_] T Ioad_baIance+0_xfd/0_x850_
[<ffffffff81287a86_] extent_writepages+0_x46/0_x60_
[<ffffffff8126b270__] T btrfs _ et_extent+0_x0_/0_x8e0_
[<ffffffff8126b0_92_] btrfs_writepages+0_x22/0_x30_
[<ffffffff810_e313c_] do_writepages+0_x1c/0_x30_
[<ffffffff81142147_] writebacX_singIe_inode+0_xd7/0_x320_
[<ffffffff81142d84_] writebacX_inodes_wb+0_x2b4/0_x4a0_
[<ffffffff811430_8a_] wb_writebacX+0_x11a/0_x1f0_
[<ffffffff810_6122a_] T deI_timer_sync+0_x1a/0_x30_
[<ffffffff81143534_] wb_do_writebacX+0_x1e4/0_x20_0_
[<ffffffff8114359b_] bdi_writebacX_tasX+0_x4b/0_xd0_
[<ffffffff810_f2990__] T bdi_start_fn+0_x0_/0_x10_0_
[<ffffffff810_f2a11_] bdi_start_fn+0_x81/0_x10_0_
[<ffffffff810_f2990__] T bdi_start_fn+0_x0_/0_x10_0_
[<ffffffff810_7140_e_] Xthread+0_x8e/0_xa0_
[<ffffffff810_0_ace4_] XerneI_thread_heIper+0_x4/0_x10_
[<ffffffff810_71380__] T Xthread+0_x0_/0_xa0_
[<ffffffff810_0_ace0__] T XerneI_thread_heIper+0_x0_/0_x10_
ode: 0_2 a8 35 0_0_ 48 c7 c7 6a c8 5a 81 31 c0_ e8 f4 a7 35 0_0_ eb a0_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 90_ 48 8b 87 a0_ 0_0_ 0_0_ 0_0_ 55 48 89 e5 <48_ 8b 88 b8 0_2 0_0_ 0_0_ 8b
81 34 0_4 0_0_ 0_0_ 0_f b7 91 5a 0_4 0_0_ 0_0_ c9
_IP  [<ffffffff8114c84b_] bio_et_nr_uecs+0_xb/0_x40_
RSP <ffff880_0_3d4d59a0__
R2: 0_0_0_0_0_0_0_0_0_0_0_0_0_2b8
--[ end trace ab5318656d5fbefb ]---
[B[A
___,,8_'_ _',I___l_,0_,____0 ___0___l_ __ _o_   __^0l_l_____0__'l_'____

[-- Attachment #1.6: stack2.png --]
[-- Type: image/png, Size: 68233 bytes --]

[-- Attachment #1.7: stack3.png --]
[-- Type: image/png, Size: 66911 bytes --]

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Ooops in BTRFS in 2.6.34 / x86_64 when mounting subvolume by name
  2010-05-27 12:27 Ooops in BTRFS in 2.6.34 / x86_64 when mounting subvolume by name armin walland
@ 2010-06-06  6:07 ` Maciej Rutecki
  0 siblings, 0 replies; 2+ messages in thread
From: Maciej Rutecki @ 2010-06-06  6:07 UTC (permalink / raw)
  To: armin walland; +Cc: linux-kernel

I created a Bugzilla entry at 
https://bugzilla.kernel.org/show_bug.cgi?id=16137
for your bug report, please add your address to the CC list in there, thanks!

On czwartek, 27 maja 2010 o 14:27:58 armin walland wrote:
> hi dearest kernel developers, i sent this email to chris mason about a week
> ago but didn't receive any reply so i don't know if it actually reached him
>  so i decided to sent it to the LKML to make sure it would not get lost:
> 
> 
> i would like to report to you an Ooops in btrfs when mounting a subvolume
>  by name. i tried to gather as much information as possible, if you want
>  any more information i will be happy to provide it.
> 
> i first encountered the crash on my hardware machine and i was also able to
> reproduce it on a virtualbox vm with which i compiled this report.
> 
> i started with a default arch linux x86_64 installation, then compiled a
> vanilla 2.6.34 kernel from kernel.org using /proc/config.gz as a basis. the
> only changes i made were to compile BTRFS static and not as a module. when
> installing i used xfs as root filesystem from where i could then copy the
>  data to the btrfs subvolume.
> 
> my goal is to have a btrfs filesystem with 2 subvolumes:
> v_root as the / filesystem
> v_home as the /home filesystem
> 
> reproduce:
> 
> ## get latest btrfs-progs
> [root@myhost ~]# uname -a
> Linux myhost 2.6.34-BREZEL #1 SMP PREEMPT Wed May 19 21:01:33 CEST 2010
>  x86_64 Intel(R) Xeon(R) CPU W3530 @ 2.80GHz GenuineIntel GNU/Linux
> [root@myhost ~]# cd /usr/src
> [root@myhost src]# git clone
> git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstable.gi
> t Initialized empty Git repository in /usr/src/btrfs-progs-unstable/.git/
>  remote: Counting objects: 1794, done.
> remote: Compressing objects: 100% (687/687), done.
> remote: Total 1794 (delta 1355), reused 1418 (delta 1103)
> Receiving objects: 100% (1794/1794), 537.30 KiB, done.
> Resolving deltas: 100% (1355/1355), done.
> 
> -> make && make install
> 
> ## make the filesystem & subvolumes
> mkdir -p /mnt/bt01/
> [root@myhost ~]# mkfs.btrfs -L bt01 /dev/sda3
> WARNING! - Btrfs v0.19-16-g075587c-dirty IS EXPERIMENTAL
> WARNING! - see http://btrfs.wiki.kernel.org before using
> fs created label bt01 on /dev/sda3
>         nodesize 4096 leafsize 4096 sectorsize 4096 size 3.94GB
> Btrfs v0.19-16-g075587c-dirty
> [root@myhost ~]# mount /dev/sda3 /mnt/bt01/
> [root@myhost ~]# cd /mnt/bt01/
> [root@myhost bt01]# btrfsctl -S v_root .
> operation complete
> Btrfs v0.19-16-g075587c-dirty
> [root@myhost bt01]# btrfsctl -S v_home .
> operation complete
> Btrfs v0.19-16-g075587c-dirty
> 
> ## copy the data
> [root@myhost bt01]# cd /
> [root@myhost /]# find . -xdev | cpio -pv /mnt/bt01/v_root/
> [root@myhost ~]# cd /dev/
> [root@myhost ~]# find . -xdev | cpio -pv /mnt/bt01/v_root/dev/
> 
> 
> ## set the v_root subvolume as default subvolume
> [root@myhost ~]# btrfs subvol list /mnt/bt01/
> ID 256 top level 5 path v_root
> ID 257 top level 5 path v_home
> [root@myhost ~]# btrfs subvol set-default 256 /mnt/bt01/
> 
> ## prepare for reboot:
> [root@myhost ~]# umount /mnt/bt01/
> [root@myhost ~]# mount /dev/sda3 /mnt/bt01/
> [root@myhost ~]# vim /mnt/bt01/etc/fstab
> # change /
> [...]
> /dev/sda3 / btrfs defaults 0 1
> 
> [root@myhost ~]# vim /boot/grub/menu.lst
> # (0) Arch Linux BTRFS
> title  Arch Linux BTRFS
> root   (hd0,0)
> kernel /vmlinuz26-BREZEL root=/dev/sda3 ro vga=795
> initrd /kernel26-BREZEL.img
> 
> ## reboot
> [root@myhost ~]# reboot; exit
> 
> ## after reboot:  (looks fine)
> [root@myhost ~]# df -Th
> Filesystem    Type    Size  Used Avail Use% Mounted on
> /dev/sda3    btrfs    4.0G  1.2G  2.3G  34% /
> udev         tmpfs     10M  116K  9.9M   2% /dev
> shm          tmpfs    500M     0  500M   0% /dev/shm
> /dev/sda1     ext3    236M   33M  192M  15% /boot
> 
> ## now try to mount the second subvolume as /home with subvol=v_home
> [root@myhost ~]# mount -o subvol=v_home /dev/sda3 /home/
> mount: /dev/sda3 is not a valid block device
> [root@myhost ~]# 2010 May 21 14:31:04 myhost Oops: 0000 [#1] PREEMPT SMP
> 2010 May 21 14:31:04 myhost last sysfs file:
> /sys/devices/virtual/dmi/id/product_uuid
> 2010 May 21 14:31:04 myhost Stack:
> 2010 May 21 14:31:04 myhost Call Trace:
> 2010 May 21 14:31:04 myhost Code: 02 a8 35 00 48 c7 c7 6a c8 5a 81 31 c0 e8
>  f4 a7 35 00 eb a0 90 90 90 90 90 90 90 90 90 90 90 90 48 8b 87 a0 00 00 00
>  55 48 89 e5 <48> 8b 88 b8 02 00 00 8b 81 34 04 00 00 0f b7 91 5a 04 00 00
>  c9 2010 May 21 14:31:04 myhost CR2: 00000000000002b8
> 2010 May 21 14:31:12 myhost Oops: 0000 [#2] PREEMPT SMP
> 2010 May 21 14:31:12 myhost last sysfs file:
> /sys/devices/virtual/dmi/id/product_uuid
> 
> ########
> i attached 3 screenshots and ocr texts from 3 screens worth of stack trace,
>  i hope they can be helpful.
> ########
> 
> ----------
> REBOOT
> ----------
> 
> ## now do the same thing but use subvolid instead of subvol:
> [root@myhost ~]# btrfs subvolume list /
> ID 256 top level 5 path v_root
> ID 257 top level 5 path v_home
> [root@myhost ~]# mount -o subvolid=257 /dev/sda3 /home/
> [root@myhost ~]# df -Th
> Filesystem    Type    Size  Used Avail Use% Mounted on
> /dev/sda3    btrfs    4.0G  1.2G  2.3G  34% /
> udev         tmpfs     10M  116K  9.9M   2% /dev
> shm          tmpfs    500M     0  500M   0% /dev/shm
> /dev/sda1     ext3    236M   33M  192M  15% /boot
> /dev/sda3    btrfs    4.0G  1.2G  2.3G  34% /home
> 
> works perfectly.
> 
> please let me know if you need anything else and thanks a lot for this
> marvellous filesystem :)
> 

-- 
Maciej Rutecki
http://www.maciek.unixy.pl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-06  6:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-27 12:27 Ooops in BTRFS in 2.6.34 / x86_64 when mounting subvolume by name armin walland
2010-06-06  6:07 ` Maciej Rutecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox