btrfs kernel bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Fedora) |
Expired
|
Undecided
|
|||
linux (Ubuntu) |
Incomplete
|
Medium
|
Unassigned |
Bug Description
I have recently attached a USB disk with btrfs on:
ft@vader:~$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x66af66af
Device Boot Start End Blocks Id System
/dev/sdc1 63 625137344 312568641 83 Linux
The disk was physically connected the whole time, and I was running a backup to it when:
[4597103.123241] usb 1-2: USB disconnect, device number 19
[4597103.124722] scsi: killing requests for dead queue
[4597107.232066] usb 1-2: new high speed USB device number 21 using ehci_hcd
[4597107.367894] scsi21 : usb-storage 1-2:1.0
[4597108.909195] scsi 21:0:0:0: Direct-Access CREATIVE NOMAD MuVo TX 1202 PQ: 0 ANSI: 4
[4597108.909330] scsi: killing requests for dead queue
[4597108.909442] scsi: killing requests for dead queue
[4597108.909541] scsi: killing requests for dead queue
[4597108.909638] scsi: killing requests for dead queue
[4597108.909734] scsi: killing requests for dead queue
[4597108.909830] scsi: killing requests for dead queue
[4597108.909926] scsi: killing requests for dead queue
[4597108.910023] scsi: killing requests for dead queue
[4597108.910958] sd 21:0:0:0: Attached scsi generic sg2 type 0
[4597108.911183] sd 21:0:0:0: [sdc] 509120 2048-byte logical blocks: (1.04 GB/994 MiB)
[4597108.911642] sd 21:0:0:0: [sdc] Write Protect is off
[4597108.911652] sd 21:0:0:0: [sdc] Mode Sense: 38 00 00 00
[4597108.912343] sd 21:0:0:0: [sdc] No Caching mode page present
[4597108.912353] sd 21:0:0:0: [sdc] Assuming drive cache: write through
[4597108.915711] sd 21:0:0:0: [sdc] 509120 2048-byte logical blocks: (1.04 GB/994 MiB)
[4597108.916540] sd 21:0:0:0: [sdc] No Caching mode page present
[4597108.916545] sd 21:0:0:0: [sdc] Assuming drive cache: write through
[4597108.917724] sdc: sdc1
[4597108.919042] sd 21:0:0:0: [sdc] 509120 2048-byte logical blocks: (1.04 GB/994 MiB)
[4597108.920246] sd 21:0:0:0: [sdc] No Caching mode page present
[4597108.920250] sd 21:0:0:0: [sdc] Assuming drive cache: write through
[4597108.920253] sd 21:0:0:0: [sdc] Attached SCSI removable disk
[4597340.005439] sdc: detected capacity change from 1042677760 to 0
[4597342.112740] usb 1-2: USB disconnect, device number 21
[4597342.120506] scsi: killing requests for dead queue
[4597344.284055] usb 1-2: new high speed USB device number 22 using ehci_hcd
[4597344.438798] scsi22 : usb-storage 1-2:1.0
[4597352.117133] scsi 22:0:0:0: Direct-Access Maxtor 3200 0344 PQ: 0 ANSI: 4
[4597352.117259] scsi: killing requests for dead queue
[4597352.117370] scsi: killing requests for dead queue
[4597352.117481] scsi: killing requests for dead queue
[4597352.117578] scsi: killing requests for dead queue
[4597352.117673] scsi: killing requests for dead queue
[4597352.117769] scsi: killing requests for dead queue
[4597352.117865] scsi: killing requests for dead queue
[4597352.117962] scsi: killing requests for dead queue
[4597352.121169] sd 22:0:0:0: Attached scsi generic sg2 type 0
[4597352.122178] sd 22:0:0:0: [sdc] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[4597352.123191] sd 22:0:0:0: [sdc] Write Protect is off
[4597352.123201] sd 22:0:0:0: [sdc] Mode Sense: 17 00 00 00
[4597352.124840] sd 22:0:0:0: [sdc] No Caching mode page present
[4597352.124850] sd 22:0:0:0: [sdc] Assuming drive cache: write through
[4597352.128695] sd 22:0:0:0: [sdc] No Caching mode page present
[4597352.128705] sd 22:0:0:0: [sdc] Assuming drive cache: write through
[4597352.132942] sdc: sdc1
[4597352.136300] sd 22:0:0:0: [sdc] No Caching mode page present
[4597352.136305] sd 22:0:0:0: [sdc] Assuming drive cache: write through
[4597352.136309] sd 22:0:0:0: [sdc] Attached SCSI disk
[4597352.646196] device label disk devid 1 transid 927 /dev/sdc1
[4597386.646330] lost page write due to I/O error on sdb1
[4597386.646386] lost page write due to I/O error on sdb1
[4597386.646441] lost page write due to I/O error on sdb1
[4597386.646448] btrfs: 1 errors while writing supers
[4597386.646496] ------------[ cut here ]------------
[4597386.646591] kernel BUG at /build/
[4597386.646726] invalid opcode: 0000 [#1] SMP
[4597386.646810] Modules linked in: btrfs zlib_deflate libcrc32c pci_stub vboxpci vboxnetadp vboxnetflt vboxdrv nls_iso8859_1 nls_cp437 vfat fat mmc_block tifm_sd usb_storage uas smsc_ircc2 binfmt_misc joydev ppdev hp_wmi sparse_keymap snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event pcmcia snd_seq snd_timer snd_seq_device ipw2200 libipw tifm_7xx1 cfg80211 tifm_core snd yenta_socket psmouse pcmcia_rsrc serio_raw lib80211 pcmcia_core soundcore snd_page_alloc parport_pc tpm_infineon ircomm_tty ircomm irda crc_ccitt dm_crypt cryptd aes_i586 firewire_sbp2 lp parport radeon ttm drm_kms_helper drm firewire_ohci sdhci_pci sdhci firewire_core crc_itu_t tg3 wmi i2c_algo_bit video [last unloaded: vboxdrv]
[4597386.648027]
[4597386.648027] Pid: 13518, comm: btrfs-transacti Not tainted 3.0.0-14-generic #23-Ubuntu Hewlett-Packard HP Compaq nc8230 (PV406ET#ABN)/0934
[4597386.648027] EIP: 0060:[<f92dfc74>] EFLAGS: 00010292 CPU: 0
[4597386.648027] EIP is at write_all_
[4597386.648027] EAX: 0000003c EBX: ec115ba8 ECX: ffffff10 EDX: 00000000
[4597386.648027] ESI: 00000001 EDI: ec00ff18 EBP: ec00ff28 ESP: ec00feec
[4597386.648027] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[4597386.648027] Process btrfs-transacti (pid: 13518, ti=ec00e000 task=eae70cc0 task.ti=ec00e000)
[4597386.648027] Stack:
[4597386.648027] f933a36c 00000001 00000003 00000000 00000000 eb036d6f 00000001 c0dc7800
[4597386.648027] ec115b40 00000001 ec115ba8 ec115ba8 c3915098 eb036d6d eb037898 ec00ff30
[4597386.648027] f92dfca1 ec00ff84 f92e4140 00000000 00000000 00000000 00000001 ebdd4030
[4597386.648027] Call Trace:
[4597386.648027] [<f92dfca1>] write_ctree_
[4597386.648027] [<f92e4140>] btrfs_commit_
[4597386.648027] [<c1066380>] ? add_wait_
[4597386.648027] [<f92e4908>] ? start_transacti
[4597386.648027] [<f92dd4bd>] transaction_
[4597386.648027] [<c102fb9e>] ? complete+0x4e/0x60
[4597386.648027] [<f92dd2b0>] ? btrfs_congested
[4597386.648027] [<c1065b7d>] kthread+0x6d/0x80
[4597386.648027] [<c1065b10>] ? flush_kthread_
[4597386.648027] [<c153517e>] kernel_
[4597386.648027] Code: 4d e0 8b 81 10 01 00 00 8b 80 94 1e 00 00 83 c0 54 e8 41 cc 24 c8 e9 c7 fe ff ff 89 74 24 04 c7 04 24 6c a3 33 f9 e8 51 a7 23 c8 <0f> 0b 89 44 24 04 c7 04 24 6c a3 33 f9 e8 3f a7 23 c8 0f 0b 90
[4597386.648027] EIP: [<f92dfc74>] write_all_
[4597386.690987] ---[ end trace 0e312ebeb1f66ef1 ]---
[4605842.241273] [drm:drm_
[4605865.784468] [drm:drm_
[4605873.229966] [drm:drm_
[4605876.114143] [drm:drm_
[4606168.341556] CPU0: Core temperature above threshold, cpu clock throttled (total events = 132398)
[4606168.341973] CPU0: Core temperature/speed normal
[4656869.086962] CPU0: Core temperature above threshold, cpu clock throttled (total events = 132405)
[4656869.087380] CPU0: Core temperature/speed normal
[4690763.359795] ------------[ cut here ]------------
[4690763.359900] kernel BUG at /build/
[4690763.360033] invalid opcode: 0000 [#2] SMP
[4690763.360117] Modules linked in: btrfs zlib_deflate libcrc32c pci_stub vboxpci vboxnetadp vboxnetflt vboxdrv nls_iso8859_1 nls_cp437 vfat fat mmc_block tifm_sd usb_storage uas smsc_ircc2 binfmt_misc joydev ppdev hp_wmi sparse_keymap snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event pcmcia snd_seq snd_timer snd_seq_device ipw2200 libipw tifm_7xx1 cfg80211 tifm_core snd yenta_socket psmouse pcmcia_rsrc serio_raw lib80211 pcmcia_core soundcore snd_page_alloc parport_pc tpm_infineon ircomm_tty ircomm irda crc_ccitt dm_crypt cryptd aes_i586 firewire_sbp2 lp parport radeon ttm drm_kms_helper drm firewire_ohci sdhci_pci sdhci firewire_core crc_itu_t tg3 wmi i2c_algo_bit video [last unloaded: vboxdrv]
[4690763.360646]
[4690763.360646] Pid: 21480, comm: rsync Tainted: G D 3.0.0-14-generic #23-Ubuntu Hewlett-Packard HP Compaq nc8230 (PV406ET#ABN)/0934
[4690763.360646] EIP: 0060:[<f92ee3e7>] EFLAGS: 00210282 CPU: 0
[4690763.360646] EIP is at btrfs_unlink+
[4690763.360646] EAX: fffffffb EBX: fffffffb ECX: 00de8cb4 EDX: 00de8cb3
[4690763.360646] ESI: ebdd40c0 EDI: f200e89c EBP: f3577ef8 ESP: f3577ed8
[4690763.360646] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[4690763.360646] Process rsync (pid: 21480, ti=f3576000 task=eaed9980 task.ti=f3576000)
[4690763.360646] Stack:
[4690763.360646] ce1ffc9c f2954ca4 00000014 ce1ffc9c cf940800 f2954c80 00000000 f200e89c
[4690763.360646] f3577f18 c1133ba9 00000000 f3577f18 c1132e45 f200e89c f2954c80 00000000
[4690763.360646] f3577f28 c1133c53 f2954c80 ce1ffc9c f3577fa4 c1136277 f3577f94 d75dcd80
[4690763.360646] Call Trace:
[4690763.360646] [<c1133ba9>] vfs_unlink.
[4690763.360646] [<c1132e45>] ? may_delete+
[4690763.360646] [<c1133c53>] vfs_unlink+
[4690763.360646] [<c1136277>] do_unlinkat+
[4690763.360646] [<c1049c10>] ? wait_task_
[4690763.360646] [<c1136ce5>] sys_unlink+
[4690763.360646] [<c152def4>] syscall_
[4690763.360646] [<c1520000>] ? ext3_load_
[4690763.360646] Code: 8c ff ff 8b 45 f0 89 fa e8 87 26 ff ff 83 c4 14 89 d8 5b 5e 5f 5d c3 90 8d 74 26 00 89 c2 89 f0 e8 2f cc ff ff 85 c0 74 cd 0f 0b <0f> 0b 89 c3 eb dc 8d 76 00 55 89 e5 57 56 53 83 ec 5c 3e 8d 74
[4690763.360646] EIP: [<f92ee3e7>] btrfs_unlink+
[4690763.559868] ---[ end trace 0e312ebeb1f66ef2 ]---
[4690776.159267] [drm:drm_
[4690793.322963] ------------[ cut here ]------------
[4690793.324024] kernel BUG at /build/
[4690793.324024] invalid opcode: 0000 [#3] SMP
[4690793.324024] Modules linked in: btrfs zlib_deflate libcrc32c pci_stub vboxpci vboxnetadp vboxnetflt vboxdrv nls_iso8859_1 nls_cp437 vfat fat mmc_block tifm_sd usb_storage uas smsc_ircc2 binfmt_misc joydev ppdev hp_wmi sparse_keymap snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event pcmcia snd_seq snd_timer snd_seq_device ipw2200 libipw tifm_7xx1 cfg80211 tifm_core snd yenta_socket psmouse pcmcia_rsrc serio_raw lib80211 pcmcia_core soundcore snd_page_alloc parport_pc tpm_infineon ircomm_tty ircomm irda crc_ccitt dm_crypt cryptd aes_i586 firewire_sbp2 lp parport radeon ttm drm_kms_helper drm firewire_ohci sdhci_pci sdhci firewire_core crc_itu_t tg3 wmi i2c_algo_bit video [last unloaded: vboxdrv]
[4690793.324024]
[4690793.324024] Pid: 15455, comm: btrfs-endio-wri Tainted: G D 3.0.0-14-generic #23-Ubuntu Hewlett-Packard HP Compaq nc8230 (PV406ET#ABN)/0934
[4690793.324024] EIP: 0060:[<f92e7c0e>] EFLAGS: 00010282 CPU: 0
[4690793.324024] EIP is at insert_
[4690793.324024] EAX: fffffffb EBX: 00000000 ECX: 00de9239 EDX: 00de9238
[4690793.324024] ESI: 00040000 EDI: 00000000 EBP: eaf11e68 ESP: eaf11e08
[4690793.324024] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[4690793.324024] Process btrfs-endio-wri (pid: 15455, ti=eaf10000 task=f2f8e600 task.ti=eaf10000)
[4690793.324024] Stack:
[4690793.324024] 00180000 00000000 001c0000 00000000 eaf11e50 00000000 00000000 00f11e48
[4690793.324024] cf940800 ebdd4060 ce1ffc9c e9ac30e0 cf940800 ce1ffc9c 00000000 00000000
[4690793.324024] eaf11e5c f92e4908 00000001 001bffff 00000000 ce1ffc9c 00040000 ce1ffb98
[4690793.324024] Call Trace:
[4690793.324024] [<f92e4908>] ? start_transacti
[4690793.324024] [<f92ebc91>] btrfs_finish_
[4690793.324024] [<c12827d9>] ? __prop_
[4690793.324024] [<f92ebd0d>] btrfs_writepage
[4690793.324024] [<f9305993>] end_bio_
[4690793.324024] [<f92ebcd0>] ? btrfs_finish_
[4690793.324024] [<c1154a8a>] bio_endio+0x1a/0x40
[4690793.324024] [<f92ddca9>] end_workqueue_
[4690793.324024] [<f9312ce1>] worker_
[4690793.324024] [<c102e467>] ? __wake_
[4690793.324024] [<f9312c70>] ? check_pending_
[4690793.324024] [<c1065b7d>] kthread+0x6d/0x80
[4690793.324024] [<c1065b10>] ? flush_kthread_
[4690793.324024] [<c153517e>] kernel_
[4690793.324024] Code: 5b 5e 5f 5d c3 3d 00 01 00 00 0f 87 27 fe ff ff 8b 41 64 31 d2 e9 1d fe ff ff 8d 76 00 3d 00 01 00 00 77 8e 8b 41 64 31 d2 eb 87 <0f> 0b 0f 0b 0f 0b 0f 0b 8d 76 00 8d bc 27 00 00 00 00 55 89 e5
[4690793.324024] EIP: [<f92e7c0e>] insert_
[4690793.678139] ---[ end trace 0e312ebeb1f66ef3 ]---
Other details:
ft@vader:~$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
ft@vader:~$ apt-cache policy btrfs-tools
btrfs-tools:
Installed: 0.19+20100601-
Candidate: 0.19+20100601-
Version table:
*** 0.19+20100601-
500 http://
100 /var/lib/
ft@vader:~$ uname -a
Linux vader 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:34:47 UTC 2011 i686 i686 i386 GNU/Linux
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
Card0.Amixer.info:
Card hw:0 'ICH6'/'Intel ICH6 with AD1981B at irq 21'
Mixer name : 'Analog Devices AD1981B'
Components : 'AC97a:41445374'
Controls : 25
Simple ctrls : 18
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 031: ID 0d49:3200 Maxtor
MachineType: Hewlett-Packard HP Compaq nc8230 (PV406ET#ABN)
Package: linux (not installed)
PccardctlIdent:
Socket 0:
no product info available
PccardctlStatus:
Socket 0:
no card
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: root=UUID=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.60
Tags: oneiric
Uname: Linux 3.0.0-14-generic i686
UpgradeStatus: Upgraded to oneiric on 2011-12-17 (91 days ago)
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner vboxusers video
WpaSupplicantLog:
dmi.bios.date: 07/22/2005
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68DTV Ver. F.0E
dmi.board.name: 0934
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 43.1A
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.name: HP Compaq nc8230 (PV406ET#ABN)
dmi.product.
dmi.sys.vendor: Hewlett-Packard
Changed in linux (Fedora): | |
importance: | Unknown → Undecided |
status: | Unknown → Expired |
Description of problem: lzo,space_ cache
I have 4 1TB disk in raid10. Everytime I run following fio load, after few hours I got BUG() like below. Btrfs mounted with compress=
#v+
[write-test]
rw=randwrite
ioengine=libaio
blocksize=4k
iodepth=32
size=1512G
#v-
[64354.305737] ------------[ cut here ]------------ inode.c: 1668! rc2.git3. 2.fc17. x86_64 #1 Dell Inc. OptiPlex GX620 /0FH884 ffffffffa012575 1>] [<ffffffffa0125 751>] insert_ reserved_ file_extent. constprop. 50+0x251/ 0x260 [btrfs] 7ffbd0 EFLAGS: 00010286 0(0000) GS:ffff8800db00 0000(0000) knlGS:000000000 0000000 455>] ? start_transacti on+0x85/ 0x3b0 [btrfs] ef2>] btrfs_finish_ orde...
[64354.306009] kernel BUG at fs/btrfs/
[64354.306009] invalid opcode: 0000 [#1] SMP
[64354.306009] CPU 1
[64354.306009] Modules linked in: lockd bnep bluetooth rfkill snd_intel8x0 snd_ac97_codec ac97_bus snd_seq snd_seq_device ppdev snd_pcm snd_timer snd soundcore iTCO_wdt tg3 parport_pc iTCO_vendor_support parport snd_page_alloc dcdbas serio_raw i2c_i801 microcode sunrpc uinput aoe btrfs zlib_deflate libcrc32c sata_promise i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan]
[64354.330470]
[64354.330470] Pid: 5149, comm: btrfs-endio-wri Tainted: G W 3.3.0-0.
[64354.330470] RIP: 0010:[<
[64354.330470] RSP: 0018:ffff880075
[64354.330470] RDX: 0000000000000000 RSI: ffffea00033c3700 RDI: 0000000000000246
[64354.330470] RBP: ffff8800757ffc60 R08: ffff8800cf0dc760 R09: 0000000100110002
[64354.330470] R10: ffff8800cf0dc7f0 R11: 0000000000000000 R12: ffff8800a453a290
[64354.330470] R13: ffff8800cf0dc1d8 R14: ffff8800a3a69868 R15: 0000002e8f0b2000
[64354.330470] FS: 000000000000000
[64354.330470] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[64354.330470] CR2: 0000003238285240 CR3: 0000000023ba8000 CR4: 00000000000006e0
[64354.330470] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[64354.330470] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[64354.330470] Process btrfs-endio-wri (pid: 5149, threadinfo ffff8800757fe000, task ffff880097978000)
[64354.330470] Stack:
[64354.330470] 00ff8800757ffc00 0000000000001000 0000001d7ab1f000 ffff8800a453a290
[64354.330470] 0000000000001000 ffff8800cf207a90 ffff8800757ffc50 ffffffffa0123455
[64354.330470] ffff8800757ffc30 0000000000000000 00000000000000cc ffff8800a3a69868
[64354.330470] Call Trace:
[64354.330470] [<ffffffffa0123
[64354.330470] [<ffffffffa0128