xfs-masters
[Top] [All Lists]

[Bug 65321] XFS mount hangs with XFS_WANT_CORRUPTED_GOTO; impairs system

To: xfs-masters@xxxxxxxxxxx
Subject: [Bug 65321] XFS mount hangs with XFS_WANT_CORRUPTED_GOTO; impairs system functionality
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Thu, 02 Jul 2015 19:35:13 +0000
Auto-submitted: auto-generated
Delivered-to: xfs-masters@xxxxxxxxxxx
In-reply-to: <bug-65321-470@xxxxxxxxxxxxxxxxxxxxxxxxx/>
References: <bug-65321-470@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.kernel.org/show_bug.cgi?id=65321

--- Comment #19 from JÃrgen Thomann <juergen_thomann@xxxxxxxxx> ---
This problem still is present in kernel 4.0.5 of openSuse Tumbleweed
(4.0.5-3-default #1 SMP) and also Debian jessie with kernel 3.16
(3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux) is
affected by the hanging mount.

I have a dd dump of the filesystem and can reproduce the hanging mount as often
as it is needed to find the issue. 

It can be repaired with xfs_repair -L of version 3.2.2 in a way that you can
mount it afterwards. 

I attached a trace report of it. You can find a metadata dump at
"http://ftp.innogames.de/~juergen/metadata_dump"; but I'm not sure if it is
complete as it terminated with "xfs_metadump: invalid dqblk inode number (-1)". 

with the debug kernel mount does not hang, but gets a Segmentation fault after
1 second.

Thanks for looking at it,
JÃrgen

openSuse kernel 4.0.5-debug:
[  198.572472] XFS (vdb): Mounting V4 Filesystem
[  198.644457] XFS (vdb): Starting recovery (logdev: internal)
[  199.975722] XFS: Assertion failed: fs_is_ok, file:
../fs/xfs/libxfs/xfs_alloc.c, line: 1594
[  199.975757] ------------[ cut here ]------------
[  199.975762] kernel BUG at ../fs/xfs/xfs_message.c:106!
[  199.975768] invalid opcode: 0000 [#1] SMP 
[  199.975775] Modules linked in: xfs libcrc32c nf_log_ipv6 xt_pkttype
nf_log_ipv4 nf_log_common xt_LOG xt_limit dell_rbu iscsi_ibft iscsi_boot_sysfs
af_packet ip6t_REJECT xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw
dcdbas ipt_REJECT iptable_raw xt_CT iptable_filter ip6table_mangle
nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4
ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables ppdev
pcspkr serio_raw virtio_balloon qxl ttm drm_kms_helper drm i2c_piix4 pvpanic
parport_pc 8250_fintek parport acpi_cpufreq button processor sr_mod cdrom
ata_generic ata_piix virtio_blk virtio_console virtio_net uhci_hcd ehci_hcd
virtio_pci virtio_ring virtio usbcore usb_common floppy sg
[  199.975894] CPU: 0 PID: 1423 Comm: mount Not tainted 4.0.5-3-debug #1
[  199.975900] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[  199.975905] task: ffff88003b9c2410 ti: ffff88003b5dc000 task.ti:
ffff88003b5dc000
[  199.975911] RIP: 0010:[<ffffffffa0345872>]  [<ffffffffa0345872>]
assfail+0x22/0x30 [xfs]
[  199.975945] RSP: 0018:ffff88003b5dfb08  EFLAGS: 00010296
[  199.975950] RAX: 000000000000004f RBX: ffff880036cacc48 RCX:
0000000000000000
[  199.975955] RDX: 000000000000004f RSI: ffff88003fc0da58 RDI:
ffff88003fc0da58
[  199.975960] RBP: 0000000000045f20 R08: 0000000000000000 R09:
0000000000000267
[  199.975964] R10: 0000000000000000 R11: 0000000000000267 R12:
ffff88003728b300
[  199.975969] R13: ffff8800371d3000 R14: 0000000000000001 R15:
0000000000000002
[  199.975975] FS:  00007f91e8ce7840(0000) GS:ffff88003fc00000(0000)
knlGS:0000000000000000
[  199.975980] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  199.975985] CR2: 00007f662325e000 CR3: 000000003718e000 CR4:
00000000001007f0
[  199.975993] Stack:
[  199.975997]  ffff88003728b300 ffffffffa02e1586 ffff8800371d3200
ffff88003728b300
[  199.976012]  000000003b404000 ffff8800371d3000 ffff88003b404000
0000000000000000
[  199.976021]  0000000000000002 0000000000000001 0000000100000000
0000000000000000
[  199.976033] Call Trace:
[  199.976059]  [<ffffffffa02e1586>] xfs_free_ag_extent+0x3a6/0xa00 [xfs]
[  199.976079]  [<ffffffffa02e4b65>] xfs_free_extent+0x115/0x150 [xfs]
[  199.976104]  [<ffffffffa035e014>] xlog_recover_process_efi+0x194/0x1e0 [xfs]
[  199.976128]  [<ffffffffa035e0d1>] xlog_recover_process_efis+0x71/0xf0 [xfs]
[  199.976150]  [<ffffffffa035f19c>] xlog_recover_finish+0x1c/0xc0 [xfs]
[  199.976173]  [<ffffffffa034f0ef>] xfs_log_mount_finish+0x4f/0x70 [xfs]
[  199.976198]  [<ffffffffa0346a5e>] xfs_mountfs+0x5be/0x840 [xfs]
[  199.976222]  [<ffffffffa034ae98>] xfs_fs_fill_super+0x2d8/0x350 [xfs]
[  199.976232]  [<ffffffff811db41a>] mount_bdev+0x1ba/0x1f0
[  199.976239]  [<ffffffff811dbd76>] mount_fs+0x36/0x190
[  199.976247]  [<ffffffff811f8042>] vfs_kern_mount+0x62/0x120
[  199.976253]  [<ffffffff811fa8c6>] do_mount+0x206/0xb60
[  199.976260]  [<ffffffff811fb54d>] SyS_mount+0x8d/0xe0
[  199.976269]  [<ffffffff8164760d>] system_call_fastpath+0x16/0x1b
[  199.976279]  [<00007f91e83d3eda>] 0x7f91e83d3eda
[  199.976283] Code: 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f1 41 89
d0 48 83 ec 08 48 89 fa 48 c7 c6 a0 76 38 a0 31 ff 31 c0 e8 3e fb ff ff <0f> 0b
66 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 83 
[  199.976471] RIP  [<ffffffffa0345872>] assfail+0x22/0x30 [xfs]
[  199.976565]  RSP <ffff88003b5dfb08>
[  199.976645] ---[ end trace 9fc0fa797f96f95b ]---


Stacktrace on Debian:
[1118957.081386] XFS: Internal error XFS_WANT_CORRUPTED_GOTO at line 1595 of
file /build/linux-QZaPpC/linux-3.16.7-ckt11/fs/xfs/xfs_alloc.c.  Caller
xfs_free_extent+0xb9/0xf0 [xfs]
[1118957.081429] CPU: 6 PID: 5297 Comm: mount Not tainted 3.16.0-4-amd64 #1
Debian 3.16.7-ckt11-1
[1118957.081430] Hardware name: Dell Inc. PowerEdge M620/0T36VK, BIOS 2.5.2
02/03/2015
[1118957.081432]  0000000000000002 ffffffff8150b405 0000000000045f20
ffffffffa030c1b6
[1118957.081435]  ffff880dd9c07dc0 ffff880fecbd3dc0 ffff8809660c2c48
0000000000000002
[1118957.081436]  0000000000000000 0000000100000000 0000000000000000
0000000000000001
[1118957.081438] Call Trace:
[1118957.081444]  [<ffffffff8150b405>] ? dump_stack+0x41/0x51
[1118957.081453]  [<ffffffffa030c1b6>] ? xfs_free_ag_extent+0x1f6/0x7e0 [xfs]
[1118957.081460]  [<ffffffffa030d729>] ? xfs_free_extent+0xb9/0xf0 [xfs]
[1118957.081469]  [<ffffffffa03409bc>] ? xlog_recover_process_efi+0x16c/0x1b0
[xfs]
[1118957.081477]  [<ffffffffa0306270>] ? xfs_parseargs+0xb80/0xb80 [xfs]
[1118957.081484]  [<ffffffffa0342812>] ?
xlog_recover_process_efis.isra.27+0x62/0xb0 [xfs]
[1118957.081491]  [<ffffffffa0306270>] ? xfs_parseargs+0xb80/0xb80 [xfs]
[1118957.081499]  [<ffffffffa03458ec>] ? xlog_recover_finish+0x1c/0xb0 [xfs]
[1118957.081507]  [<ffffffffa034a16c>] ? xfs_log_mount_finish+0x2c/0x50 [xfs]
[1118957.081514]  [<ffffffffa0303419>] ? xfs_mountfs+0x469/0x700 [xfs]
[1118957.081521]  [<ffffffffa0306503>] ? xfs_fs_fill_super+0x293/0x310 [xfs]
[1118957.081525]  [<ffffffff811ab456>] ? mount_bdev+0x1a6/0x1e0
[1118957.081527]  [<ffffffff811abce4>] ? mount_fs+0x34/0x1a0
[1118957.081530]  [<ffffffff811c5562>] ? vfs_kern_mount+0x62/0x110
[1118957.081533]  [<ffffffff811c7dfa>] ? do_mount+0x23a/0xb00
[1118957.081536]  [<ffffffff8115811d>] ? memdup_user+0x3d/0x70
[1118957.081538]  [<ffffffff811c89b1>] ? SyS_mount+0x81/0xc0
[1118957.081540]  [<ffffffff815115cd>] ? system_call_fast_compare_end+0x10/0x15
[1118957.081547] XFS (dm-5): Failed to recover EFIs
[1118957.081559] XFS (dm-5): log mount finish failed

-- 
You are receiving this mail because:
You are the assignee for the bug.
<Prev in Thread] Current Thread [Next in Thread>