Linux-BTRFS Archive on lore.kernel.org
 help / Atom feed
* Filesystem corruption under big endian MIPS
@ 2019-02-09 19:43 Rosen Penev
  0 siblings, 0 replies; 1+ messages in thread
From: Rosen Penev @ 2019-02-09 19:43 UTC (permalink / raw)
  To: linux-btrfs

I'm getting this error every time I mount and use my drive

[63046.831194] sd 0:0:0:0: [sda] 1953525167 512-byte logical blocks:
(1.00 TB/932 GiB)
[63047.049574] sd 0:0:0:0: [sda] Write Protect is off
[63047.054515] sd 0:0:0:0: [sda] Mode Sense: 4f 00 00 00
[63047.060695] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[63047.104844] sd 0:0:0:0: [sda] Attached SCSI disk
[63047.143149] BTRFS info (device sda): disk space caching is enabled
[63047.149467] BTRFS info (device sda): has skinny extents
[63047.307663] BTRFS info (device sda): checking UUID tree
[63077.308608] BTRFS error (device sda): tree block 20971520 owner 3
already locked by pid=5693, extent tree corruption detected
[63077.320308] ------------[ cut here ]------------
[63077.325291] WARNING: CPU: 0 PID: 5693 at fs/btrfs/volumes.c:2792
btrfs_remove_chunk+0x4c8/0xa6c [btrfs]
[63077.334888] BTRFS: Transaction aborted (error -135)
[63077.339842] Modules linked in: ath9k ath9k_common pppoe ppp_async
iptable_nat ipt_MASQUERADE ath9k_hw ath10k_pci ath10k_core ath
xt_state xt_nat xt_conntrack xt_REDIRECT xt_FLOWOFFLOAD pppox
ppp_generic nf_nat_ipv4 nf_nat nf_flow_table_hw nf_flow_table
nf_conntrack_rtcache nf_conntrack mac80211 ipt_REJECT cfg80211 xt_time
xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS
xt_LOG wireguard slhc nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6
nf_defrag_ipv4 lzo iptable_mangle iptable_filter ip_tables crc_ccitt
compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6
nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables
msdos ip6_udp_tunnel udp_tunnel sit tunnel4 ip_tunnel vfat fat cifs
nls_utf8 nls_iso8859_1 nls_cp437 sha256_generic md5 md4 hmac ecb
des_generic crypto_acompress
[63077.412357]  usb_storage ehci_platform sd_mod scsi_mod ehci_hcd
gpio_button_hotplug f2fs ext4 jbd2 mbcache btrfs zstd_decompress
zstd_compress zlib_inflate zlib_deflate xxhash xor raid6_pq
lzo_decompress lzo_compress libcrc32c usbcore nls_base usb_common
crc16 aead crypto_null crc32c_generic cryptomgr crc32_generic
crypto_hash
[63077.442011] CPU: 0 PID: 5693 Comm: btrfs-cleaner Not tainted 4.19.19 #0
[63077.448832] Stack : 00000000 86848688 87f9e0a0 800b1758 00000000
00000000 00000000 9c5b991a
[63077.457325]         8052f41c 8689bce4 80560000 8055ba27 804fefe8
00000001 8689bc88 9c5b991a
[63077.465880]         00000000 00000000 806e0000 00006460 00000000
00000000 00000008 00000000
[63077.474390]         00000135 a2000000 00000134 00000000 80560000
00000000 872ec7c0 872746b4
[63077.482950]         00000009 00000ae8 00000000 86848688 00000002
80298f44 00000000 806b0000
[63077.491460]         ...
[63077.493943] Call Trace:
[63077.496481] [<8006b1e8>] show_stack+0x68/0x128
[63077.501021] [<80081d34>] __warn+0xe4/0x118
[63077.505177] [<80081da8>] warn_slowpath_fmt+0x40/0x64
[63077.510407] [<872746b4>] btrfs_remove_chunk+0x4c8/0xa6c [btrfs]
[63077.516632] [<87228720>] btrfs_delete_unused_bgs+0x420/0x430 [btrfs]
[63077.523421] [<87232020>] btree_get_extent+0xac4/0x22ec [btrfs]
[63077.529693] [<87231f30>] btree_get_extent+0x9d4/0x22ec [btrfs]
[63077.535757] ---[ end trace c60950f6e49f8b83 ]---
[63077.540484] BTRFS: error (device sda) in btrfs_remove_chunk:2792:
errno=-135 unknown
[63077.548465] BTRFS info (device sda): forced readonly

After the panic, the drive becomes unmountable, even on little endian machines.

[62211.705357] BTRFS: device label Archive devid 1 transid 49152 /dev/sdg
[62211.720858] BTRFS info (device sdg): disk space caching is enabled
[62211.733227] BTRFS info (device sdg): has skinny extents
[62212.262099] BTRFS error (device sdg): parent transid verify failed
on 998424576 wanted 49152 found 49153
[62212.292076] BTRFS error (device sdg): parent transid verify failed
on 998424576 wanted 49152 found 49153
[62212.310992] BTRFS error (device sdg): failed to read block groups: -5
[62212.452527] BTRFS error (device sdg): open_ctree failed

I restored using btrfs check --init-extent-tree but same issue happens.

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

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-09 19:43 Filesystem corruption under big endian MIPS Rosen Penev

Linux-BTRFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-btrfs/0 linux-btrfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-btrfs linux-btrfs/ https://lore.kernel.org/linux-btrfs \
		linux-btrfs@vger.kernel.org linux-btrfs@archiver.kernel.org
	public-inbox-index linux-btrfs


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-btrfs


AGPL code for this site: git clone https://public-inbox.org/ public-inbox