linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download
       [not found] <CAK9QOun4rHcd6om7ZXaiv=ZGMCSufcZTJAFs2Sop=vBhcnxHJQ@mail.gmail.com>
@ 2016-06-15  6:29 ` Paul Verreth
  2016-06-15  6:42   ` Fajar A. Nugraha
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Paul Verreth @ 2016-06-15  6:29 UTC (permalink / raw)
  To: linux-btrfs

Dear all.

When I download a video using  Firefox DownloadHelper addon, the
filesystem suddenly turns read only. Not a coincedence, I tried it
several times, and it happened every time again

Info:
Linux wolfgang 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC
2016 x86_64 x86_64 x86_64 GNU/Linux

btrfs --version
btrfs-progs v4.0

firefox --version
Mozilla Firefox 46.0

package: btrfs-tools
State: installed
Automatically installed: no
Version: 4.0-2
Priority: optional
Section: admin
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 3.518 k
Depends: e2fslibs (>= 1.42), libblkid1 (>= 2.17.2), libc6 (>= 2.8), libcomerr2
         (>= 1.01), liblzo2-2, libuuid1 (>= 2.16), zlib1g (>= 1:1.2.0)
Conflicts: btrfs-tools
Description: Checksumming Copy on Write Filesystem utilities

Homepage: http://btrfs.wiki.kernel.org/


extract from dmesg:

[171145.415378] tree block key (18446744073709551611 48 3255000) level 0
[171145.415379] shared block backref parent 203105845248
[171145.415379] item 4 key (75093737472 168 4096) itemoff 3740 itemsize 51
[171145.415380] extent refs 1 gen 1551545 flags 258
[171145.415381] tree block key (3547221 12 3547219) level 0
[171145.415381] shared block backref parent 75092348928
[171145.415382] item 5 key (75093741568 168 4096) itemoff 3689 itemsize 51
[171145.415382] extent refs 1 gen 1452265 flags 258
[171145.415383] tree block key (3280755 12 3280753) level 0
[171145.415383] shared block backref parent 203105845248
[171145.415384] item 6 key (75093745664 168 4096) itemoff 3638 itemsize 51
[171145.415385] extent refs 1 gen 1452265 flags 258
[171145.415385] tree block key (18446744073709551611 48 3255000) level 0
[171145.415386] shared block backref parent 203105845248
[171145.415386] item 7 key (75093749760 168 4096) itemoff 3587 itemsize 51
[171145.415387] extent refs 1 gen 1514341 flags 258
[171145.415387] tree block key (3473870 1 0) level 0
[171145.415388] shared block backref parent 75091329024
[171145.415388] item 8 key (75093753856 168 4096) itemoff 3536 itemsize 51
[171145.415389] extent refs 1 gen 1597177 flags 258
[171145.415390] tree block key (2921841 108 6848512) level 0
[171145.415390] shared block backref parent 75091030016
[171145.415391] item 9 key (75093757952 168 4096) itemoff 3485 itemsize 51
[171145.415391] extent refs 1 gen 1452265 flags 258
[171145.415392] tree block key (18446744073709551611 48 3254998) level 0
[171145.415392] shared block backref parent 203105845248
[171145.415393] item 10 key (75093766144 168 4096) itemoff 3434 itemsize 51
[171145.415394] extent refs 1 gen 1452265 flags 258
[171145.415394] tree block key (3280757 96 12) level 0
[171145.415395] shared block backref parent 203105845248
[171145.415395] item 11 key (75093770240 168 4096) itemoff 3383 itemsize 51
[171145.415396] extent refs 1 gen 1452265 flags 258
[171145.415396] tree block key (18446744073709551611 48 3254998) level 0
[171145.415397] shared block backref parent 203105845248
[171145.415398] item 12 key (75093774336 168 4096) itemoff 3332 itemsize 51
[171145.415398] extent refs 1 gen 1452265 flags 258
[171145.415399] tree block key (3280738 84 4205285998) level 0
[171145.415399] shared block backref parent 203105845248
[171145.415400] item 13 key (75093778432 168 4096) itemoff 3281 itemsize 51
[171145.415400] extent refs 1 gen 1452265 flags 258
[171145.415401] tree block key (18446744073709551611 48 3254998) level 0
[171145.415401] shared block backref parent 203105845248
[171145.415402] item 14 key (75093782528 168 4096) itemoff 3230 itemsize 51
[171145.415403] extent refs 1 gen 1551545 flags 258
[171145.415403] tree block key (3547236 84 3743801254) level 0
[171145.415404] shared block backref parent 75092348928
[171145.415404] item 15 key (75093790720 168 4096) itemoff 3179 itemsize 51
[171145.415405] extent refs 1 gen 305740 flags 258
[171145.415406] tree block key (831798 96 265) level 0
[171145.415406] shared block backref parent 25729994752
[171145.415407] item 16 key (75093794816 168 4096) itemoff 3128 itemsize 51
[171145.415407] extent refs 1 gen 1525268 flags 2
[171145.415408] tree block key (11528453 1 0) level 0
[171145.415408] tree block backref root 281474976710913
[171145.415409] item 17 key (75093798912 168 4096) itemoff 3077 itemsize 51
[171145.415410] extent refs 1 gen 1452265 flags 258
[171145.415410] tree block key (18446744073709551611 48 3254998) level 0
[171145.415411] shared block backref parent 203105845248
[171145.415411] item 18 key (75093803008 168 4096) itemoff 3026 itemsize 51
[171145.415412] extent refs 1 gen 1452265 flags 258
[171145.415413] tree block key (18446744073709551611 48 3255000) level 0
[171145.415413] shared block backref parent 203105845248
[171145.415414] item 19 key (75093807104 168 4096) itemoff 2975 itemsize 51
[171145.415414] extent refs 1 gen 1141992 flags 2
[171145.415415] tree block key (25600704512 168 4096) level 0
[171145.415415] tree block backref root 2
[171145.415416] item 20 key (75093811200 168 4096) itemoff 2924 itemsize 51
[171145.415417] extent refs 1 gen 1452265 flags 258
[171145.415417] tree block key (3280757 96 31) level 0
[171145.415418] shared block backref parent 203105845248
[171145.415418] item 21 key (75093815296 168 4096) itemoff 2873 itemsize 51
[171145.415419] extent refs 1 gen 1452265 flags 258
[171145.415419] tree block key (18446744073709551611 48 3255000) level 0
[171145.415420] shared block backref parent 203105845248
[171145.415421] item 22 key (75093819392 168 4096) itemoff 2822 itemsize 51
[171145.415421] extent refs 1 gen 1452265 flags 258
[171145.415422] tree block key (3280781 12 3280779) level 0
[171145.415422] shared block backref parent 203105845248
[171145.415423] item 23 key (75093823488 168 4096) itemoff 2771 itemsize 51
[171145.415423] extent refs 1 gen 1452265 flags 258
[171145.415424] tree block key (18446744073709551611 48 3254998) level 0
[171145.415424] shared block backref parent 203105845248
[171145.415425] item 24 key (75093827584 168 4096) itemoff 2720 itemsize 51
[171145.415426] extent refs 1 gen 1452265 flags 258
[171145.415426] tree block key (18446744073709551611 48 3255002) level 0
[171145.415427] shared block backref parent 203105845248
[171145.415427] item 25 key (75093831680 168 4096) itemoff 2669 itemsize 51
[171145.415428] extent refs 1 gen 1788602 flags 2
[171145.415428] tree block key (12540900 108 0) level 0
[171145.415429] tree block backref root 257
[171145.415430] item 26 key (75093835776 168 4096) itemoff 2618 itemsize 51
[171145.415430] extent refs 1 gen 1551545 flags 258
[171145.415431] tree block key (3542361 96 2439) level 0
[171145.415431] shared block backref parent 75084333056
[171145.415432] item 27 key (75093839872 168 4096) itemoff 2567 itemsize 51
[171145.415432] extent refs 1 gen 1551545 flags 258
[171145.415433] tree block key (3542362 12 3542361) level 0
[171145.415433] shared block backref parent 75084333056
[171145.415434] item 28 key (75093843968 168 4096) itemoff 2516 itemsize 51
[171145.415435] extent refs 1 gen 1514341 flags 258
[171145.415435] tree block key (3473886 12 3430958) level 0
[171145.415436] shared block backref parent 75091329024
[171145.415436] item 29 key (75093848064 168 4096) itemoff 2465 itemsize 51
[171145.415437] extent refs 1 gen 1514341 flags 258
[171145.415437] tree block key (3430958 84 3499949893) level 0
[171145.415438] shared block backref parent 75073060864
[171145.415439] item 30 key (75093852160 168 4096) itemoff 2414 itemsize 51
[171145.415439] extent refs 1 gen 1525280 flags 2
[171145.415440] tree block key (18446744073709551611 48 11418544) level 0
[171145.415440] tree block backref root 257
[171145.415441] item 31 key (75093864448 168 4096) itemoff 2363 itemsize 51
[171145.415441] extent refs 1 gen 1551545 flags 258
[171145.415442] tree block key (3542361 96 2470) level 0
[171145.415442] shared block backref parent 75084333056
[171145.415443] item 32 key (75093872640 168 4096) itemoff 2312 itemsize 51
[171145.415444] extent refs 1 gen 1551545 flags 258
[171145.415444] tree block key (3547240 84 3670382251) level 0
[171145.415445] shared block backref parent 75092348928
[171145.415445] item 33 key (75093876736 168 4096) itemoff 2261 itemsize 51
[171145.415446] extent refs 1 gen 1514341 flags 258
[171145.415446] tree block key (3473903 1 0) level 0
[171145.415447] shared block backref parent 75091329024
[171145.415447] item 34 key (75093880832 168 4096) itemoff 2210 itemsize 51
[171145.415448] extent refs 1 gen 1551545 flags 258
[171145.415449] tree block key (3542361 96 2533) level 0
[171145.415449] shared block backref parent 75084333056
[171145.415450] item 35 key (75093884928 168 4096) itemoff 2159 itemsize 51
[171145.415450] extent refs 1 gen 1551545 flags 258
[171145.415451] tree block key (3542361 96 849) level 0
[171145.415451] shared block backref parent 75084333056
[171145.415452] item 36 key (75093901312 168 4096) itemoff 2108 itemsize 51
[171145.415452] extent refs 1 gen 1514341 flags 258
[171145.415453] tree block key (3473919 12 3427943) level 0
[171145.415453] shared block backref parent 75091329024
[171145.415454] item 37 key (75093905408 168 4096) itemoff 2057 itemsize 51
[171145.415455] extent refs 1 gen 1551545 flags 258
[171145.415455] tree block key (3542361 96 940) level 0
[171145.415456] shared block backref parent 75084333056
[171145.415456] item 38 key (75093909504 168 4096) itemoff 2006 itemsize 51
[171145.415457] extent refs 1 gen 1551545 flags 258
[171145.415457] tree block key (3542361 96 1030) level 0
[171145.415458] shared block backref parent 75084333056
[171145.415459] item 39 key (75093913600 168 4096) itemoff 1955 itemsize 51
[171145.415459] extent refs 1 gen 1120636 flags 258
[171145.415460] tree block key (2449439 1 0) level 0
[171145.415460] shared block backref parent 75073007616
[171145.415461] item 40 key (75093917696 168 4096) itemoff 1904 itemsize 51
[171145.415461] extent refs 1 gen 1514341 flags 258
[171145.415462] tree block key (3432448 12 3427943) level 0
[171145.415462] shared block backref parent 75063275520
[171145.415463] item 41 key (75093921792 168 4096) itemoff 1853 itemsize 51
[171145.415464] extent refs 1 gen 1551545 flags 258
[171145.415464] tree block key (3542361 96 1128) level 0
[171145.415465] shared block backref parent 75084333056
[171145.415466] BTRFS error (device sda5): unable to find ref byte nr
75093794816 parent 0 root 257  owner 0 offset 0
[171145.415467] ------------[ cut here ]------------
[171145.415473] WARNING: CPU: 3 PID: 15124 at
/build/linux-HVWSXI/linux-4.2.0/fs/btrfs/extent-tree.c:6264
__btrfs_free_extent.isra.69+0x92f/0xd70 [btrfs]()
[171145.415474] BTRFS: Transaction aborted (error -2)
[171145.415475] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4
nfs lockd grace fscache xt_multiport iptable_filter ip_tables x_tables
binfmt_misc snd_hda_codec_hdmi snd_hda_codec_realtek
snd_hda_codec_generic intel_rapl snd_hda_intel x86_pkg_temp_thermal
snd_hda_codec eeepc_wmi intel_powerclamp asus_wmi snd_hda_core
sparse_keymap nls_iso8859_1 snd_hwdep coretemp snd_pcm kvm_intel kvm
snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
crc32_pclmul aesni_intel aes_x86_64 lrw snd_seq gf128mul glue_helper
ablk_helper cryptd snd_seq_device snd_timer input_leds serio_raw snd
lpc_ich mei_me soundcore mei shpchp 8250_fintek mac_hid tpm_infineon
sunrpc cuse parport_pc ppdev lp parport autofs4 btrfs xor hid_generic
usbhid hid raid6_pq mxm_wmi i915 i2c_algo_bit e1000e drm_kms_helper
ahci drm ptp
[171145.415490]  libahci pps_core wmi video
[171145.415492] CPU: 3 PID: 15124 Comm: kworker/u16:0 Tainted: G
 W       4.2.0-35-generic #40-Ubuntu
[171145.415493] Hardware name: ASUS All Series/Z87-PLUS, BIOS 1707 12/13/2013
[171145.415500] Workqueue: btrfs-extent-refs btrfs_extent_refs_helper [btrfs]
[171145.415501]  0000000000000286 00000000d2e6987f ffff88010d2fba38
ffffffff817f1d7e
[171145.415502]  ffff88010d2fba90 ffffffffc0360388 ffff88010d2fba78
ffffffff8107cb46
[171145.415504]  ffffffffc035e338 000000117bf06000 00000000fffffffe
0000000000000000
[171145.415505] Call Trace:
[171145.415506]  [<ffffffff817f1d7e>] dump_stack+0x63/0x81
[171145.415508]  [<ffffffff8107cb46>] warn_slowpath_common+0x86/0xc0
[171145.415509]  [<ffffffff8107cbd5>] warn_slowpath_fmt+0x55/0x70
[171145.415516]  [<ffffffffc02c0a5f>]
__btrfs_free_extent.isra.69+0x92f/0xd70 [btrfs]
[171145.415522]  [<ffffffffc02c48e6>]
__btrfs_run_delayed_refs+0xa06/0x1160 [btrfs]
[171145.415524]  [<ffffffff810a6a8d>] ? ttwu_do_wakeup+0x1d/0xf0
[171145.415525]  [<ffffffff811e1737>] ? kmem_cache_alloc+0x197/0x210
[171145.415532]  [<ffffffffc02c7d6e>]
btrfs_run_delayed_refs.part.72+0x6e/0x270 [btrfs]
[171145.415539]  [<ffffffffc02c800e>] delayed_ref_async_start+0x7e/0x90 [btrfs]
[171145.415548]  [<ffffffffc030eafa>]
btrfs_scrubparity_helper+0xca/0x2f0 [btrfs]
[171145.415557]  [<ffffffffc030ed5e>] btrfs_extent_refs_helper+0xe/0x10 [btrfs]
[171145.415559]  [<ffffffff81095bc2>] process_one_work+0x162/0x480
[171145.415561]  [<ffffffff81095f2b>] worker_thread+0x4b/0x4c0
[171145.415562]  [<ffffffff81095ee0>] ? process_one_work+0x480/0x480
[171145.415564]  [<ffffffff8109c2b8>] kthread+0xd8/0xf0
[171145.415565]  [<ffffffff8109c1e0>] ? kthread_create_on_node+0x1f0/0x1f0
[171145.415566]  [<ffffffff817f909f>] ret_from_fork+0x3f/0x70
[171145.415567]  [<ffffffff8109c1e0>] ? kthread_create_on_node+0x1f0/0x1f0
[171145.415568] ---[ end trace 42e5b5054b17a8a2 ]---
[171145.415570] BTRFS: error (device sda5) in
__btrfs_free_extent:6264: errno=-2 No such entry
[171145.415571] BTRFS info (device sda5): forced readonly
[171145.415572] BTRFS: error (device sda5) in
btrfs_run_delayed_refs:2788: errno=-2 No such entry
[171145.417770] pending csums is 1732608
[171162.456572] do_trap: 63 callbacks suppressed
[171162.456575] traps: pool[8600] trap int3 ip:7f309931589b
sp:7f30955f8a00 error:0




dmesg | grep -i btrfs
[    2.232863] Btrfs loaded
[    2.285399] BTRFS: device fsid 23fe3bc6-4ec8-48e9-a833-fc83f657f8dc
devid 2 transid 6954176 /dev/sdb5
[    2.285517] BTRFS: device fsid 23fe3bc6-4ec8-48e9-a833-fc83f657f8dc
devid 1 transid 6954176 /dev/sda5
[    2.296021] BTRFS info (device sda5): disk space caching is enabled
[    2.299181] BTRFS: bdev /dev/sda5 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0
[    2.299183] BTRFS: bdev /dev/sdb5 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0
[    2.374511] BTRFS: detected SSD devices, enabling SSD mode
[    2.820257] BTRFS info (device sda5): enabling auto recovery
[    2.820260] BTRFS info (device sda5): disk space caching is enabled


---

I was able to mount RW again using -o recovery.

Based on these messages, I thought it would be usefull to do btrfs
balance but it gave a segmentation fault after some minutes:

[246678.922508] BTRFS: error (device sdb5) in
__btrfs_free_extent:6549: errno=-2 No such entry
[246678.922509] BTRFS info (device sdb5): forced readonly
[246678.922510] BTRFS: error (device sdb5) in
btrfs_run_delayed_refs:2927: errno=-2 No such entry
[246678.922520] BTRFS error (device sdb5): Error removing orphan
entry, stopping orphan cleanup
[246678.922521] BTRFS error (device sdb5): could not do orphan cleanup -22
[246678.937230] BTRFS error (device sdb5): cleaner transaction attach
returned -30
[246695.833019] BTRFS info (device sdb5): enabling auto recovery
[246695.833028] BTRFS info (device sdb5): disk space caching is enabled
[246695.839775] BTRFS info (device sdb5): bdev /dev/sdb5 errs: wr 0,
rd 0, flush 0, corrupt 1, gen 0
[246695.839786] BTRFS info (device sdb5): bdev /dev/sda5 errs: wr 0,
rd 0, flush 0, corrupt 1, gen 0
[246695.926418] BTRFS: detected SSD devices, enabling SSD mode
[246706.522253] BTRFS warning (device sdb5): block group 52634320896
has wrong amount of free space
[246706.522257] BTRFS warning (device sdb5): failed to load free space
cache for block group 52634320896, rebuilding it now
[246706.585890] BTRFS warning (device sdb5): block group 339323387904
has wrong amount of free space
[246706.585892] BTRFS warning (device sdb5): failed to load free space
cache for block group 339323387904, rebuilding it now

Balance:

btrfs balance start -v -dconvert=raid1 -mconvert=raid1 /mnt
Dumping filters: flags 0x7, state 0x0, force is off
  DATA (flags 0x100): converting, target=16, soft is off
  METADATA (flags 0x100): converting, target=16, soft is off
  SYSTEM (flags 0x100): converting, target=16, soft is off


Segmentation fault

Jun  5 15:03:15 ubuntu kernel: [ 2062.544303] BTRFS info (device
sdb5): relocating block group 383447465984 flags 17
Jun  5 15:03:17 ubuntu kernel: [ 2064.483744] BTRFS info (device
sdb5): found 69 extents
Jun  5 15:03:19 ubuntu kernel: [ 2067.085773] BTRFS info (device
sdb5): found 69 extents
Jun  5 15:03:19 ubuntu kernel: [ 2067.131139] BTRFS info (device
sdb5): relocating block group 382373724160 flags 17
Jun  5 15:03:21 ubuntu kernel: [ 2069.100930] BTRFS info (device
sdb5): found 11 extents
Jun  5 15:03:24 ubuntu kernel: [ 2071.741630] BTRFS info (device
sdb5): found 11 extents
Jun  5 15:03:24 ubuntu kernel: [ 2071.788468] BTRFS info (device
sdb5): relocating block group 382340169728 flags 18
Jun  5 15:03:24 ubuntu kernel: [ 2071.834702] BTRFS info (device
sdb5): found 12 extents
Jun  5 15:03:24 ubuntu kernel: [ 2071.876791] BTRFS info (device
sdb5): relocating block group 297447456768 flags 20
Jun  5 15:03:27 ubuntu kernel: [ 2074.572964] ------------[ cut here
]------------
Jun  5 15:03:27 ubuntu kernel: [ 2074.572981] kernel BUG at
/build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/relocation.c:2683!
Jun  5 15:03:27 ubuntu kernel: [ 2074.572999] invalid opcode: 0000 [#1] SMP
Jun  5 15:03:27 ubuntu kernel: [ 2074.573010] Modules linked in:
intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp
snd_hda_codec_realtek snd_hda_codec_hdmi kvm snd_hda_codec_generic
snd_hda_intel irqbypass snd_hda_codec crct10dif_pclmul crc32_pclmul
aesni_intel snd_hda_core snd_hwdep snd_pcm eeepc_wmi aes_x86_64
snd_seq_midi snd_seq_midi_event asus_wmi lrw sparse_keymap snd_rawmidi
gf128mul snd_seq glue_helper snd_seq_device ablk_helper snd_timer
input_leds mei_me snd cryptd serio_raw mei lpc_ich soundcore
8250_fintek mac_hid shpchp tpm_infineon parport_pc ppdev lp parport
autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
dm_log mxm_wmi i915 i2c_algo_bit drm_kms_helper syscopyarea e1000e
sysfillrect sysimgblt fb_sys_fops ahci drm ptp libahci pps_core fjes
wmi video
Jun  5 15:03:27 ubuntu kernel: [ 2074.573231] CPU: 1 PID: 6532 Comm:
btrfs Tainted: G        W       4.4.0-21-generic #37-Ubuntu
Jun  5 15:03:27 ubuntu kernel: [ 2074.573250] Hardware name: ASUS All
Series/Z87-PLUS, BIOS 1707 12/13/2013
Jun  5 15:03:27 ubuntu kernel: [ 2074.573266] task: ffff8803fcf5e040
ti: ffff8803d9ac0000 task.ti: ffff8803d9ac0000
Jun  5 15:03:27 ubuntu kernel: [ 2074.573282] RIP:
0010:[<ffffffffc0369e85>]  [<ffffffffc0369e85>]
do_relocation+0x515/0x520 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573321] RSP:
0018:ffff8803d9ac3940  EFLAGS: 00010202
Jun  5 15:03:27 ubuntu kernel: [ 2074.573333] RAX: 0000000000000001
RBX: ffff88016f5d8b80 RCX: 0000000000000000
Jun  5 15:03:27 ubuntu kernel: [ 2074.573348] RDX: 0000000000000000
RSI: 0000000000000000 RDI: 0000000000000000
Jun  5 15:03:27 ubuntu kernel: [ 2074.573364] RBP: ffff8803d9ac39f8
R08: ffff8803d9ac38f4 R09: 0000160000000000
Jun  5 15:03:27 ubuntu kernel: [ 2074.573379] R10: 0000000000000002
R11: 0000000000000045 R12: ffff8803848b2780
Jun  5 15:03:27 ubuntu kernel: [ 2074.573394] R13: ffff88041d188800
R14: ffff880414bbc580 R15: 0000000000000001
Jun  5 15:03:27 ubuntu kernel: [ 2074.573410] FS:
00007fc33a9eb8c0(0000) GS:ffff88042fa40000(0000)
knlGS:0000000000000000
Jun  5 15:03:27 ubuntu kernel: [ 2074.573427] CS:  0010 DS: 0000 ES:
0000 CR0: 0000000080050033
Jun  5 15:03:27 ubuntu kernel: [ 2074.573439] CR2: 00007f8bd8029000
CR3: 00000003cfddd000 CR4: 00000000001406e0
Jun  5 15:03:27 ubuntu kernel: [ 2074.573455] DR0: 0000000000000000
DR1: 0000000000000000 DR2: 0000000000000000
Jun  5 15:03:27 ubuntu kernel: [ 2074.573470] DR3: 0000000000000000
DR6: 00000000fffe0ff0 DR7: 0000000000000400
Jun  5 15:03:27 ubuntu kernel: [ 2074.573485] Stack:
Jun  5 15:03:27 ubuntu kernel: [ 2074.573490]  0000000000000000
ffff8803fcc8b920 ffff8803c707cf30 ffff8803848b27c0
Jun  5 15:03:27 ubuntu kernel: [ 2074.573509]  ffff8803fcc8b800
ffff880414bbcaa0 0000000100000000 ffff8800c81db640
Jun  5 15:03:27 ubuntu kernel: [ 2074.573528]  ffff8803d9ac3980
ffff8803d9ac3980 ffff8800c71d3300 ffff880414bbc580
Jun  5 15:03:27 ubuntu kernel: [ 2074.573547] Call Trace:
Jun  5 15:03:27 ubuntu kernel: [ 2074.573561]  [<ffffffffc0306a67>] ?
btrfs_block_rsv_refill+0x37/0xb0 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573585]  [<ffffffffc036c50e>]
relocate_tree_blocks+0x4ee/0x5f0 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573607]  [<ffffffffc0366c1d>] ?
tree_insert+0x4d/0x60 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573627]  [<ffffffffc036a415>] ?
add_tree_block+0x155/0x1e0 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573648]  [<ffffffffc036da7a>]
relocate_block_group+0x41a/0x6c0 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573671]  [<ffffffffc0335860>] ?
btrfs_wait_ordered_roots+0x1d0/0x200 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573693]  [<ffffffffc036ded3>]
btrfs_relocate_block_group+0x1b3/0x290 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573717]  [<ffffffffc0343567>]
btrfs_relocate_chunk.isra.38+0x47/0xd0 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573741]  [<ffffffffc03449c9>]
__btrfs_balance+0x5b9/0xba0 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573762]  [<ffffffffc0345240>]
btrfs_balance+0x290/0x5f0 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573783]  [<ffffffffc0351957>]
btrfs_ioctl_balance+0x377/0x390 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573805]  [<ffffffffc03530d0>]
btrfs_ioctl+0x550/0x28b0 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.573820]  [<ffffffff8120018b>] ?
mem_cgroup_try_charge+0x6b/0x1b0
Jun  5 15:03:27 ubuntu kernel: [ 2074.573836]  [<ffffffff8119dfd7>] ?
lru_cache_add_active_or_unevictable+0x27/0xa0
Jun  5 15:03:27 ubuntu kernel: [ 2074.573853]  [<ffffffff811bf87a>] ?
handle_mm_fault+0xcaa/0x1820
Jun  5 15:03:27 ubuntu kernel: [ 2074.573867]  [<ffffffff812200ff>]
do_vfs_ioctl+0x29f/0x490
Jun  5 15:03:27 ubuntu kernel: [ 2074.573881]  [<ffffffff8106b554>] ?
__do_page_fault+0x1b4/0x400
Jun  5 15:03:27 ubuntu kernel: [ 2074.573894]  [<ffffffff81220369>]
SyS_ioctl+0x79/0x90
Jun  5 15:03:27 ubuntu kernel: [ 2074.573907]  [<ffffffff818244f2>]
entry_SYSCALL_64_fastpath+0x16/0x71
Jun  5 15:03:27 ubuntu kernel: [ 2074.573921] Code: fd ff ff 0f 0b 0f
b6 43 70 48 8b b5 58 ff ff ff 48 8d 04 c6 48 8b 10 48 89 53 68 48 c7
00 00 00 00 00 0f b6 53 70 e9 db fe ff ff <0f> 0b 0f 0b e8 b2 6e d1 c0
66 90 0f 1f 44 00 00 55 ba b8 05 00
Jun  5 15:03:27 ubuntu kernel: [ 2074.574009] RIP
[<ffffffffc0369e85>] do_relocation+0x515/0x520 [btrfs]
Jun  5 15:03:27 ubuntu kernel: [ 2074.574032]  RSP <ffff8803d9ac3940>
Jun  5 15:03:27 ubuntu kernel: [ 2074.577177] ---[ end trace
e2081181f6c60d52 ]---



>From this moment on, the filesystem is useless. Every reboot (with
live USB) the crashed balance operation restarts, and gives a
segmentation fault after a while. Booting from the disk is not
possible anymore.

What can I do to repair this problem?

Thank you.
Kind regards.



-- 

Paul Verreth

Het verschil tussen theorie en praktijk
is klein in theorie,
maar in praktijk daarentegen ...

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

* Re: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download
  2016-06-15  6:29 ` Fwd: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download Paul Verreth
@ 2016-06-15  6:42   ` Fajar A. Nugraha
  2016-06-15  7:10     ` Paul Verreth
  2016-06-16 17:22     ` Paul Verreth
  2016-06-15  7:49   ` Fwd: " Duncan
  2016-06-16 22:56   ` Chris Murphy
  2 siblings, 2 replies; 8+ messages in thread
From: Fajar A. Nugraha @ 2016-06-15  6:42 UTC (permalink / raw)
  To: Paul Verreth; +Cc: linux-btrfs

On Wed, Jun 15, 2016 at 1:29 PM, Paul Verreth <paul@verreth.be> wrote:
> Dear all.
>
> When I download a video using  Firefox DownloadHelper addon, the
> filesystem suddenly turns read only. Not a coincedence, I tried it
> several times, and it happened every time again
>
> Info:
> Linux wolfgang 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC
> 2016 x86_64 x86_64 x86_64 GNU/Linux

> Segmentation fault
>
> Jun  5 15:03:15 ubuntu kernel: [ 2062.544303] BTRFS info (device
> sdb5): relocating block group 383447465984 flags 17


> What can I do to repair this problem?

The usual starting advice would be "try with latest kernel and see if
you can still reproduce the problem". Is it ubuntu wily? It'd go end
of in July anyway, so you might want to upgrade to xenial (or at
least, just the kernel, for the purpose of troubleshooting your
problem).

Or even try http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/
(should be usable, but might report some errors/warning due to missing
ubuntu patches)

-- 
Fajar

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

* Re: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download
  2016-06-15  6:42   ` Fajar A. Nugraha
@ 2016-06-15  7:10     ` Paul Verreth
  2016-06-16 17:22     ` Paul Verreth
  1 sibling, 0 replies; 8+ messages in thread
From: Paul Verreth @ 2016-06-15  7:10 UTC (permalink / raw)
  To: Fajar A. Nugraha; +Cc: linux-btrfs

Hello Fajar.

Thanks.

But since I can't boot anymore from the filesystem I tried to repair
the situation using a Xenial Live USB-stick with kernel
4.4.0-22-generic.

Without any success. The balance seems active, but there is no
noticable progress in DMESG, kern.log or using balance status.

Kind regards.

2016-06-15 8:42 GMT+02:00 Fajar A. Nugraha <list@fajar.net>:
> On Wed, Jun 15, 2016 at 1:29 PM, Paul Verreth <paul@verreth.be> wrote:
>> Dear all.
>>
>> When I download a video using  Firefox DownloadHelper addon, the
>> filesystem suddenly turns read only. Not a coincedence, I tried it
>> several times, and it happened every time again
>>
>> Info:
>> Linux wolfgang 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC
>> 2016 x86_64 x86_64 x86_64 GNU/Linux
>
>> Segmentation fault
>>
>> Jun  5 15:03:15 ubuntu kernel: [ 2062.544303] BTRFS info (device
>> sdb5): relocating block group 383447465984 flags 17
>
>
>> What can I do to repair this problem?
>
> The usual starting advice would be "try with latest kernel and see if
> you can still reproduce the problem". Is it ubuntu wily? It'd go end
> of in July anyway, so you might want to upgrade to xenial (or at
> least, just the kernel, for the purpose of troubleshooting your
> problem).
>
> Or even try http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/
> (should be usable, but might report some errors/warning due to missing
> ubuntu patches)
>
> --
> Fajar



-- 

Paul Verreth

Het verschil tussen theorie en praktijk
is klein in theorie,
maar in praktijk daarentegen ...

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

* Re: Fwd: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download
  2016-06-15  6:29 ` Fwd: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download Paul Verreth
  2016-06-15  6:42   ` Fajar A. Nugraha
@ 2016-06-15  7:49   ` Duncan
  2016-06-16 22:56   ` Chris Murphy
  2 siblings, 0 replies; 8+ messages in thread
From: Duncan @ 2016-06-15  7:49 UTC (permalink / raw)
  To: linux-btrfs

Paul Verreth posted on Wed, 15 Jun 2016 08:29:49 +0200 as excerpted:

> When I download a video using  Firefox DownloadHelper addon, the
> filesystem suddenly turns read only. Not a coincedence, I tried it
> several times, and it happened every time again
> 
> Info:
> Linux wolfgang 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC
> 2016 x86_64 x86_64 x86_64 GNU/Linux

Well first of all, that 4.2 kernel version isn't really supported any 
more, except possibly by your distro.  It's not a mainstream LTS kernel, 
with 4.1 and 4.4 being the LTS kernels on either side, and as a short-
term support kernel, its mainstream support lasted thru 4.3...

Of course distros can choose to support whatever kernel they like, but 
then it's them doing the patch backporting and we don't track what 
they've backported and what they haven't.  So if you want to stick with a 
distro-supported kernel, the best option is to get your support from them 
as they know what they've backported and are thus in the best position to 
support it.

As far as this list, 4.6 is the current stable kernel, with 4.7 in 
development, so 4.5 is the earliest non-LTS kernel series that's really 
supported.  Or go LTS series and choose, as mentioned, 4.1 or 4.4.  3.18 
was the LTS previous to that, but it's getting a bit long in tooth by now.

> btrfs --version btrfs-progs v4.0

That too is a bit dated.  While userspace version isn't as critical for 
runtime operations as it's mostly calling on the kernel to do the real 
work, once something goes wrong and you're trying to repair it, userspace 
code becomes vitally important.  With btrfs still stabilizing, not fully 
stable and mature, and still under heavy development, and with userspace 
versions synced to kernelspace releases and about five kernel series 
releases per year, given that 4.6 is current, 4.0 is over a year outdated 
now.  And a lot of bugs have been fixed in that year-plus...

> extract from dmesg:

> [171145.415466] BTRFS error (device sda5): unable to find ref byte
> nr 75093794816 parent 0 root 257  owner 0 offset 0
> [171145.415467] ------------[ cut here ]------------
> [171145.415473] WARNING: CPU: 3 PID: 15124 at
> /build/linux-HVWSXI/linux-4.2.0/fs/btrfs/extent-tree.c:6264
> __btrfs_free_extent.isra.69+0x92f/0xd70 [btrfs]()
> [171145.415474] BTRFS: Transaction aborted (error -2)
> [171145.415492] CPU: 3 PID: 15124 Comm: kworker/u16:0 Tainted: G
>  W       4.2.0-35-generic #40-Ubuntu
> [171145.415493] Hardware name: ASUS All Series/Z87-PLUS, BIOS 1707
> 12/13/2013
> [171145.415500] Workqueue: btrfs-extent-refs
> btrfs_extent_refs_helper [btrfs]

[...]

> [171145.415568] ---[ end trace 42e5b5054b17a8a2 ]---
> [171145.415570] BTRFS: error (device sda5) in __btrfs_free_extent:6264:
> errno=-2 No such entry
> [171145.415571] BTRFS info (device sda5): forced
> readonly [171145.415572] BTRFS: error (device sda5) in
> btrfs_run_delayed_refs:2788: errno=-2 No such entry


I'm not a dev, just a btrfs user and list regular, so the stack dump 
doesn't mean a whole lot to me.  What I can say, however, is that yes, 
this is btrfs involved...

And it's pretty standard for btrfs to force itself read-only when it sees 
an unexpected error that could otherwise lead to further damage, with the 
force to read-only thus protecting the filesystem from that further 
damage.

> I was able to mount RW again using -o recovery.
> 
> Based on these messages, I thought it would be usefull to do btrfs
> balance but it gave a segmentation fault after some minutes:
> 
> [246678.922508] BTRFS: error (device sdb5) in __btrfs_free_extent:6549:
> errno=-2 No such entry
> [246678.922509] BTRFS info (device sdb5): forced readonly
> [246678.922510] BTRFS: error (device sdb5) in
> btrfs_run_delayed_refs:2927: errno=-2 No such entry
> [246678.922520] BTRFS error (device sdb5): Error removing orphan entry,
> stopping orphan cleanup
> [246678.922521] BTRFS error (device sdb5): could not do orphan
> cleanup -22
> [246678.937230] BTRFS error (device sdb5): cleaner transaction attach
> returned -30

FWIW, orphans are files that were deleted when the file was in-use, 
typically *.so libraries that were replaced on package update, but where 
some executable that was running at the time was still using them, so 
they couldn't be fully deleted as there was still and open reference to 
them.

Normally, orphans will be deleted on umount or for the root filesystem, 
on (normal) remount-read-only, after whatever executables that were 
holding them open have terminated or been killed.  However, that doesn't 
have a chance to happen when the filesystem is forced read-only due to 
error, as above, so then they have to be cleaned up when the filesystem 
is remounted writable once again.

Btrfs does this normally, so this would have been unrelated to the 
balance.

> Balance:
> 
> btrfs balance start -v -dconvert=raid1 -mconvert=raid1 /mnt
> Dumping filters: flags 0x7, state 0x0, force is off
> DATA (flags 0x100): converting, target=16, soft is off
> METADATA (flags 0x100): converting, target=16, soft is off
> SYSTEM (flags 0x100): converting, target=16, soft is off
> 
> 
> Segmentation fault

So you were doing a balance-convert to raid1, not just a regular 
balance...

> 
> Jun  5 15:03:15 ubuntu kernel: [ 2062.544303] BTRFS info (device sdb5):
> relocating block group 383447465984 flags 17
> Jun  5 15:03:17 ubuntu kernel: [ 2064.483744] BTRFS info (device sdb5):
> found 69 extents
> Jun  5 15:03:19 ubuntu kernel: [ 2067.085773] BTRFS info (device sdb5):
> found 69 extents

This is balance doing its normal thing, relocating chunks aka block-
groups.

> Jun  5 15:03:27 ubuntu kernel: [ 2074.572964]
> ------------[ cut here ]------------
> Jun  5 15:03:27 ubuntu kernel: [ 2074.572981] kernel BUG at
> /build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/relocation.c:2683!
> Jun  5 15:03:27 ubuntu kernel: [ 2074.572999] invalid opcode: 0000 [#1]

Invalid opcode 0000 is btrfs' way of forcing a kernel abort when it 
detects a critical error.  As such it's a common notification to see in 
logs where something goes wrong.

Again, I'm not a dev so the dump and traces mean little to me, and I'm 
deleting them here.

> From this moment on, the filesystem is useless. Every reboot (with live
> USB) the crashed balance operation restarts, and gives a segmentation
> fault after a while. Booting from the disk is not possible anymore.
> 
> What can I do to repair this problem?

There's a mount option to cancel a pending balance.  See the btrfs (5) 
manpage (note, man 5 btrfs, not the default (8) btrfs you'd get without 
passing a man-section parameter) or look on the wiki if you want more 
than I mention here...

skip_balance

After mounting with that option, run btrfs balance cancel to cancel the 
balance.  That should keep it from trying to restart the balance again at 
the next mount.


Then I'd take the opportunity to freshen your backups if you need to.  
With btrfs not fully stable and mature yet, backups are of course 
strongly recommended, but that doesn't mean they're absolutely the 
freshest and this is a good opportunity to be sure they're current before 
trying anything else.

Then I'd suggest updating to a current kernel and userspace, and seeing 
if the problem persists.  If further repair is necessary when running on 
a current kernel, try a scrub first, then (with backups freshened) a 
balance and/or a btrfs check.  Note that btrfs check without further 
options should be a read-only operation.  You can post the results from 
that and ask if it's safe to run check with the --repair option, or if 
you should try something else.

Of course, particularly once you have fresh backups available, another 
option is to simply blow away the existing filesystem and recreate it 
with a new mkfs.btrfs.  Then you can restore your data from the backups 
to a freshly created filesystem, and hopefully be fine. =:^)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


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

* Re: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download
  2016-06-15  6:42   ` Fajar A. Nugraha
  2016-06-15  7:10     ` Paul Verreth
@ 2016-06-16 17:22     ` Paul Verreth
  2016-06-16 17:23       ` Paul Verreth
  2016-06-17  1:13       ` Qu Wenruo
  1 sibling, 2 replies; 8+ messages in thread
From: Paul Verreth @ 2016-06-16 17:22 UTC (permalink / raw)
  To: Fajar A. Nugraha; +Cc: linux-btrfs

Hello.

New test:

I booted from a live USB-stick with all updates installed
(4.4.0-21-generic), and after mount of the btrfs filesystem, the
balance continued, and a bug appeared in kern.log.

The filesystem turned readonly
An important directory was missing.


Jun 16 17:38:08 ubuntu kernel: [  195.482907] BTRFS info (device
sdb5): enabling auto recovery
Jun 16 17:38:08 ubuntu kernel: [  195.482914] BTRFS info (device
sdb5): disk space caching is enabled
Jun 16 17:38:08 ubuntu kernel: [  195.488335] BTRFS info (device
sdb5): bdev /dev/sdb5 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0
Jun 16 17:38:08 ubuntu kernel: [  195.488340] BTRFS info (device
sdb5): bdev /dev/sda5 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0
Jun 16 17:38:08 ubuntu kernel: [  195.559146] BTRFS: detected SSD
devices, enabling SSD mode
Jun 16 17:38:08 ubuntu kernel: [  195.560224] BTRFS: checking UUID tree
Jun 16 17:38:08 ubuntu kernel: [  195.560226] BTRFS info (device
sdb5): continuing balance
Jun 16 17:38:08 ubuntu kernel: [  195.560229] BTRFS info (device
sdb5): force reducing metadata integrity
Jun 16 17:38:08 ubuntu kernel: [  195.583979] BTRFS info (device
sdb5): relocating block group 297447456768 flags 20
Jun 16 17:38:12 ubuntu kernel: [  199.340273] ------------[ cut here
]------------
Jun 16 17:38:12 ubuntu kernel: [  199.340290] kernel BUG at
/build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/relocation.c:2683!
Jun 16 17:38:12 ubuntu kernel: [  199.340308] invalid opcode: 0000 [#1] SMP
Jun 16 17:38:12 ubuntu kernel: [  199.340319] Modules linked in:
intel_rapl snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp
snd_hda_codec_hdmi snd_hda_codec_generic coretemp snd_hda_intel
snd_hda_codec kvm snd_hda_core snd_hwdep snd_pcm irqbypass
snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
crc32_pclmul snd_seq aesni_intel eeepc_wmi snd_seq_device aes_x86_64
asus_wmi input_leds lrw snd_timer sparse_keymap mei_me lpc_ich
serio_raw mei snd gf128mul 8250_fintek soundcore glue_helper shpchp
ablk_helper cryptd tpm_infineon mac_hid parport_pc ppdev lp parport
autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
dm_log i915 mxm_wmi i2c_algo_bit drm_kms_helper syscopyarea
sysfillrect sysimgblt e1000e fb_sys_fops drm ahci ptp libahci pps_core
fjes wmi video
Jun 16 17:38:12 ubuntu kernel: [  199.340540] CPU: 1 PID: 7602 Comm:
btrfs-balance Not tainted 4.4.0-21-generic #37-Ubuntu
Jun 16 17:38:12 ubuntu kernel: [  199.340558] Hardware name: ASUS All
Series/Z87-PLUS, BIOS 1707 12/13/2013
Jun 16 17:38:12 ubuntu kernel: [  199.340573] task: ffff8804173b3700
ti: ffff8803ec36c000 task.ti: ffff8803ec36c000
Jun 16 17:38:12 ubuntu kernel: [  199.340589] RIP:
0010:[<ffffffffc033be85>]  [<ffffffffc033be85>]
do_relocation+0x515/0x520 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.340631] RSP:
0018:ffff8803ec36fb00  EFLAGS: 00010202
Jun 16 17:38:12 ubuntu kernel: [  199.340643] RAX: 0000000000000001
RBX: ffff8800bc72ca80 RCX: 0000000000000000
Jun 16 17:38:12 ubuntu kernel: [  199.340658] RDX: 0000000000000000
RSI: 0000000000000000 RDI: 0000000000000000
Jun 16 17:38:12 ubuntu kernel: [  199.340674] RBP: ffff8803ec36fbb8
R08: ffff8803ec36fab4 R09: 0000160000000000
Jun 16 17:38:12 ubuntu kernel: [  199.340689] R10: 0000000000000002
R11: 0000000000000045 R12: ffff8803ec33f680
Jun 16 17:38:12 ubuntu kernel: [  199.340704] R13: ffff88041b110000
R14: ffff88040026e180 R15: 0000000000000001
Jun 16 17:38:12 ubuntu kernel: [  199.340720] FS:
0000000000000000(0000) GS:ffff88042fa40000(0000)
knlGS:0000000000000000
Jun 16 17:38:12 ubuntu kernel: [  199.340738] CS:  0010 DS: 0000 ES:
0000 CR0: 0000000080050033
Jun 16 17:38:12 ubuntu kernel: [  199.340750] CR2: 0000000001263860
CR3: 0000000001e0a000 CR4: 00000000001406e0
Jun 16 17:38:12 ubuntu kernel: [  199.340766] DR0: 0000000000000000
DR1: 0000000000000000 DR2: 0000000000000000
Jun 16 17:38:12 ubuntu kernel: [  199.340781] DR3: 0000000000000000
DR6: 00000000fffe0ff0 DR7: 0000000000000400
Jun 16 17:38:12 ubuntu kernel: [  199.340796] Stack:
Jun 16 17:38:12 ubuntu kernel: [  199.340801]  0000000000000000
ffff880405bf7920 ffff880415279870 ffff8803ec33f6c0
Jun 16 17:38:12 ubuntu kernel: [  199.340820]  ffff880405bf7800
ffff88040026ece0 0000000100000000 ffff8803ed251be0
Jun 16 17:38:12 ubuntu kernel: [  199.340839]  ffff8803ec36fb40
ffff8803ec36fb40 ffff8800c4956780 ffff88040026e180
Jun 16 17:38:12 ubuntu kernel: [  199.340858] Call Trace:
Jun 16 17:38:12 ubuntu kernel: [  199.340873]  [<ffffffffc02d8a67>] ?
btrfs_block_rsv_refill+0x37/0xb0 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.340897]  [<ffffffffc033e50e>]
relocate_tree_blocks+0x4ee/0x5f0 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.340920]  [<ffffffffc0338c1d>] ?
tree_insert+0x4d/0x60 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.340940]  [<ffffffffc033c415>] ?
add_tree_block+0x155/0x1e0 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.340961]  [<ffffffffc033fa7a>]
relocate_block_group+0x41a/0x6c0 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.340985]  [<ffffffffc0307860>] ?
btrfs_wait_ordered_roots+0x1d0/0x200 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.341008]  [<ffffffffc033fed3>]
btrfs_relocate_block_group+0x1b3/0x290 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.341032]  [<ffffffffc0315567>]
btrfs_relocate_chunk.isra.38+0x47/0xd0 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.341056]  [<ffffffffc03169c9>]
__btrfs_balance+0x5b9/0xba0 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.341073]  [<ffffffff810d8b59>] ?
vprintk_default+0x29/0x40
Jun 16 17:38:12 ubuntu kernel: [  199.341093]  [<ffffffffc0317240>]
btrfs_balance+0x290/0x5f0 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.341113]  [<ffffffffc03175fb>]
balance_kthread+0x5b/0x80 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.341133]  [<ffffffffc03175a0>] ?
btrfs_balance+0x5f0/0x5f0 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.341148]  [<ffffffff810a0528>]
kthread+0xd8/0xf0
Jun 16 17:38:12 ubuntu kernel: [  199.341160]  [<ffffffff810a0450>] ?
kthread_create_on_node+0x1e0/0x1e0
Jun 16 17:38:12 ubuntu kernel: [  199.341176]  [<ffffffff8182488f>]
ret_from_fork+0x3f/0x70
Jun 16 17:38:12 ubuntu kernel: [  199.341188]  [<ffffffff810a0450>] ?
kthread_create_on_node+0x1e0/0x1e0
Jun 16 17:38:12 ubuntu kernel: [  199.341202] Code: fd ff ff 0f 0b 0f
b6 43 70 48 8b b5 58 ff ff ff 48 8d 04 c6 48 8b 10 48 89 53 68 48 c7
00 00 00 00 00 0f b6 53 70 e9 db fe ff ff <0f> 0b 0f 0b e8 b2 4e d4 c0
66 90 0f 1f 44 00 00 55 ba b8 05 00
Jun 16 17:38:12 ubuntu kernel: [  199.341289] RIP
[<ffffffffc033be85>] do_relocation+0x515/0x520 [btrfs]
Jun 16 17:38:12 ubuntu kernel: [  199.341312]  RSP <ffff8803ec36fb00>
Jun 16 17:38:12 ubuntu kernel: [  199.344515] ---[ end trace
b4381932edc4fa48 ]---
Jun 16 17:38:13 ubuntu kernel: [  200.443946] ------------[ cut here
]------------
Jun 16 17:38:13 ubuntu kernel: [  200.443967] WARNING: CPU: 7 PID:
7604 at /build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/extent-tree.c:6543
__btrfs_free_extent.isra.70+0x898/0xd30 [btrfs]()
Jun 16 17:38:13 ubuntu kernel: [  200.443968] Modules linked in:
intel_rapl snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp
snd_hda_codec_hdmi snd_hda_codec_generic coretemp snd_hda_intel
snd_hda_codec kvm snd_hda_core snd_hwdep snd_pcm irqbypass
snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
crc32_pclmul snd_seq aesni_intel eeepc_wmi snd_seq_device aes_x86_64
asus_wmi input_leds lrw snd_timer sparse_keymap mei_me lpc_ich
serio_raw mei snd gf128mul 8250_fintek soundcore glue_helper shpchp
ablk_helper cryptd tpm_infineon mac_hid parport_pc ppdev lp parport
autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
dm_log i915 mxm_wmi i2c_algo_bit drm_kms_helper syscopyarea
sysfillrect sysimgblt e1000e fb_sys_fops drm ahci ptp libahci pps_core
fjes wmi video
Jun 16 17:38:13 ubuntu kernel: [  200.444000] CPU: 7 PID: 7604 Comm:
ls Tainted: G      D         4.4.0-21-generic #37-Ubuntu
Jun 16 17:38:13 ubuntu kernel: [  200.444001] Hardware name: ASUS All
Series/Z87-PLUS, BIOS 1707 12/13/2013
Jun 16 17:38:13 ubuntu kernel: [  200.444002]  0000000000000286
0000000074438112 ffff8800b959f690 ffffffff813e93c3
Jun 16 17:38:13 ubuntu kernel: [  200.444003]  0000000000000000
ffffffffc036f468 ffff8800b959f6c8 ffffffff81080f62
Jun 16 17:38:13 ubuntu kernel: [  200.444005]  00000005f96c9000
00000000fffffffe 0000000000000000 ffff88041d0c6000
Jun 16 17:38:13 ubuntu kernel: [  200.444006] Call Trace:
Jun 16 17:38:13 ubuntu kernel: [  200.444011]  [<ffffffff813e93c3>]
dump_stack+0x63/0x90
Jun 16 17:38:13 ubuntu kernel: [  200.444014]  [<ffffffff81080f62>]
warn_slowpath_common+0x82/0xc0
Jun 16 17:38:13 ubuntu kernel: [  200.444016]  [<ffffffff810810aa>]
warn_slowpath_null+0x1a/0x20
Jun 16 17:38:13 ubuntu kernel: [  200.444026]  [<ffffffffc02cf458>]
__btrfs_free_extent.isra.70+0x898/0xd30 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444028]  [<ffffffff8119aa75>] ?
__set_page_dirty_nobuffers+0xe5/0x140
Jun 16 17:38:13 ubuntu kernel: [  200.444036]  [<ffffffffc02c9500>] ?
btrfs_previous_extent_item+0x90/0x110 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444044]  [<ffffffffc02d346b>]
__btrfs_run_delayed_refs+0xaab/0x11f0 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444052]  [<ffffffffc02d69fd>]
btrfs_run_delayed_refs+0x7d/0x2a0 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444062]  [<ffffffffc0308c61>] ?
release_extent_buffer+0x61/0xd0 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444071]  [<ffffffffc02eb60a>]
btrfs_should_end_transaction+0x5a/0x60 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444080]  [<ffffffffc02f7017>]
btrfs_truncate_inode_items+0x737/0xd20 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444089]  [<ffffffffc02f8577>]
btrfs_evict_inode+0x477/0x5c0 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444092]  [<ffffffff810c3a50>] ?
autoremove_wake_function+0x40/0x40
Jun 16 17:38:13 ubuntu kernel: [  200.444094]  [<ffffffff81227d5e>]
evict+0xbe/0x190
Jun 16 17:38:13 ubuntu kernel: [  200.444096]  [<ffffffff81228041>]
iput+0x1c1/0x240
Jun 16 17:38:13 ubuntu kernel: [  200.444106]  [<ffffffffc02f9117>]
btrfs_orphan_cleanup+0x1f7/0x400 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444116]  [<ffffffffc02f96ae>]
btrfs_lookup_dentry+0x38e/0x520 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444126]  [<ffffffffc02f9852>]
btrfs_lookup+0x12/0x40 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444128]  [<ffffffff8121649d>]
lookup_real+0x1d/0x60
Jun 16 17:38:13 ubuntu kernel: [  200.444129]  [<ffffffff81217d62>]
__lookup_hash+0x42/0x60
Jun 16 17:38:13 ubuntu kernel: [  200.444131]  [<ffffffff812194d6>]
walk_component+0x226/0x300
Jun 16 17:38:13 ubuntu kernel: [  200.444133]  [<ffffffff8121a61d>]
path_lookupat+0x5d/0x110
Jun 16 17:38:13 ubuntu kernel: [  200.444135]  [<ffffffff8121c291>]
filename_lookup+0xb1/0x180
Jun 16 17:38:13 ubuntu kernel: [  200.444144]  [<ffffffffc02ecdb9>] ?
__btrfs_end_transaction+0x1d9/0x340 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444146]  [<ffffffff811eb137>] ?
kmem_cache_alloc+0x187/0x1f0
Jun 16 17:38:13 ubuntu kernel: [  200.444148]  [<ffffffff8121be96>] ?
getname_flags+0x56/0x1f0
Jun 16 17:38:13 ubuntu kernel: [  200.444150]  [<ffffffff8121c436>]
user_path_at_empty+0x36/0x40
Jun 16 17:38:13 ubuntu kernel: [  200.444151]  [<ffffffff812115e6>]
vfs_fstatat+0x66/0xc0
Jun 16 17:38:13 ubuntu kernel: [  200.444152]  [<ffffffff81211ba1>]
SYSC_newlstat+0x31/0x60
Jun 16 17:38:13 ubuntu kernel: [  200.444154]  [<ffffffff81211cde>]
SyS_newlstat+0xe/0x10
Jun 16 17:38:13 ubuntu kernel: [  200.444156]  [<ffffffff818244f2>]
entry_SYSCALL_64_fastpath+0x16/0x71
Jun 16 17:38:13 ubuntu kernel: [  200.444158] ---[ end trace
b4381932edc4fa49 ]---
Jun 16 17:38:13 ubuntu kernel: [  200.444160] BTRFS info (device
sdb5): leaf 515623321600 total ptrs 23 free space 2229
Jun 16 17:38:13 ubuntu kernel: [  200.444161]     item 0 key
(25659432960 168 4096) itemoff 3944 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444162]         extent refs 1
gen 6963944 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444163]         tree block key
(36385751040 168 53248) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444164]         tree block backref root 2
Jun 16 17:38:13 ubuntu kernel: [  200.444165]     item 1 key
(25659437056 168 4096) itemoff 3893 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444166]         extent refs 1
gen 7097652 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444166]         tree block key
(18446744073709551606 128 483529912320) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444167]         tree block backref root 7
Jun 16 17:38:13 ubuntu kernel: [  200.444168]     item 2 key
(25659441152 168 4096) itemoff 3842 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444169]         extent refs 1
gen 7097652 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444170]         tree block key
(18446744073709551606 128 483533946880) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444170]         tree block backref root 7
Jun 16 17:38:13 ubuntu kernel: [  200.444171]     item 3 key
(25659445248 168 4096) itemoff 3791 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444172]         extent refs 1
gen 6963944 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444173]         tree block key
(36389679104 168 4096) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444173]         tree block backref root 2
Jun 16 17:38:13 ubuntu kernel: [  200.444174]     item 4 key
(25659449344 168 4096) itemoff 3740 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444175]         extent refs 1
gen 331079 flags 258
Jun 16 17:38:13 ubuntu kernel: [  200.444176]         tree block key
(18446744073709551611 48 797595) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444177]         shared block
backref parent 25719652352
Jun 16 17:38:13 ubuntu kernel: [  200.444178]     item 5 key
(25659453440 168 4096) itemoff 3689 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444178]         extent refs 1
gen 7097652 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444179]         tree block key
(18446744073709551606 128 483537981440) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444180]         tree block backref root 7
Jun 16 17:38:13 ubuntu kernel: [  200.444181]     item 6 key
(25659457536 168 4096) itemoff 3638 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444181]         extent refs 1
gen 7097652 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444182]         tree block key
(18446744073709551606 128 483542016000) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444183]         tree block backref root 7
Jun 16 17:38:13 ubuntu kernel: [  200.444184]     item 7 key
(25659461632 168 4096) itemoff 3587 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444184]         extent refs 1
gen 6963944 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444185]         tree block key
(36394369024 168 8192) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444186]         tree block backref root 2
Jun 16 17:38:13 ubuntu kernel: [  200.444187]     item 8 key
(25659465728 168 4096) itemoff 3536 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444187]         extent refs 1
gen 1250494 flags 258
Jun 16 17:38:13 ubuntu kernel: [  200.444188]         tree block key
(77172 96 424) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444189]         shared block
backref parent 202993840128
Jun 16 17:38:13 ubuntu kernel: [  200.444190]     item 9 key
(25659469824 168 4096) itemoff 3485 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444190]         extent refs 1
gen 7097652 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444191]         tree block key
(18446744073709551606 128 483546050560) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444192]         tree block backref root 7
Jun 16 17:38:13 ubuntu kernel: [  200.444193]     item 10 key
(25659473920 168 4096) itemoff 3434 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444193]         extent refs 1
gen 7097652 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444194]         tree block key
(18446744073709551606 128 483550085120) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444195]         tree block backref root 7
Jun 16 17:38:13 ubuntu kernel: [  200.444195]     item 11 key
(25659478016 168 4096) itemoff 3383 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444196]         extent refs 1
gen 6963944 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444197]         tree block key
(36394938368 168 106496) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444197]         tree block
backref root 281474976710658
Jun 16 17:38:13 ubuntu kernel: [  200.444198]     item 12 key
(25659482112 168 4096) itemoff 3332 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444199]         extent refs 1
gen 7097652 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444200]         tree block key
(18446744073709551606 128 483554119680) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444200]         tree block backref root 7
Jun 16 17:38:13 ubuntu kernel: [  200.444201]     item 13 key
(25659486208 168 4096) itemoff 3272 itemsize 60
Jun 16 17:38:13 ubuntu kernel: [  200.444202]         extent refs 2
gen 1999492 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444203]         tree block key
(13164463 1 0) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444203]         shared block
backref parent 515618316288
Jun 16 17:38:13 ubuntu kernel: [  200.444204]         shared block
backref parent 75169234944
Jun 16 17:38:13 ubuntu kernel: [  200.444205]     item 14 key
(25659490304 168 4096) itemoff 3221 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444206]         extent refs 1
gen 331079 flags 258
Jun 16 17:38:13 ubuntu kernel: [  200.444207]         tree block key
(18446744073709551611 48 795747) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444207]         shared block
backref parent 25719652352
Jun 16 17:38:13 ubuntu kernel: [  200.444208]     item 15 key
(25659502592 168 4096) itemoff 3170 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444209]         extent refs 1
gen 331079 flags 258
Jun 16 17:38:13 ubuntu kernel: [  200.444210]         tree block key
(18446744073709551611 48 797595) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444210]         shared block
backref parent 25719652352
Jun 16 17:38:13 ubuntu kernel: [  200.444211]     item 16 key
(25659506688 168 4096) itemoff 3119 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444212]         extent refs 1
gen 7097652 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444213]         tree block key
(18446744073709551606 128 483558154240) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444214]         tree block backref root 7
Jun 16 17:38:13 ubuntu kernel: [  200.444214]     item 17 key
(25659510784 168 4096) itemoff 3068 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444215]         extent refs 1
gen 7097652 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444216]         tree block key
(18446744073709551606 128 483562188800) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444216]         tree block backref root 7
Jun 16 17:38:13 ubuntu kernel: [  200.444217]     item 18 key
(25659514880 168 4096) itemoff 3008 itemsize 60
Jun 16 17:38:13 ubuntu kernel: [  200.444217]         extent refs 2
gen 1824756 flags 2
Jun 16 17:38:13 ubuntu kernel: [  200.444218]         tree block key
(12691756 1 0) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444219]         shared block
backref parent 515636400128
Jun 16 17:38:13 ubuntu kernel: [  200.444219]         shared block
backref parent 297494913024
Jun 16 17:38:13 ubuntu kernel: [  200.444220]     item 19 key
(25659518976 168 4096) itemoff 2957 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444221]         extent refs 1
gen 331079 flags 258
Jun 16 17:38:13 ubuntu kernel: [  200.444222]         tree block key
(18446744073709551611 48 795747) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444223]         shared block
backref parent 25719652352
Jun 16 17:38:13 ubuntu kernel: [  200.444224]     item 20 key
(25659523072 168 4096) itemoff 2906 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444224]         extent refs 1
gen 636672 flags 258
Jun 16 17:38:13 ubuntu kernel: [  200.444225]         tree block key
(101100 96 2199) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444226]         shared block
backref parent 75175694336
Jun 16 17:38:13 ubuntu kernel: [  200.444227]     item 21 key
(25659531264 168 4096) itemoff 2855 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444228]         extent refs 1
gen 636672 flags 258
Jun 16 17:38:13 ubuntu kernel: [  200.444228]         tree block key
(101100 96 2258) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444229]         shared block
backref parent 75175694336
Jun 16 17:38:13 ubuntu kernel: [  200.444230]     item 22 key
(25659535360 168 4096) itemoff 2804 itemsize 51
Jun 16 17:38:13 ubuntu kernel: [  200.444231]         extent refs 1
gen 331079 flags 258
Jun 16 17:38:13 ubuntu kernel: [  200.444231]         tree block key
(18446744073709551611 48 797595) level 0
Jun 16 17:38:13 ubuntu kernel: [  200.444232]         shared block
backref parent 25719652352
Jun 16 17:38:13 ubuntu kernel: [  200.444234] BTRFS error (device
sdb5): unable to find ref byte nr 25659478016 parent 0 root 2  owner 0
offset 0
Jun 16 17:38:13 ubuntu kernel: [  200.444234] ------------[ cut here
]------------
Jun 16 17:38:13 ubuntu kernel: [  200.444243] WARNING: CPU: 7 PID:
7604 at /build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/extent-tree.c:6549
__btrfs_free_extent.isra.70+0x8ff/0xd30 [btrfs]()
Jun 16 17:38:13 ubuntu kernel: [  200.444243] BTRFS: Transaction
aborted (error -2)
Jun 16 17:38:13 ubuntu kernel: [  200.444244] Modules linked in:
intel_rapl snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp
snd_hda_codec_hdmi snd_hda_codec_generic coretemp snd_hda_intel
snd_hda_codec kvm snd_hda_core snd_hwdep snd_pcm irqbypass
snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
crc32_pclmul snd_seq aesni_intel eeepc_wmi snd_seq_device aes_x86_64
asus_wmi input_leds lrw snd_timer sparse_keymap mei_me lpc_ich
serio_raw mei snd gf128mul 8250_fintek soundcore glue_helper shpchp
ablk_helper cryptd tpm_infineon mac_hid parport_pc ppdev lp parport
autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
dm_log i915 mxm_wmi i2c_algo_bit drm_kms_helper syscopyarea
sysfillrect sysimgblt e1000e fb_sys_fops drm ahci ptp libahci pps_core
fjes wmi video
Jun 16 17:38:13 ubuntu kernel: [  200.444268] CPU: 7 PID: 7604 Comm:
ls Tainted: G      D W       4.4.0-21-generic #37-Ubuntu
Jun 16 17:38:13 ubuntu kernel: [  200.444269] Hardware name: ASUS All
Series/Z87-PLUS, BIOS 1707 12/13/2013
Jun 16 17:38:13 ubuntu kernel: [  200.444269]  0000000000000286
0000000074438112 ffff8800b959f638 ffffffff813e93c3
Jun 16 17:38:13 ubuntu kernel: [  200.444271]  ffff8800b959f680
ffffffffc036f468 ffff8800b959f670 ffffffff81080f62
Jun 16 17:38:13 ubuntu kernel: [  200.444273]  00000005f96c9000
00000000fffffffe 0000000000000000 ffff88041d0c6000
Jun 16 17:38:13 ubuntu kernel: [  200.444274] Call Trace:
Jun 16 17:38:13 ubuntu kernel: [  200.444276]  [<ffffffff813e93c3>]
dump_stack+0x63/0x90
Jun 16 17:38:13 ubuntu kernel: [  200.444278]  [<ffffffff81080f62>]
warn_slowpath_common+0x82/0xc0
Jun 16 17:38:13 ubuntu kernel: [  200.444279]  [<ffffffff81080ffc>]
warn_slowpath_fmt+0x5c/0x80
Jun 16 17:38:13 ubuntu kernel: [  200.444287]  [<ffffffffc02cf4bf>]
__btrfs_free_extent.isra.70+0x8ff/0xd30 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444289]  [<ffffffff8119aa75>] ?
__set_page_dirty_nobuffers+0xe5/0x140
Jun 16 17:38:13 ubuntu kernel: [  200.444297]  [<ffffffffc02c9500>] ?
btrfs_previous_extent_item+0x90/0x110 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444305]  [<ffffffffc02d346b>]
__btrfs_run_delayed_refs+0xaab/0x11f0 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444313]  [<ffffffffc02d69fd>]
btrfs_run_delayed_refs+0x7d/0x2a0 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444324]  [<ffffffffc0308c61>] ?
release_extent_buffer+0x61/0xd0 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444333]  [<ffffffffc02eb60a>]
btrfs_should_end_transaction+0x5a/0x60 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444342]  [<ffffffffc02f7017>]
btrfs_truncate_inode_items+0x737/0xd20 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444353]  [<ffffffffc02f8577>]
btrfs_evict_inode+0x477/0x5c0 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444355]  [<ffffffff810c3a50>] ?
autoremove_wake_function+0x40/0x40
Jun 16 17:38:13 ubuntu kernel: [  200.444356]  [<ffffffff81227d5e>]
evict+0xbe/0x190
Jun 16 17:38:13 ubuntu kernel: [  200.444358]  [<ffffffff81228041>]
iput+0x1c1/0x240
Jun 16 17:38:13 ubuntu kernel: [  200.444367]  [<ffffffffc02f9117>]
btrfs_orphan_cleanup+0x1f7/0x400 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444377]  [<ffffffffc02f96ae>]
btrfs_lookup_dentry+0x38e/0x520 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444387]  [<ffffffffc02f9852>]
btrfs_lookup+0x12/0x40 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444388]  [<ffffffff8121649d>]
lookup_real+0x1d/0x60
Jun 16 17:38:13 ubuntu kernel: [  200.444390]  [<ffffffff81217d62>]
__lookup_hash+0x42/0x60
Jun 16 17:38:13 ubuntu kernel: [  200.444392]  [<ffffffff812194d6>]
walk_component+0x226/0x300
Jun 16 17:38:13 ubuntu kernel: [  200.444393]  [<ffffffff8121a61d>]
path_lookupat+0x5d/0x110
Jun 16 17:38:13 ubuntu kernel: [  200.444395]  [<ffffffff8121c291>]
filename_lookup+0xb1/0x180
Jun 16 17:38:13 ubuntu kernel: [  200.444404]  [<ffffffffc02ecdb9>] ?
__btrfs_end_transaction+0x1d9/0x340 [btrfs]
Jun 16 17:38:13 ubuntu kernel: [  200.444406]  [<ffffffff811eb137>] ?
kmem_cache_alloc+0x187/0x1f0
Jun 16 17:38:13 ubuntu kernel: [  200.444408]  [<ffffffff8121be96>] ?
getname_flags+0x56/0x1f0
Jun 16 17:38:13 ubuntu kernel: [  200.444410]  [<ffffffff8121c436>]
user_path_at_empty+0x36/0x40
Jun 16 17:38:13 ubuntu kernel: [  200.444411]  [<ffffffff812115e6>]
vfs_fstatat+0x66/0xc0
Jun 16 17:38:13 ubuntu kernel: [  200.444412]  [<ffffffff81211ba1>]
SYSC_newlstat+0x31/0x60
Jun 16 17:38:13 ubuntu kernel: [  200.444413]  [<ffffffff81211cde>]
SyS_newlstat+0xe/0x10
Jun 16 17:38:13 ubuntu kernel: [  200.444415]  [<ffffffff818244f2>]
entry_SYSCALL_64_fastpath+0x16/0x71
Jun 16 17:38:13 ubuntu kernel: [  200.444416] ---[ end trace
b4381932edc4fa4a ]---
Jun 16 17:38:13 ubuntu kernel: [  200.444418] BTRFS: error (device
sdb5) in __btrfs_free_extent:6549: errno=-2 No such entry
Jun 16 17:38:13 ubuntu kernel: [  200.444419] BTRFS info (device
sdb5): forced readonly
Jun 16 17:38:13 ubuntu kernel: [  200.444420] BTRFS: error (device
sdb5) in btrfs_run_delayed_refs:2927: errno=-2 No such entry
Jun 16 17:38:13 ubuntu kernel: [  200.444430] BTRFS error (device
sdb5): Error removing orphan entry, stopping orphan cleanup
Jun 16 17:38:13 ubuntu kernel: [  200.444431] BTRFS error (device
sdb5): could not do orphan cleanup -22

2016-06-15 8:42 GMT+02:00 Fajar A. Nugraha <list@fajar.net>:
> On Wed, Jun 15, 2016 at 1:29 PM, Paul Verreth <paul@verreth.be> wrote:
>> Dear all.
>>
>> When I download a video using  Firefox DownloadHelper addon, the
>> filesystem suddenly turns read only. Not a coincedence, I tried it
>> several times, and it happened every time again
>>
>> Info:
>> Linux wolfgang 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC
>> 2016 x86_64 x86_64 x86_64 GNU/Linux
>
>> Segmentation fault
>>
>> Jun  5 15:03:15 ubuntu kernel: [ 2062.544303] BTRFS info (device
>> sdb5): relocating block group 383447465984 flags 17
>
>
>> What can I do to repair this problem?
>
> The usual starting advice would be "try with latest kernel and see if
> you can still reproduce the problem". Is it ubuntu wily? It'd go end
> of in July anyway, so you might want to upgrade to xenial (or at
> least, just the kernel, for the purpose of troubleshooting your
> problem).
>
> Or even try http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/
> (should be usable, but might report some errors/warning due to missing
> ubuntu patches)
>
> --
> Fajar



-- 

Paul Verreth

Het verschil tussen theorie en praktijk
is klein in theorie,
maar in praktijk daarentegen ...

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

* Re: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download
  2016-06-16 17:22     ` Paul Verreth
@ 2016-06-16 17:23       ` Paul Verreth
  2016-06-17  1:13       ` Qu Wenruo
  1 sibling, 0 replies; 8+ messages in thread
From: Paul Verreth @ 2016-06-16 17:23 UTC (permalink / raw)
  To: Fajar A. Nugraha; +Cc: linux-btrfs

Hello.


After rescue:

root@ubuntu:/mnt# btrfs rescue chunk-recover -v /dev/sda5
All Devices:
    Device: id = 2, name = /dev/sdb5
    Device: id = 1, name = /dev/sda5

Scanning: 184371421184 in dev0, 184315789312 in
dev1chunk-recover.c:129: process_extent_buffer: Assertion
`exist->nmirrors >= BTRFS_MAX_MIRRORS` failed.
btrfs[0x429b3a]
btrfs[0x42aa3c]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76fa)[0x7f477ff086fa]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f477fc3eb5d]
root@ubuntu:/mnt# btrfs rescue super-recover -v /dev/sda5
All Devices:
    Device: id = 2, name = /dev/sdb5
    Device: id = 1, name = /dev/sda5

Before Recovering:
    [All good supers]:
        device name = /dev/sdb5
        superblock bytenr = 65536

        device name = /dev/sdb5
        superblock bytenr = 67108864

        device name = /dev/sdb5
        superblock bytenr = 274877906944

        device name = /dev/sda5
        superblock bytenr = 65536

        device name = /dev/sda5
        superblock bytenr = 67108864

        device name = /dev/sda5
        superblock bytenr = 274877906944

    [All bad supers]:

All supers are valid, no need to recover


No messages in kern.log

Kind regards.

2016-06-16 19:22 GMT+02:00 Paul Verreth <paul@verreth.be>:
> Hello.
>
> New test:
>
> I booted from a live USB-stick with all updates installed
> (4.4.0-21-generic), and after mount of the btrfs filesystem, the
> balance continued, and a bug appeared in kern.log.
>
> The filesystem turned readonly
> An important directory was missing.
>
>
> Jun 16 17:38:08 ubuntu kernel: [  195.482907] BTRFS info (device
> sdb5): enabling auto recovery
> Jun 16 17:38:08 ubuntu kernel: [  195.482914] BTRFS info (device
> sdb5): disk space caching is enabled
> Jun 16 17:38:08 ubuntu kernel: [  195.488335] BTRFS info (device
> sdb5): bdev /dev/sdb5 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0
> Jun 16 17:38:08 ubuntu kernel: [  195.488340] BTRFS info (device
> sdb5): bdev /dev/sda5 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0
> Jun 16 17:38:08 ubuntu kernel: [  195.559146] BTRFS: detected SSD
> devices, enabling SSD mode
> Jun 16 17:38:08 ubuntu kernel: [  195.560224] BTRFS: checking UUID tree
> Jun 16 17:38:08 ubuntu kernel: [  195.560226] BTRFS info (device
> sdb5): continuing balance
> Jun 16 17:38:08 ubuntu kernel: [  195.560229] BTRFS info (device
> sdb5): force reducing metadata integrity
> Jun 16 17:38:08 ubuntu kernel: [  195.583979] BTRFS info (device
> sdb5): relocating block group 297447456768 flags 20
> Jun 16 17:38:12 ubuntu kernel: [  199.340273] ------------[ cut here
> ]------------
> Jun 16 17:38:12 ubuntu kernel: [  199.340290] kernel BUG at
> /build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/relocation.c:2683!
> Jun 16 17:38:12 ubuntu kernel: [  199.340308] invalid opcode: 0000 [#1] SMP
> Jun 16 17:38:12 ubuntu kernel: [  199.340319] Modules linked in:
> intel_rapl snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp
> snd_hda_codec_hdmi snd_hda_codec_generic coretemp snd_hda_intel
> snd_hda_codec kvm snd_hda_core snd_hwdep snd_pcm irqbypass
> snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
> crc32_pclmul snd_seq aesni_intel eeepc_wmi snd_seq_device aes_x86_64
> asus_wmi input_leds lrw snd_timer sparse_keymap mei_me lpc_ich
> serio_raw mei snd gf128mul 8250_fintek soundcore glue_helper shpchp
> ablk_helper cryptd tpm_infineon mac_hid parport_pc ppdev lp parport
> autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
> usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
> dm_log i915 mxm_wmi i2c_algo_bit drm_kms_helper syscopyarea
> sysfillrect sysimgblt e1000e fb_sys_fops drm ahci ptp libahci pps_core
> fjes wmi video
> Jun 16 17:38:12 ubuntu kernel: [  199.340540] CPU: 1 PID: 7602 Comm:
> btrfs-balance Not tainted 4.4.0-21-generic #37-Ubuntu
> Jun 16 17:38:12 ubuntu kernel: [  199.340558] Hardware name: ASUS All
> Series/Z87-PLUS, BIOS 1707 12/13/2013
> Jun 16 17:38:12 ubuntu kernel: [  199.340573] task: ffff8804173b3700
> ti: ffff8803ec36c000 task.ti: ffff8803ec36c000
> Jun 16 17:38:12 ubuntu kernel: [  199.340589] RIP:
> 0010:[<ffffffffc033be85>]  [<ffffffffc033be85>]
> do_relocation+0x515/0x520 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340631] RSP:
> 0018:ffff8803ec36fb00  EFLAGS: 00010202
> Jun 16 17:38:12 ubuntu kernel: [  199.340643] RAX: 0000000000000001
> RBX: ffff8800bc72ca80 RCX: 0000000000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340658] RDX: 0000000000000000
> RSI: 0000000000000000 RDI: 0000000000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340674] RBP: ffff8803ec36fbb8
> R08: ffff8803ec36fab4 R09: 0000160000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340689] R10: 0000000000000002
> R11: 0000000000000045 R12: ffff8803ec33f680
> Jun 16 17:38:12 ubuntu kernel: [  199.340704] R13: ffff88041b110000
> R14: ffff88040026e180 R15: 0000000000000001
> Jun 16 17:38:12 ubuntu kernel: [  199.340720] FS:
> 0000000000000000(0000) GS:ffff88042fa40000(0000)
> knlGS:0000000000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340738] CS:  0010 DS: 0000 ES:
> 0000 CR0: 0000000080050033
> Jun 16 17:38:12 ubuntu kernel: [  199.340750] CR2: 0000000001263860
> CR3: 0000000001e0a000 CR4: 00000000001406e0
> Jun 16 17:38:12 ubuntu kernel: [  199.340766] DR0: 0000000000000000
> DR1: 0000000000000000 DR2: 0000000000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340781] DR3: 0000000000000000
> DR6: 00000000fffe0ff0 DR7: 0000000000000400
> Jun 16 17:38:12 ubuntu kernel: [  199.340796] Stack:
> Jun 16 17:38:12 ubuntu kernel: [  199.340801]  0000000000000000
> ffff880405bf7920 ffff880415279870 ffff8803ec33f6c0
> Jun 16 17:38:12 ubuntu kernel: [  199.340820]  ffff880405bf7800
> ffff88040026ece0 0000000100000000 ffff8803ed251be0
> Jun 16 17:38:12 ubuntu kernel: [  199.340839]  ffff8803ec36fb40
> ffff8803ec36fb40 ffff8800c4956780 ffff88040026e180
> Jun 16 17:38:12 ubuntu kernel: [  199.340858] Call Trace:
> Jun 16 17:38:12 ubuntu kernel: [  199.340873]  [<ffffffffc02d8a67>] ?
> btrfs_block_rsv_refill+0x37/0xb0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340897]  [<ffffffffc033e50e>]
> relocate_tree_blocks+0x4ee/0x5f0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340920]  [<ffffffffc0338c1d>] ?
> tree_insert+0x4d/0x60 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340940]  [<ffffffffc033c415>] ?
> add_tree_block+0x155/0x1e0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340961]  [<ffffffffc033fa7a>]
> relocate_block_group+0x41a/0x6c0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340985]  [<ffffffffc0307860>] ?
> btrfs_wait_ordered_roots+0x1d0/0x200 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341008]  [<ffffffffc033fed3>]
> btrfs_relocate_block_group+0x1b3/0x290 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341032]  [<ffffffffc0315567>]
> btrfs_relocate_chunk.isra.38+0x47/0xd0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341056]  [<ffffffffc03169c9>]
> __btrfs_balance+0x5b9/0xba0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341073]  [<ffffffff810d8b59>] ?
> vprintk_default+0x29/0x40
> Jun 16 17:38:12 ubuntu kernel: [  199.341093]  [<ffffffffc0317240>]
> btrfs_balance+0x290/0x5f0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341113]  [<ffffffffc03175fb>]
> balance_kthread+0x5b/0x80 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341133]  [<ffffffffc03175a0>] ?
> btrfs_balance+0x5f0/0x5f0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341148]  [<ffffffff810a0528>]
> kthread+0xd8/0xf0
> Jun 16 17:38:12 ubuntu kernel: [  199.341160]  [<ffffffff810a0450>] ?
> kthread_create_on_node+0x1e0/0x1e0
> Jun 16 17:38:12 ubuntu kernel: [  199.341176]  [<ffffffff8182488f>]
> ret_from_fork+0x3f/0x70
> Jun 16 17:38:12 ubuntu kernel: [  199.341188]  [<ffffffff810a0450>] ?
> kthread_create_on_node+0x1e0/0x1e0
> Jun 16 17:38:12 ubuntu kernel: [  199.341202] Code: fd ff ff 0f 0b 0f
> b6 43 70 48 8b b5 58 ff ff ff 48 8d 04 c6 48 8b 10 48 89 53 68 48 c7
> 00 00 00 00 00 0f b6 53 70 e9 db fe ff ff <0f> 0b 0f 0b e8 b2 4e d4 c0
> 66 90 0f 1f 44 00 00 55 ba b8 05 00
> Jun 16 17:38:12 ubuntu kernel: [  199.341289] RIP
> [<ffffffffc033be85>] do_relocation+0x515/0x520 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341312]  RSP <ffff8803ec36fb00>
> Jun 16 17:38:12 ubuntu kernel: [  199.344515] ---[ end trace
> b4381932edc4fa48 ]---
> Jun 16 17:38:13 ubuntu kernel: [  200.443946] ------------[ cut here
> ]------------
> Jun 16 17:38:13 ubuntu kernel: [  200.443967] WARNING: CPU: 7 PID:
> 7604 at /build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/extent-tree.c:6543
> __btrfs_free_extent.isra.70+0x898/0xd30 [btrfs]()
> Jun 16 17:38:13 ubuntu kernel: [  200.443968] Modules linked in:
> intel_rapl snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp
> snd_hda_codec_hdmi snd_hda_codec_generic coretemp snd_hda_intel
> snd_hda_codec kvm snd_hda_core snd_hwdep snd_pcm irqbypass
> snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
> crc32_pclmul snd_seq aesni_intel eeepc_wmi snd_seq_device aes_x86_64
> asus_wmi input_leds lrw snd_timer sparse_keymap mei_me lpc_ich
> serio_raw mei snd gf128mul 8250_fintek soundcore glue_helper shpchp
> ablk_helper cryptd tpm_infineon mac_hid parport_pc ppdev lp parport
> autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
> usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
> dm_log i915 mxm_wmi i2c_algo_bit drm_kms_helper syscopyarea
> sysfillrect sysimgblt e1000e fb_sys_fops drm ahci ptp libahci pps_core
> fjes wmi video
> Jun 16 17:38:13 ubuntu kernel: [  200.444000] CPU: 7 PID: 7604 Comm:
> ls Tainted: G      D         4.4.0-21-generic #37-Ubuntu
> Jun 16 17:38:13 ubuntu kernel: [  200.444001] Hardware name: ASUS All
> Series/Z87-PLUS, BIOS 1707 12/13/2013
> Jun 16 17:38:13 ubuntu kernel: [  200.444002]  0000000000000286
> 0000000074438112 ffff8800b959f690 ffffffff813e93c3
> Jun 16 17:38:13 ubuntu kernel: [  200.444003]  0000000000000000
> ffffffffc036f468 ffff8800b959f6c8 ffffffff81080f62
> Jun 16 17:38:13 ubuntu kernel: [  200.444005]  00000005f96c9000
> 00000000fffffffe 0000000000000000 ffff88041d0c6000
> Jun 16 17:38:13 ubuntu kernel: [  200.444006] Call Trace:
> Jun 16 17:38:13 ubuntu kernel: [  200.444011]  [<ffffffff813e93c3>]
> dump_stack+0x63/0x90
> Jun 16 17:38:13 ubuntu kernel: [  200.444014]  [<ffffffff81080f62>]
> warn_slowpath_common+0x82/0xc0
> Jun 16 17:38:13 ubuntu kernel: [  200.444016]  [<ffffffff810810aa>]
> warn_slowpath_null+0x1a/0x20
> Jun 16 17:38:13 ubuntu kernel: [  200.444026]  [<ffffffffc02cf458>]
> __btrfs_free_extent.isra.70+0x898/0xd30 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444028]  [<ffffffff8119aa75>] ?
> __set_page_dirty_nobuffers+0xe5/0x140
> Jun 16 17:38:13 ubuntu kernel: [  200.444036]  [<ffffffffc02c9500>] ?
> btrfs_previous_extent_item+0x90/0x110 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444044]  [<ffffffffc02d346b>]
> __btrfs_run_delayed_refs+0xaab/0x11f0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444052]  [<ffffffffc02d69fd>]
> btrfs_run_delayed_refs+0x7d/0x2a0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444062]  [<ffffffffc0308c61>] ?
> release_extent_buffer+0x61/0xd0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444071]  [<ffffffffc02eb60a>]
> btrfs_should_end_transaction+0x5a/0x60 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444080]  [<ffffffffc02f7017>]
> btrfs_truncate_inode_items+0x737/0xd20 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444089]  [<ffffffffc02f8577>]
> btrfs_evict_inode+0x477/0x5c0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444092]  [<ffffffff810c3a50>] ?
> autoremove_wake_function+0x40/0x40
> Jun 16 17:38:13 ubuntu kernel: [  200.444094]  [<ffffffff81227d5e>]
> evict+0xbe/0x190
> Jun 16 17:38:13 ubuntu kernel: [  200.444096]  [<ffffffff81228041>]
> iput+0x1c1/0x240
> Jun 16 17:38:13 ubuntu kernel: [  200.444106]  [<ffffffffc02f9117>]
> btrfs_orphan_cleanup+0x1f7/0x400 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444116]  [<ffffffffc02f96ae>]
> btrfs_lookup_dentry+0x38e/0x520 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444126]  [<ffffffffc02f9852>]
> btrfs_lookup+0x12/0x40 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444128]  [<ffffffff8121649d>]
> lookup_real+0x1d/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444129]  [<ffffffff81217d62>]
> __lookup_hash+0x42/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444131]  [<ffffffff812194d6>]
> walk_component+0x226/0x300
> Jun 16 17:38:13 ubuntu kernel: [  200.444133]  [<ffffffff8121a61d>]
> path_lookupat+0x5d/0x110
> Jun 16 17:38:13 ubuntu kernel: [  200.444135]  [<ffffffff8121c291>]
> filename_lookup+0xb1/0x180
> Jun 16 17:38:13 ubuntu kernel: [  200.444144]  [<ffffffffc02ecdb9>] ?
> __btrfs_end_transaction+0x1d9/0x340 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444146]  [<ffffffff811eb137>] ?
> kmem_cache_alloc+0x187/0x1f0
> Jun 16 17:38:13 ubuntu kernel: [  200.444148]  [<ffffffff8121be96>] ?
> getname_flags+0x56/0x1f0
> Jun 16 17:38:13 ubuntu kernel: [  200.444150]  [<ffffffff8121c436>]
> user_path_at_empty+0x36/0x40
> Jun 16 17:38:13 ubuntu kernel: [  200.444151]  [<ffffffff812115e6>]
> vfs_fstatat+0x66/0xc0
> Jun 16 17:38:13 ubuntu kernel: [  200.444152]  [<ffffffff81211ba1>]
> SYSC_newlstat+0x31/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444154]  [<ffffffff81211cde>]
> SyS_newlstat+0xe/0x10
> Jun 16 17:38:13 ubuntu kernel: [  200.444156]  [<ffffffff818244f2>]
> entry_SYSCALL_64_fastpath+0x16/0x71
> Jun 16 17:38:13 ubuntu kernel: [  200.444158] ---[ end trace
> b4381932edc4fa49 ]---
> Jun 16 17:38:13 ubuntu kernel: [  200.444160] BTRFS info (device
> sdb5): leaf 515623321600 total ptrs 23 free space 2229
> Jun 16 17:38:13 ubuntu kernel: [  200.444161]     item 0 key
> (25659432960 168 4096) itemoff 3944 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444162]         extent refs 1
> gen 6963944 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444163]         tree block key
> (36385751040 168 53248) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444164]         tree block backref root 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444165]     item 1 key
> (25659437056 168 4096) itemoff 3893 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444166]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444166]         tree block key
> (18446744073709551606 128 483529912320) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444167]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444168]     item 2 key
> (25659441152 168 4096) itemoff 3842 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444169]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444170]         tree block key
> (18446744073709551606 128 483533946880) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444170]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444171]     item 3 key
> (25659445248 168 4096) itemoff 3791 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444172]         extent refs 1
> gen 6963944 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444173]         tree block key
> (36389679104 168 4096) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444173]         tree block backref root 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444174]     item 4 key
> (25659449344 168 4096) itemoff 3740 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444175]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444176]         tree block key
> (18446744073709551611 48 797595) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444177]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444178]     item 5 key
> (25659453440 168 4096) itemoff 3689 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444178]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444179]         tree block key
> (18446744073709551606 128 483537981440) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444180]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444181]     item 6 key
> (25659457536 168 4096) itemoff 3638 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444181]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444182]         tree block key
> (18446744073709551606 128 483542016000) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444183]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444184]     item 7 key
> (25659461632 168 4096) itemoff 3587 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444184]         extent refs 1
> gen 6963944 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444185]         tree block key
> (36394369024 168 8192) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444186]         tree block backref root 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444187]     item 8 key
> (25659465728 168 4096) itemoff 3536 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444187]         extent refs 1
> gen 1250494 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444188]         tree block key
> (77172 96 424) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444189]         shared block
> backref parent 202993840128
> Jun 16 17:38:13 ubuntu kernel: [  200.444190]     item 9 key
> (25659469824 168 4096) itemoff 3485 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444190]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444191]         tree block key
> (18446744073709551606 128 483546050560) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444192]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444193]     item 10 key
> (25659473920 168 4096) itemoff 3434 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444193]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444194]         tree block key
> (18446744073709551606 128 483550085120) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444195]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444195]     item 11 key
> (25659478016 168 4096) itemoff 3383 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444196]         extent refs 1
> gen 6963944 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444197]         tree block key
> (36394938368 168 106496) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444197]         tree block
> backref root 281474976710658
> Jun 16 17:38:13 ubuntu kernel: [  200.444198]     item 12 key
> (25659482112 168 4096) itemoff 3332 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444199]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444200]         tree block key
> (18446744073709551606 128 483554119680) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444200]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444201]     item 13 key
> (25659486208 168 4096) itemoff 3272 itemsize 60
> Jun 16 17:38:13 ubuntu kernel: [  200.444202]         extent refs 2
> gen 1999492 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444203]         tree block key
> (13164463 1 0) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444203]         shared block
> backref parent 515618316288
> Jun 16 17:38:13 ubuntu kernel: [  200.444204]         shared block
> backref parent 75169234944
> Jun 16 17:38:13 ubuntu kernel: [  200.444205]     item 14 key
> (25659490304 168 4096) itemoff 3221 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444206]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444207]         tree block key
> (18446744073709551611 48 795747) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444207]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444208]     item 15 key
> (25659502592 168 4096) itemoff 3170 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444209]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444210]         tree block key
> (18446744073709551611 48 797595) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444210]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444211]     item 16 key
> (25659506688 168 4096) itemoff 3119 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444212]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444213]         tree block key
> (18446744073709551606 128 483558154240) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444214]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444214]     item 17 key
> (25659510784 168 4096) itemoff 3068 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444215]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444216]         tree block key
> (18446744073709551606 128 483562188800) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444216]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444217]     item 18 key
> (25659514880 168 4096) itemoff 3008 itemsize 60
> Jun 16 17:38:13 ubuntu kernel: [  200.444217]         extent refs 2
> gen 1824756 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444218]         tree block key
> (12691756 1 0) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444219]         shared block
> backref parent 515636400128
> Jun 16 17:38:13 ubuntu kernel: [  200.444219]         shared block
> backref parent 297494913024
> Jun 16 17:38:13 ubuntu kernel: [  200.444220]     item 19 key
> (25659518976 168 4096) itemoff 2957 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444221]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444222]         tree block key
> (18446744073709551611 48 795747) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444223]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444224]     item 20 key
> (25659523072 168 4096) itemoff 2906 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444224]         extent refs 1
> gen 636672 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444225]         tree block key
> (101100 96 2199) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444226]         shared block
> backref parent 75175694336
> Jun 16 17:38:13 ubuntu kernel: [  200.444227]     item 21 key
> (25659531264 168 4096) itemoff 2855 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444228]         extent refs 1
> gen 636672 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444228]         tree block key
> (101100 96 2258) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444229]         shared block
> backref parent 75175694336
> Jun 16 17:38:13 ubuntu kernel: [  200.444230]     item 22 key
> (25659535360 168 4096) itemoff 2804 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444231]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444231]         tree block key
> (18446744073709551611 48 797595) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444232]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444234] BTRFS error (device
> sdb5): unable to find ref byte nr 25659478016 parent 0 root 2  owner 0
> offset 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444234] ------------[ cut here
> ]------------
> Jun 16 17:38:13 ubuntu kernel: [  200.444243] WARNING: CPU: 7 PID:
> 7604 at /build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/extent-tree.c:6549
> __btrfs_free_extent.isra.70+0x8ff/0xd30 [btrfs]()
> Jun 16 17:38:13 ubuntu kernel: [  200.444243] BTRFS: Transaction
> aborted (error -2)
> Jun 16 17:38:13 ubuntu kernel: [  200.444244] Modules linked in:
> intel_rapl snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp
> snd_hda_codec_hdmi snd_hda_codec_generic coretemp snd_hda_intel
> snd_hda_codec kvm snd_hda_core snd_hwdep snd_pcm irqbypass
> snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
> crc32_pclmul snd_seq aesni_intel eeepc_wmi snd_seq_device aes_x86_64
> asus_wmi input_leds lrw snd_timer sparse_keymap mei_me lpc_ich
> serio_raw mei snd gf128mul 8250_fintek soundcore glue_helper shpchp
> ablk_helper cryptd tpm_infineon mac_hid parport_pc ppdev lp parport
> autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
> usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
> dm_log i915 mxm_wmi i2c_algo_bit drm_kms_helper syscopyarea
> sysfillrect sysimgblt e1000e fb_sys_fops drm ahci ptp libahci pps_core
> fjes wmi video
> Jun 16 17:38:13 ubuntu kernel: [  200.444268] CPU: 7 PID: 7604 Comm:
> ls Tainted: G      D W       4.4.0-21-generic #37-Ubuntu
> Jun 16 17:38:13 ubuntu kernel: [  200.444269] Hardware name: ASUS All
> Series/Z87-PLUS, BIOS 1707 12/13/2013
> Jun 16 17:38:13 ubuntu kernel: [  200.444269]  0000000000000286
> 0000000074438112 ffff8800b959f638 ffffffff813e93c3
> Jun 16 17:38:13 ubuntu kernel: [  200.444271]  ffff8800b959f680
> ffffffffc036f468 ffff8800b959f670 ffffffff81080f62
> Jun 16 17:38:13 ubuntu kernel: [  200.444273]  00000005f96c9000
> 00000000fffffffe 0000000000000000 ffff88041d0c6000
> Jun 16 17:38:13 ubuntu kernel: [  200.444274] Call Trace:
> Jun 16 17:38:13 ubuntu kernel: [  200.444276]  [<ffffffff813e93c3>]
> dump_stack+0x63/0x90
> Jun 16 17:38:13 ubuntu kernel: [  200.444278]  [<ffffffff81080f62>]
> warn_slowpath_common+0x82/0xc0
> Jun 16 17:38:13 ubuntu kernel: [  200.444279]  [<ffffffff81080ffc>]
> warn_slowpath_fmt+0x5c/0x80
> Jun 16 17:38:13 ubuntu kernel: [  200.444287]  [<ffffffffc02cf4bf>]
> __btrfs_free_extent.isra.70+0x8ff/0xd30 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444289]  [<ffffffff8119aa75>] ?
> __set_page_dirty_nobuffers+0xe5/0x140
> Jun 16 17:38:13 ubuntu kernel: [  200.444297]  [<ffffffffc02c9500>] ?
> btrfs_previous_extent_item+0x90/0x110 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444305]  [<ffffffffc02d346b>]
> __btrfs_run_delayed_refs+0xaab/0x11f0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444313]  [<ffffffffc02d69fd>]
> btrfs_run_delayed_refs+0x7d/0x2a0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444324]  [<ffffffffc0308c61>] ?
> release_extent_buffer+0x61/0xd0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444333]  [<ffffffffc02eb60a>]
> btrfs_should_end_transaction+0x5a/0x60 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444342]  [<ffffffffc02f7017>]
> btrfs_truncate_inode_items+0x737/0xd20 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444353]  [<ffffffffc02f8577>]
> btrfs_evict_inode+0x477/0x5c0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444355]  [<ffffffff810c3a50>] ?
> autoremove_wake_function+0x40/0x40
> Jun 16 17:38:13 ubuntu kernel: [  200.444356]  [<ffffffff81227d5e>]
> evict+0xbe/0x190
> Jun 16 17:38:13 ubuntu kernel: [  200.444358]  [<ffffffff81228041>]
> iput+0x1c1/0x240
> Jun 16 17:38:13 ubuntu kernel: [  200.444367]  [<ffffffffc02f9117>]
> btrfs_orphan_cleanup+0x1f7/0x400 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444377]  [<ffffffffc02f96ae>]
> btrfs_lookup_dentry+0x38e/0x520 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444387]  [<ffffffffc02f9852>]
> btrfs_lookup+0x12/0x40 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444388]  [<ffffffff8121649d>]
> lookup_real+0x1d/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444390]  [<ffffffff81217d62>]
> __lookup_hash+0x42/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444392]  [<ffffffff812194d6>]
> walk_component+0x226/0x300
> Jun 16 17:38:13 ubuntu kernel: [  200.444393]  [<ffffffff8121a61d>]
> path_lookupat+0x5d/0x110
> Jun 16 17:38:13 ubuntu kernel: [  200.444395]  [<ffffffff8121c291>]
> filename_lookup+0xb1/0x180
> Jun 16 17:38:13 ubuntu kernel: [  200.444404]  [<ffffffffc02ecdb9>] ?
> __btrfs_end_transaction+0x1d9/0x340 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444406]  [<ffffffff811eb137>] ?
> kmem_cache_alloc+0x187/0x1f0
> Jun 16 17:38:13 ubuntu kernel: [  200.444408]  [<ffffffff8121be96>] ?
> getname_flags+0x56/0x1f0
> Jun 16 17:38:13 ubuntu kernel: [  200.444410]  [<ffffffff8121c436>]
> user_path_at_empty+0x36/0x40
> Jun 16 17:38:13 ubuntu kernel: [  200.444411]  [<ffffffff812115e6>]
> vfs_fstatat+0x66/0xc0
> Jun 16 17:38:13 ubuntu kernel: [  200.444412]  [<ffffffff81211ba1>]
> SYSC_newlstat+0x31/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444413]  [<ffffffff81211cde>]
> SyS_newlstat+0xe/0x10
> Jun 16 17:38:13 ubuntu kernel: [  200.444415]  [<ffffffff818244f2>]
> entry_SYSCALL_64_fastpath+0x16/0x71
> Jun 16 17:38:13 ubuntu kernel: [  200.444416] ---[ end trace
> b4381932edc4fa4a ]---
> Jun 16 17:38:13 ubuntu kernel: [  200.444418] BTRFS: error (device
> sdb5) in __btrfs_free_extent:6549: errno=-2 No such entry
> Jun 16 17:38:13 ubuntu kernel: [  200.444419] BTRFS info (device
> sdb5): forced readonly
> Jun 16 17:38:13 ubuntu kernel: [  200.444420] BTRFS: error (device
> sdb5) in btrfs_run_delayed_refs:2927: errno=-2 No such entry
> Jun 16 17:38:13 ubuntu kernel: [  200.444430] BTRFS error (device
> sdb5): Error removing orphan entry, stopping orphan cleanup
> Jun 16 17:38:13 ubuntu kernel: [  200.444431] BTRFS error (device
> sdb5): could not do orphan cleanup -22
>
> 2016-06-15 8:42 GMT+02:00 Fajar A. Nugraha <list@fajar.net>:
>> On Wed, Jun 15, 2016 at 1:29 PM, Paul Verreth <paul@verreth.be> wrote:
>>> Dear all.
>>>
>>> When I download a video using  Firefox DownloadHelper addon, the
>>> filesystem suddenly turns read only. Not a coincedence, I tried it
>>> several times, and it happened every time again
>>>
>>> Info:
>>> Linux wolfgang 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC
>>> 2016 x86_64 x86_64 x86_64 GNU/Linux
>>
>>> Segmentation fault
>>>
>>> Jun  5 15:03:15 ubuntu kernel: [ 2062.544303] BTRFS info (device
>>> sdb5): relocating block group 383447465984 flags 17
>>
>>
>>> What can I do to repair this problem?
>>
>> The usual starting advice would be "try with latest kernel and see if
>> you can still reproduce the problem". Is it ubuntu wily? It'd go end
>> of in July anyway, so you might want to upgrade to xenial (or at
>> least, just the kernel, for the purpose of troubleshooting your
>> problem).
>>
>> Or even try http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/
>> (should be usable, but might report some errors/warning due to missing
>> ubuntu patches)
>>
>> --
>> Fajar
>
>
>
> --
>
> Paul Verreth
>
> Het verschil tussen theorie en praktijk
> is klein in theorie,
> maar in praktijk daarentegen ...



-- 

Paul Verreth

Het verschil tussen theorie en praktijk
is klein in theorie,
maar in praktijk daarentegen ...

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

* Re: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download
  2016-06-15  6:29 ` Fwd: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download Paul Verreth
  2016-06-15  6:42   ` Fajar A. Nugraha
  2016-06-15  7:49   ` Fwd: " Duncan
@ 2016-06-16 22:56   ` Chris Murphy
  2 siblings, 0 replies; 8+ messages in thread
From: Chris Murphy @ 2016-06-16 22:56 UTC (permalink / raw)
  To: Paul Verreth; +Cc: Btrfs BTRFS

On Wed, Jun 15, 2016 at 12:29 AM, Paul Verreth <paul@verreth.be> wrote:
> Dear all.
>
> When I download a video using  Firefox DownloadHelper addon, the
> filesystem suddenly turns read only. Not a coincedence, I tried it
> several times, and it happened every time again
>
> Info:
> Linux wolfgang 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC
> 2016 x86_64 x86_64 x86_64 GNU/Linux
>
> btrfs --version
> btrfs-progs v4.0

I'm curious what you get from btrfs check (without --repair) with a
recent btrfs-progs, i.e. ideally a 4.5 version.

Fedora 24 is a go as of today, and the smallest image with btrfs-progs
4.5.2 on it is this 438M image:

http://dl.fedoraproject.org/pub/alt/stage/24_RC-1.2/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-24-1.2.iso

dd that to a USB stick and boot, at the boot menu pick
Troubleshooting, then pick Rescue a Fedora system. At the menu pick
skip to shell. Here you can run:

lsblk
btrfs check /dev/sdXY > btrfscheck.txt

That won't output 100% to that file but most of it will go there. If
you have a wired network connection it should be up already, otherwise
you're messing around with nmcli to get it up. scp it somewhere or if
the file is small enough you can 'fpaste btrfscheck.txt' and it'll
spit back a URL where it uploaded that file.




-- 
Chris Murphy

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

* Re: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download
  2016-06-16 17:22     ` Paul Verreth
  2016-06-16 17:23       ` Paul Verreth
@ 2016-06-17  1:13       ` Qu Wenruo
  1 sibling, 0 replies; 8+ messages in thread
From: Qu Wenruo @ 2016-06-17  1:13 UTC (permalink / raw)
  To: Paul Verreth, Fajar A. Nugraha; +Cc: linux-btrfs



At 06/17/2016 01:22 AM, Paul Verreth wrote:
> Hello.
>
> New test:
>
> I booted from a live USB-stick with all updates installed
> (4.4.0-21-generic), and after mount of the btrfs filesystem, the
> balance continued, and a bug appeared in kern.log.
>
> The filesystem turned readonly
> An important directory was missing.
>
>
> Jun 16 17:38:08 ubuntu kernel: [  195.482907] BTRFS info (device
> sdb5): enabling auto recovery
> Jun 16 17:38:08 ubuntu kernel: [  195.482914] BTRFS info (device
> sdb5): disk space caching is enabled
> Jun 16 17:38:08 ubuntu kernel: [  195.488335] BTRFS info (device
> sdb5): bdev /dev/sdb5 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0
> Jun 16 17:38:08 ubuntu kernel: [  195.488340] BTRFS info (device
> sdb5): bdev /dev/sda5 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0

The corrupt from kernel message is quite dangerous.
I would assume there is some thing wrong with that device.

Maybe that's the problem leading to the BUG_ON.


And I also found that in your initial report, your extent tree seems to 
be already corrupted.

Just as Chris said, it's a good idea to see how btrfsck complains about 
your fs.

I assume it's already heavily corrupted though.

Thanks,
Qu

> Jun 16 17:38:08 ubuntu kernel: [  195.559146] BTRFS: detected SSD
> devices, enabling SSD mode
> Jun 16 17:38:08 ubuntu kernel: [  195.560224] BTRFS: checking UUID tree
> Jun 16 17:38:08 ubuntu kernel: [  195.560226] BTRFS info (device
> sdb5): continuing balance
> Jun 16 17:38:08 ubuntu kernel: [  195.560229] BTRFS info (device
> sdb5): force reducing metadata integrity
> Jun 16 17:38:08 ubuntu kernel: [  195.583979] BTRFS info (device
> sdb5): relocating block group 297447456768 flags 20
> Jun 16 17:38:12 ubuntu kernel: [  199.340273] ------------[ cut here
> ]------------
> Jun 16 17:38:12 ubuntu kernel: [  199.340290] kernel BUG at
> /build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/relocation.c:2683!
> Jun 16 17:38:12 ubuntu kernel: [  199.340308] invalid opcode: 0000 [#1] SMP
> Jun 16 17:38:12 ubuntu kernel: [  199.340319] Modules linked in:
> intel_rapl snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp
> snd_hda_codec_hdmi snd_hda_codec_generic coretemp snd_hda_intel
> snd_hda_codec kvm snd_hda_core snd_hwdep snd_pcm irqbypass
> snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
> crc32_pclmul snd_seq aesni_intel eeepc_wmi snd_seq_device aes_x86_64
> asus_wmi input_leds lrw snd_timer sparse_keymap mei_me lpc_ich
> serio_raw mei snd gf128mul 8250_fintek soundcore glue_helper shpchp
> ablk_helper cryptd tpm_infineon mac_hid parport_pc ppdev lp parport
> autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
> usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
> dm_log i915 mxm_wmi i2c_algo_bit drm_kms_helper syscopyarea
> sysfillrect sysimgblt e1000e fb_sys_fops drm ahci ptp libahci pps_core
> fjes wmi video
> Jun 16 17:38:12 ubuntu kernel: [  199.340540] CPU: 1 PID: 7602 Comm:
> btrfs-balance Not tainted 4.4.0-21-generic #37-Ubuntu
> Jun 16 17:38:12 ubuntu kernel: [  199.340558] Hardware name: ASUS All
> Series/Z87-PLUS, BIOS 1707 12/13/2013
> Jun 16 17:38:12 ubuntu kernel: [  199.340573] task: ffff8804173b3700
> ti: ffff8803ec36c000 task.ti: ffff8803ec36c000
> Jun 16 17:38:12 ubuntu kernel: [  199.340589] RIP:
> 0010:[<ffffffffc033be85>]  [<ffffffffc033be85>]
> do_relocation+0x515/0x520 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340631] RSP:
> 0018:ffff8803ec36fb00  EFLAGS: 00010202
> Jun 16 17:38:12 ubuntu kernel: [  199.340643] RAX: 0000000000000001
> RBX: ffff8800bc72ca80 RCX: 0000000000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340658] RDX: 0000000000000000
> RSI: 0000000000000000 RDI: 0000000000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340674] RBP: ffff8803ec36fbb8
> R08: ffff8803ec36fab4 R09: 0000160000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340689] R10: 0000000000000002
> R11: 0000000000000045 R12: ffff8803ec33f680
> Jun 16 17:38:12 ubuntu kernel: [  199.340704] R13: ffff88041b110000
> R14: ffff88040026e180 R15: 0000000000000001
> Jun 16 17:38:12 ubuntu kernel: [  199.340720] FS:
> 0000000000000000(0000) GS:ffff88042fa40000(0000)
> knlGS:0000000000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340738] CS:  0010 DS: 0000 ES:
> 0000 CR0: 0000000080050033
> Jun 16 17:38:12 ubuntu kernel: [  199.340750] CR2: 0000000001263860
> CR3: 0000000001e0a000 CR4: 00000000001406e0
> Jun 16 17:38:12 ubuntu kernel: [  199.340766] DR0: 0000000000000000
> DR1: 0000000000000000 DR2: 0000000000000000
> Jun 16 17:38:12 ubuntu kernel: [  199.340781] DR3: 0000000000000000
> DR6: 00000000fffe0ff0 DR7: 0000000000000400
> Jun 16 17:38:12 ubuntu kernel: [  199.340796] Stack:
> Jun 16 17:38:12 ubuntu kernel: [  199.340801]  0000000000000000
> ffff880405bf7920 ffff880415279870 ffff8803ec33f6c0
> Jun 16 17:38:12 ubuntu kernel: [  199.340820]  ffff880405bf7800
> ffff88040026ece0 0000000100000000 ffff8803ed251be0
> Jun 16 17:38:12 ubuntu kernel: [  199.340839]  ffff8803ec36fb40
> ffff8803ec36fb40 ffff8800c4956780 ffff88040026e180
> Jun 16 17:38:12 ubuntu kernel: [  199.340858] Call Trace:
> Jun 16 17:38:12 ubuntu kernel: [  199.340873]  [<ffffffffc02d8a67>] ?
> btrfs_block_rsv_refill+0x37/0xb0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340897]  [<ffffffffc033e50e>]
> relocate_tree_blocks+0x4ee/0x5f0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340920]  [<ffffffffc0338c1d>] ?
> tree_insert+0x4d/0x60 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340940]  [<ffffffffc033c415>] ?
> add_tree_block+0x155/0x1e0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340961]  [<ffffffffc033fa7a>]
> relocate_block_group+0x41a/0x6c0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.340985]  [<ffffffffc0307860>] ?
> btrfs_wait_ordered_roots+0x1d0/0x200 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341008]  [<ffffffffc033fed3>]
> btrfs_relocate_block_group+0x1b3/0x290 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341032]  [<ffffffffc0315567>]
> btrfs_relocate_chunk.isra.38+0x47/0xd0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341056]  [<ffffffffc03169c9>]
> __btrfs_balance+0x5b9/0xba0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341073]  [<ffffffff810d8b59>] ?
> vprintk_default+0x29/0x40
> Jun 16 17:38:12 ubuntu kernel: [  199.341093]  [<ffffffffc0317240>]
> btrfs_balance+0x290/0x5f0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341113]  [<ffffffffc03175fb>]
> balance_kthread+0x5b/0x80 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341133]  [<ffffffffc03175a0>] ?
> btrfs_balance+0x5f0/0x5f0 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341148]  [<ffffffff810a0528>]
> kthread+0xd8/0xf0
> Jun 16 17:38:12 ubuntu kernel: [  199.341160]  [<ffffffff810a0450>] ?
> kthread_create_on_node+0x1e0/0x1e0
> Jun 16 17:38:12 ubuntu kernel: [  199.341176]  [<ffffffff8182488f>]
> ret_from_fork+0x3f/0x70
> Jun 16 17:38:12 ubuntu kernel: [  199.341188]  [<ffffffff810a0450>] ?
> kthread_create_on_node+0x1e0/0x1e0
> Jun 16 17:38:12 ubuntu kernel: [  199.341202] Code: fd ff ff 0f 0b 0f
> b6 43 70 48 8b b5 58 ff ff ff 48 8d 04 c6 48 8b 10 48 89 53 68 48 c7
> 00 00 00 00 00 0f b6 53 70 e9 db fe ff ff <0f> 0b 0f 0b e8 b2 4e d4 c0
> 66 90 0f 1f 44 00 00 55 ba b8 05 00
> Jun 16 17:38:12 ubuntu kernel: [  199.341289] RIP
> [<ffffffffc033be85>] do_relocation+0x515/0x520 [btrfs]
> Jun 16 17:38:12 ubuntu kernel: [  199.341312]  RSP <ffff8803ec36fb00>
> Jun 16 17:38:12 ubuntu kernel: [  199.344515] ---[ end trace
> b4381932edc4fa48 ]---
> Jun 16 17:38:13 ubuntu kernel: [  200.443946] ------------[ cut here
> ]------------
> Jun 16 17:38:13 ubuntu kernel: [  200.443967] WARNING: CPU: 7 PID:
> 7604 at /build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/extent-tree.c:6543
> __btrfs_free_extent.isra.70+0x898/0xd30 [btrfs]()
> Jun 16 17:38:13 ubuntu kernel: [  200.443968] Modules linked in:
> intel_rapl snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp
> snd_hda_codec_hdmi snd_hda_codec_generic coretemp snd_hda_intel
> snd_hda_codec kvm snd_hda_core snd_hwdep snd_pcm irqbypass
> snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
> crc32_pclmul snd_seq aesni_intel eeepc_wmi snd_seq_device aes_x86_64
> asus_wmi input_leds lrw snd_timer sparse_keymap mei_me lpc_ich
> serio_raw mei snd gf128mul 8250_fintek soundcore glue_helper shpchp
> ablk_helper cryptd tpm_infineon mac_hid parport_pc ppdev lp parport
> autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
> usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
> dm_log i915 mxm_wmi i2c_algo_bit drm_kms_helper syscopyarea
> sysfillrect sysimgblt e1000e fb_sys_fops drm ahci ptp libahci pps_core
> fjes wmi video
> Jun 16 17:38:13 ubuntu kernel: [  200.444000] CPU: 7 PID: 7604 Comm:
> ls Tainted: G      D         4.4.0-21-generic #37-Ubuntu
> Jun 16 17:38:13 ubuntu kernel: [  200.444001] Hardware name: ASUS All
> Series/Z87-PLUS, BIOS 1707 12/13/2013
> Jun 16 17:38:13 ubuntu kernel: [  200.444002]  0000000000000286
> 0000000074438112 ffff8800b959f690 ffffffff813e93c3
> Jun 16 17:38:13 ubuntu kernel: [  200.444003]  0000000000000000
> ffffffffc036f468 ffff8800b959f6c8 ffffffff81080f62
> Jun 16 17:38:13 ubuntu kernel: [  200.444005]  00000005f96c9000
> 00000000fffffffe 0000000000000000 ffff88041d0c6000
> Jun 16 17:38:13 ubuntu kernel: [  200.444006] Call Trace:
> Jun 16 17:38:13 ubuntu kernel: [  200.444011]  [<ffffffff813e93c3>]
> dump_stack+0x63/0x90
> Jun 16 17:38:13 ubuntu kernel: [  200.444014]  [<ffffffff81080f62>]
> warn_slowpath_common+0x82/0xc0
> Jun 16 17:38:13 ubuntu kernel: [  200.444016]  [<ffffffff810810aa>]
> warn_slowpath_null+0x1a/0x20
> Jun 16 17:38:13 ubuntu kernel: [  200.444026]  [<ffffffffc02cf458>]
> __btrfs_free_extent.isra.70+0x898/0xd30 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444028]  [<ffffffff8119aa75>] ?
> __set_page_dirty_nobuffers+0xe5/0x140
> Jun 16 17:38:13 ubuntu kernel: [  200.444036]  [<ffffffffc02c9500>] ?
> btrfs_previous_extent_item+0x90/0x110 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444044]  [<ffffffffc02d346b>]
> __btrfs_run_delayed_refs+0xaab/0x11f0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444052]  [<ffffffffc02d69fd>]
> btrfs_run_delayed_refs+0x7d/0x2a0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444062]  [<ffffffffc0308c61>] ?
> release_extent_buffer+0x61/0xd0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444071]  [<ffffffffc02eb60a>]
> btrfs_should_end_transaction+0x5a/0x60 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444080]  [<ffffffffc02f7017>]
> btrfs_truncate_inode_items+0x737/0xd20 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444089]  [<ffffffffc02f8577>]
> btrfs_evict_inode+0x477/0x5c0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444092]  [<ffffffff810c3a50>] ?
> autoremove_wake_function+0x40/0x40
> Jun 16 17:38:13 ubuntu kernel: [  200.444094]  [<ffffffff81227d5e>]
> evict+0xbe/0x190
> Jun 16 17:38:13 ubuntu kernel: [  200.444096]  [<ffffffff81228041>]
> iput+0x1c1/0x240
> Jun 16 17:38:13 ubuntu kernel: [  200.444106]  [<ffffffffc02f9117>]
> btrfs_orphan_cleanup+0x1f7/0x400 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444116]  [<ffffffffc02f96ae>]
> btrfs_lookup_dentry+0x38e/0x520 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444126]  [<ffffffffc02f9852>]
> btrfs_lookup+0x12/0x40 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444128]  [<ffffffff8121649d>]
> lookup_real+0x1d/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444129]  [<ffffffff81217d62>]
> __lookup_hash+0x42/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444131]  [<ffffffff812194d6>]
> walk_component+0x226/0x300
> Jun 16 17:38:13 ubuntu kernel: [  200.444133]  [<ffffffff8121a61d>]
> path_lookupat+0x5d/0x110
> Jun 16 17:38:13 ubuntu kernel: [  200.444135]  [<ffffffff8121c291>]
> filename_lookup+0xb1/0x180
> Jun 16 17:38:13 ubuntu kernel: [  200.444144]  [<ffffffffc02ecdb9>] ?
> __btrfs_end_transaction+0x1d9/0x340 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444146]  [<ffffffff811eb137>] ?
> kmem_cache_alloc+0x187/0x1f0
> Jun 16 17:38:13 ubuntu kernel: [  200.444148]  [<ffffffff8121be96>] ?
> getname_flags+0x56/0x1f0
> Jun 16 17:38:13 ubuntu kernel: [  200.444150]  [<ffffffff8121c436>]
> user_path_at_empty+0x36/0x40
> Jun 16 17:38:13 ubuntu kernel: [  200.444151]  [<ffffffff812115e6>]
> vfs_fstatat+0x66/0xc0
> Jun 16 17:38:13 ubuntu kernel: [  200.444152]  [<ffffffff81211ba1>]
> SYSC_newlstat+0x31/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444154]  [<ffffffff81211cde>]
> SyS_newlstat+0xe/0x10
> Jun 16 17:38:13 ubuntu kernel: [  200.444156]  [<ffffffff818244f2>]
> entry_SYSCALL_64_fastpath+0x16/0x71
> Jun 16 17:38:13 ubuntu kernel: [  200.444158] ---[ end trace
> b4381932edc4fa49 ]---
> Jun 16 17:38:13 ubuntu kernel: [  200.444160] BTRFS info (device
> sdb5): leaf 515623321600 total ptrs 23 free space 2229
> Jun 16 17:38:13 ubuntu kernel: [  200.444161]     item 0 key
> (25659432960 168 4096) itemoff 3944 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444162]         extent refs 1
> gen 6963944 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444163]         tree block key
> (36385751040 168 53248) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444164]         tree block backref root 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444165]     item 1 key
> (25659437056 168 4096) itemoff 3893 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444166]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444166]         tree block key
> (18446744073709551606 128 483529912320) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444167]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444168]     item 2 key
> (25659441152 168 4096) itemoff 3842 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444169]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444170]         tree block key
> (18446744073709551606 128 483533946880) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444170]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444171]     item 3 key
> (25659445248 168 4096) itemoff 3791 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444172]         extent refs 1
> gen 6963944 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444173]         tree block key
> (36389679104 168 4096) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444173]         tree block backref root 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444174]     item 4 key
> (25659449344 168 4096) itemoff 3740 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444175]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444176]         tree block key
> (18446744073709551611 48 797595) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444177]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444178]     item 5 key
> (25659453440 168 4096) itemoff 3689 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444178]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444179]         tree block key
> (18446744073709551606 128 483537981440) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444180]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444181]     item 6 key
> (25659457536 168 4096) itemoff 3638 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444181]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444182]         tree block key
> (18446744073709551606 128 483542016000) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444183]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444184]     item 7 key
> (25659461632 168 4096) itemoff 3587 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444184]         extent refs 1
> gen 6963944 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444185]         tree block key
> (36394369024 168 8192) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444186]         tree block backref root 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444187]     item 8 key
> (25659465728 168 4096) itemoff 3536 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444187]         extent refs 1
> gen 1250494 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444188]         tree block key
> (77172 96 424) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444189]         shared block
> backref parent 202993840128
> Jun 16 17:38:13 ubuntu kernel: [  200.444190]     item 9 key
> (25659469824 168 4096) itemoff 3485 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444190]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444191]         tree block key
> (18446744073709551606 128 483546050560) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444192]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444193]     item 10 key
> (25659473920 168 4096) itemoff 3434 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444193]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444194]         tree block key
> (18446744073709551606 128 483550085120) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444195]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444195]     item 11 key
> (25659478016 168 4096) itemoff 3383 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444196]         extent refs 1
> gen 6963944 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444197]         tree block key
> (36394938368 168 106496) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444197]         tree block
> backref root 281474976710658
> Jun 16 17:38:13 ubuntu kernel: [  200.444198]     item 12 key
> (25659482112 168 4096) itemoff 3332 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444199]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444200]         tree block key
> (18446744073709551606 128 483554119680) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444200]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444201]     item 13 key
> (25659486208 168 4096) itemoff 3272 itemsize 60
> Jun 16 17:38:13 ubuntu kernel: [  200.444202]         extent refs 2
> gen 1999492 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444203]         tree block key
> (13164463 1 0) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444203]         shared block
> backref parent 515618316288
> Jun 16 17:38:13 ubuntu kernel: [  200.444204]         shared block
> backref parent 75169234944
> Jun 16 17:38:13 ubuntu kernel: [  200.444205]     item 14 key
> (25659490304 168 4096) itemoff 3221 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444206]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444207]         tree block key
> (18446744073709551611 48 795747) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444207]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444208]     item 15 key
> (25659502592 168 4096) itemoff 3170 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444209]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444210]         tree block key
> (18446744073709551611 48 797595) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444210]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444211]     item 16 key
> (25659506688 168 4096) itemoff 3119 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444212]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444213]         tree block key
> (18446744073709551606 128 483558154240) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444214]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444214]     item 17 key
> (25659510784 168 4096) itemoff 3068 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444215]         extent refs 1
> gen 7097652 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444216]         tree block key
> (18446744073709551606 128 483562188800) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444216]         tree block backref root 7
> Jun 16 17:38:13 ubuntu kernel: [  200.444217]     item 18 key
> (25659514880 168 4096) itemoff 3008 itemsize 60
> Jun 16 17:38:13 ubuntu kernel: [  200.444217]         extent refs 2
> gen 1824756 flags 2
> Jun 16 17:38:13 ubuntu kernel: [  200.444218]         tree block key
> (12691756 1 0) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444219]         shared block
> backref parent 515636400128
> Jun 16 17:38:13 ubuntu kernel: [  200.444219]         shared block
> backref parent 297494913024
> Jun 16 17:38:13 ubuntu kernel: [  200.444220]     item 19 key
> (25659518976 168 4096) itemoff 2957 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444221]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444222]         tree block key
> (18446744073709551611 48 795747) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444223]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444224]     item 20 key
> (25659523072 168 4096) itemoff 2906 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444224]         extent refs 1
> gen 636672 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444225]         tree block key
> (101100 96 2199) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444226]         shared block
> backref parent 75175694336
> Jun 16 17:38:13 ubuntu kernel: [  200.444227]     item 21 key
> (25659531264 168 4096) itemoff 2855 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444228]         extent refs 1
> gen 636672 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444228]         tree block key
> (101100 96 2258) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444229]         shared block
> backref parent 75175694336
> Jun 16 17:38:13 ubuntu kernel: [  200.444230]     item 22 key
> (25659535360 168 4096) itemoff 2804 itemsize 51
> Jun 16 17:38:13 ubuntu kernel: [  200.444231]         extent refs 1
> gen 331079 flags 258
> Jun 16 17:38:13 ubuntu kernel: [  200.444231]         tree block key
> (18446744073709551611 48 797595) level 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444232]         shared block
> backref parent 25719652352
> Jun 16 17:38:13 ubuntu kernel: [  200.444234] BTRFS error (device
> sdb5): unable to find ref byte nr 25659478016 parent 0 root 2  owner 0
> offset 0
> Jun 16 17:38:13 ubuntu kernel: [  200.444234] ------------[ cut here
> ]------------
> Jun 16 17:38:13 ubuntu kernel: [  200.444243] WARNING: CPU: 7 PID:
> 7604 at /build/linux-Ay7j_C/linux-4.4.0/fs/btrfs/extent-tree.c:6549
> __btrfs_free_extent.isra.70+0x8ff/0xd30 [btrfs]()
> Jun 16 17:38:13 ubuntu kernel: [  200.444243] BTRFS: Transaction
> aborted (error -2)
> Jun 16 17:38:13 ubuntu kernel: [  200.444244] Modules linked in:
> intel_rapl snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp
> snd_hda_codec_hdmi snd_hda_codec_generic coretemp snd_hda_intel
> snd_hda_codec kvm snd_hda_core snd_hwdep snd_pcm irqbypass
> snd_seq_midi snd_seq_midi_event crct10dif_pclmul snd_rawmidi
> crc32_pclmul snd_seq aesni_intel eeepc_wmi snd_seq_device aes_x86_64
> asus_wmi input_leds lrw snd_timer sparse_keymap mei_me lpc_ich
> serio_raw mei snd gf128mul 8250_fintek soundcore glue_helper shpchp
> ablk_helper cryptd tpm_infineon mac_hid parport_pc ppdev lp parport
> autofs4 squashfs overlay nls_utf8 isofs hid_generic usbhid hid uas
> usb_storage btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash
> dm_log i915 mxm_wmi i2c_algo_bit drm_kms_helper syscopyarea
> sysfillrect sysimgblt e1000e fb_sys_fops drm ahci ptp libahci pps_core
> fjes wmi video
> Jun 16 17:38:13 ubuntu kernel: [  200.444268] CPU: 7 PID: 7604 Comm:
> ls Tainted: G      D W       4.4.0-21-generic #37-Ubuntu
> Jun 16 17:38:13 ubuntu kernel: [  200.444269] Hardware name: ASUS All
> Series/Z87-PLUS, BIOS 1707 12/13/2013
> Jun 16 17:38:13 ubuntu kernel: [  200.444269]  0000000000000286
> 0000000074438112 ffff8800b959f638 ffffffff813e93c3
> Jun 16 17:38:13 ubuntu kernel: [  200.444271]  ffff8800b959f680
> ffffffffc036f468 ffff8800b959f670 ffffffff81080f62
> Jun 16 17:38:13 ubuntu kernel: [  200.444273]  00000005f96c9000
> 00000000fffffffe 0000000000000000 ffff88041d0c6000
> Jun 16 17:38:13 ubuntu kernel: [  200.444274] Call Trace:
> Jun 16 17:38:13 ubuntu kernel: [  200.444276]  [<ffffffff813e93c3>]
> dump_stack+0x63/0x90
> Jun 16 17:38:13 ubuntu kernel: [  200.444278]  [<ffffffff81080f62>]
> warn_slowpath_common+0x82/0xc0
> Jun 16 17:38:13 ubuntu kernel: [  200.444279]  [<ffffffff81080ffc>]
> warn_slowpath_fmt+0x5c/0x80
> Jun 16 17:38:13 ubuntu kernel: [  200.444287]  [<ffffffffc02cf4bf>]
> __btrfs_free_extent.isra.70+0x8ff/0xd30 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444289]  [<ffffffff8119aa75>] ?
> __set_page_dirty_nobuffers+0xe5/0x140
> Jun 16 17:38:13 ubuntu kernel: [  200.444297]  [<ffffffffc02c9500>] ?
> btrfs_previous_extent_item+0x90/0x110 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444305]  [<ffffffffc02d346b>]
> __btrfs_run_delayed_refs+0xaab/0x11f0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444313]  [<ffffffffc02d69fd>]
> btrfs_run_delayed_refs+0x7d/0x2a0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444324]  [<ffffffffc0308c61>] ?
> release_extent_buffer+0x61/0xd0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444333]  [<ffffffffc02eb60a>]
> btrfs_should_end_transaction+0x5a/0x60 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444342]  [<ffffffffc02f7017>]
> btrfs_truncate_inode_items+0x737/0xd20 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444353]  [<ffffffffc02f8577>]
> btrfs_evict_inode+0x477/0x5c0 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444355]  [<ffffffff810c3a50>] ?
> autoremove_wake_function+0x40/0x40
> Jun 16 17:38:13 ubuntu kernel: [  200.444356]  [<ffffffff81227d5e>]
> evict+0xbe/0x190
> Jun 16 17:38:13 ubuntu kernel: [  200.444358]  [<ffffffff81228041>]
> iput+0x1c1/0x240
> Jun 16 17:38:13 ubuntu kernel: [  200.444367]  [<ffffffffc02f9117>]
> btrfs_orphan_cleanup+0x1f7/0x400 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444377]  [<ffffffffc02f96ae>]
> btrfs_lookup_dentry+0x38e/0x520 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444387]  [<ffffffffc02f9852>]
> btrfs_lookup+0x12/0x40 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444388]  [<ffffffff8121649d>]
> lookup_real+0x1d/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444390]  [<ffffffff81217d62>]
> __lookup_hash+0x42/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444392]  [<ffffffff812194d6>]
> walk_component+0x226/0x300
> Jun 16 17:38:13 ubuntu kernel: [  200.444393]  [<ffffffff8121a61d>]
> path_lookupat+0x5d/0x110
> Jun 16 17:38:13 ubuntu kernel: [  200.444395]  [<ffffffff8121c291>]
> filename_lookup+0xb1/0x180
> Jun 16 17:38:13 ubuntu kernel: [  200.444404]  [<ffffffffc02ecdb9>] ?
> __btrfs_end_transaction+0x1d9/0x340 [btrfs]
> Jun 16 17:38:13 ubuntu kernel: [  200.444406]  [<ffffffff811eb137>] ?
> kmem_cache_alloc+0x187/0x1f0
> Jun 16 17:38:13 ubuntu kernel: [  200.444408]  [<ffffffff8121be96>] ?
> getname_flags+0x56/0x1f0
> Jun 16 17:38:13 ubuntu kernel: [  200.444410]  [<ffffffff8121c436>]
> user_path_at_empty+0x36/0x40
> Jun 16 17:38:13 ubuntu kernel: [  200.444411]  [<ffffffff812115e6>]
> vfs_fstatat+0x66/0xc0
> Jun 16 17:38:13 ubuntu kernel: [  200.444412]  [<ffffffff81211ba1>]
> SYSC_newlstat+0x31/0x60
> Jun 16 17:38:13 ubuntu kernel: [  200.444413]  [<ffffffff81211cde>]
> SyS_newlstat+0xe/0x10
> Jun 16 17:38:13 ubuntu kernel: [  200.444415]  [<ffffffff818244f2>]
> entry_SYSCALL_64_fastpath+0x16/0x71
> Jun 16 17:38:13 ubuntu kernel: [  200.444416] ---[ end trace
> b4381932edc4fa4a ]---
> Jun 16 17:38:13 ubuntu kernel: [  200.444418] BTRFS: error (device
> sdb5) in __btrfs_free_extent:6549: errno=-2 No such entry
> Jun 16 17:38:13 ubuntu kernel: [  200.444419] BTRFS info (device
> sdb5): forced readonly
> Jun 16 17:38:13 ubuntu kernel: [  200.444420] BTRFS: error (device
> sdb5) in btrfs_run_delayed_refs:2927: errno=-2 No such entry
> Jun 16 17:38:13 ubuntu kernel: [  200.444430] BTRFS error (device
> sdb5): Error removing orphan entry, stopping orphan cleanup
> Jun 16 17:38:13 ubuntu kernel: [  200.444431] BTRFS error (device
> sdb5): could not do orphan cleanup -22
>
> 2016-06-15 8:42 GMT+02:00 Fajar A. Nugraha <list@fajar.net>:
>> On Wed, Jun 15, 2016 at 1:29 PM, Paul Verreth <paul@verreth.be> wrote:
>>> Dear all.
>>>
>>> When I download a video using  Firefox DownloadHelper addon, the
>>> filesystem suddenly turns read only. Not a coincedence, I tried it
>>> several times, and it happened every time again
>>>
>>> Info:
>>> Linux wolfgang 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC
>>> 2016 x86_64 x86_64 x86_64 GNU/Linux
>>
>>> Segmentation fault
>>>
>>> Jun  5 15:03:15 ubuntu kernel: [ 2062.544303] BTRFS info (device
>>> sdb5): relocating block group 383447465984 flags 17
>>
>>
>>> What can I do to repair this problem?
>>
>> The usual starting advice would be "try with latest kernel and see if
>> you can still reproduce the problem". Is it ubuntu wily? It'd go end
>> of in July anyway, so you might want to upgrade to xenial (or at
>> least, just the kernel, for the purpose of troubleshooting your
>> problem).
>>
>> Or even try http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/
>> (should be usable, but might report some errors/warning due to missing
>> ubuntu patches)
>>
>> --
>> Fajar
>
>
>



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

end of thread, other threads:[~2016-06-17  1:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAK9QOun4rHcd6om7ZXaiv=ZGMCSufcZTJAFs2Sop=vBhcnxHJQ@mail.gmail.com>
2016-06-15  6:29 ` Fwd: BTRFS, remarkable problem: filesystem turns to read-only caused by firefox download Paul Verreth
2016-06-15  6:42   ` Fajar A. Nugraha
2016-06-15  7:10     ` Paul Verreth
2016-06-16 17:22     ` Paul Verreth
2016-06-16 17:23       ` Paul Verreth
2016-06-17  1:13       ` Qu Wenruo
2016-06-15  7:49   ` Fwd: " Duncan
2016-06-16 22:56   ` Chris Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).