https://bugzilla.kernel.org/show_bug.cgi?id=65321
--- Comment #17 from Christian Burger <christian@xxxxxxxxxx> ---
(In reply to Eric Sandeen from comment #16)
> FWIW, this is likely a hardware or configuration issue, unless shown
> otherwise ... xfs doesn't get corrupted on a power loss in general, that is
> the whole point of the log.
Your pointers are very much appreciated, thank you. Though I am aware of the
idea of journaling, I did not come to the conclusion that some -- in my eyes --
established technology like USB-SATA interfaces could be implemented "faulty".
If I get the chance, I will take a dedicated look at the external hard disk
set-up itself and see if I can reproduce the error by disconnecting during a
continious write using a recent kernel on some Linux desktop machine. Maybe I
can confirm your suspicion and it's the USB-SATA interface not passing the
flush/barrier request through or the hard disk ignoring the request.
In the mean time, I had the pleasure of having one of those USB hard disks
again. :) The original/actual problem I described (file system hangs on mount;
even `sync` hangs afterwards; clean shutdown impossible) happend with a pretty
recent "3.18.0-rc5" without any GrSecurity Patch. I keep the bug closed, unless
someone else has the same problem -- it seems like an edge case.
[ 0.000000] Linux version 3.18.0-rc5-laptop03 (root@laptop03) (gcc version
4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #1 SMP PREEMPT Sun Nov 23
20:22:47 GMT-1 2014
[...]
[462151.655334] XFS (sdc1): Mounting V4 Filesystem
[462151.903453] XFS (sdc1): Starting recovery (logdev: internal)
[462152.241261] XFS: Internal error XFS_WANT_CORRUPTED_GOTO at line 1595 of
file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_free_extent+0xd4/0x110
[462152.241266] CPU: 3 PID: 372924 Comm: mount Tainted: G U W
3.18.0-rc5-laptop03 #1
[462152.241267] Hardware name: LENOVO 2320CTO/2320CTO, BIOS G2ET91WW (2.51 )
01/14/2013
[462152.241269] 0000000000000000 000000000140ceb8 ffffffff81ab829b
ffff8802a372bb30
[462152.241272] ffffffff81330e89 ffff88040a3ec3c0 0000000000000000
ffff88040b49c000
[462152.241274] ffff88040a075200 0000000100000000 0000000000000000
0000000000000001
[462152.241276] Call Trace:
[462152.241288] [<ffffffff81ab829b>] ? dump_stack+0x49/0x6a
[462152.241291] [<ffffffff81330e89>] ? xfs_free_ag_extent+0x519/0x690
[462152.241293] [<ffffffff81332fb4>] ? xfs_free_extent+0xd4/0x110
[462152.241297] [<ffffffff8138d55c>] ? xlog_recover_process_efi+0x16c/0x1b0
[462152.241299] [<ffffffff8138f065>] ?
xlog_recover_process_efis.isra.25+0x55/0xa0
[462152.241302] [<ffffffff813928e3>] ? xlog_recover_finish+0x23/0xb0
[462152.241304] [<ffffffff81387edc>] ? xfs_log_mount_finish+0x2c/0x50
[462152.241307] [<ffffffff8137fc15>] ? xfs_mountfs+0x4f5/0x740
[462152.241310] [<ffffffff81382b3f>] ? xfs_fs_fill_super+0x2cf/0x340
[462152.241312] [<ffffffff81382870>] ? xfs_parseargs+0xbb0/0xbb0
[462152.241315] [<ffffffff8118ea67>] ? mount_bdev+0x1c7/0x210
[462152.241317] [<ffffffff8118ecba>] ? mount_fs+0x1a/0xd0
[462152.241321] [<ffffffff811a93e2>] ? vfs_kern_mount+0x72/0x130
[462152.241323] [<ffffffff811ab013>] ? do_mount+0x1e3/0xa60
[462152.241326] [<ffffffff81180374>] ? __kmalloc_track_caller+0x34/0x140
[462152.241329] [<ffffffff8114aacf>] ? memdup_user+0x3f/0x90
[462152.241331] [<ffffffff811abb68>] ? SyS_mount+0x78/0xc0
[462152.241334] [<ffffffff81ac1e92>] ? system_call_fastpath+0x12/0x17
[462152.241339] XFS (sdc1): Failed to recover EFIs
[462152.241341] XFS (sdc1): log mount finish failed
Another try to mount USB drive with 3.17.2-hardened:
[ 0.000000] Linux version 3.17.2-hardened-r1-laptop03 (root@laptop03) (gcc
version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #1 SMP PREEMPT Wed
Nov 12 15:15
[...]
[ 106.519796] XFS (sdb1): Mounting V4 Filesystem
[ 106.764790] XFS (sdb1): Starting recovery (logdev: internal)
[ 107.074952] XFS: Internal error XFS_WANT_CORRUPTED_GOTO at line 1595 of
file fs/xfs/libxfs/xfs_alloc.c. Caller ffffffff81377c8d
[ 107.074962] CPU: 0 PID: 2984 Comm: mount Not tainted 3.17.2-hardened-r1-
laptop03 #1
[ 107.074965] Hardware name: LENOVO 2320CTO/2320CTO, BIOS G2ET91WW (2.51 )
01/14/2013
[ 107.074968] 0000000000000000 000000000140ceb8 ffffffff81badb38
ffff880406a9c000
[ 107.074974] ffffffff81375b39 ffff88040b0e2300 0000000000000000
ffff88040b35b800
[ 107.074978] ffff880403c0b200 0000000100000000 0000000000000000
0000000000000001
[ 107.074983] Call Trace:
[ 107.074995] [<ffffffff81badb38>] ? dump_stack+0x49/0x7c
[ 107.075003] [<ffffffff81375b39>] ? xfs_free_ag_extent+0x519/0x690
[ 107.075009] [<ffffffff813ce400>] ? xfs_parseargs+0xc40/0xc40
[ 107.075014] [<ffffffff81377c8d>] ? xfs_free_extent+0xdd/0x110
[ 107.075022] [<ffffffff813d9c0c>] ? xlog_recover_process_efi+0x16c/0x1b0
[ 107.075028] [<ffffffff813dbc35>] ?
xlog_recover_process_efis.isra.25+0x55/0xa0
[ 107.075032] [<ffffffff813df723>] ? xlog_recover_finish+0x23/0xc0
[ 107.075037] [<ffffffff813d404c>] ? xfs_log_mount_finish+0x2c/0x50
[ 107.075043] [<ffffffff813cb5c5>] ? xfs_mountfs+0x515/0x760
[ 107.075048] [<ffffffff813ce6ef>] ? xfs_fs_fill_super+0x2ef/0x390
[ 107.075053] [<ffffffff811b7958>] ? mount_bdev+0x1d8/0x220
[ 107.075058] [<ffffffff811b7bf5>] ? mount_fs+0x25/0xf0
[ 107.075067] [<ffffffff811d72e2>] ? vfs_kern_mount+0x72/0x140
[ 107.075074] [<ffffffff811d93b8>] ? do_mount+0x578/0xbf0
[ 107.075081] [<ffffffff81517a2b>] ?
copy_user_enhanced_fast_string+0x1b/0x30
[ 107.075090] [<ffffffff81537bfc>] ? strnlen_user+0xec/0x2a0
[ 107.075097] [<ffffffff811d9fb8>] ? SyS_mount+0x98/0xf0
[ 107.075103] [<ffffffff81bb8bb3>] ? system_call_fastpath+0x16/0x1b
[ 107.075110] [<ffffffff811b9262>] ? SYSC_newstat+0x12/0x40
[ 107.075116] [<ffffffff81bb8bdb>] ? sysret_check+0x1e/0x60
[ 107.075130] XFS (sdb1): Failed to recover EFIs
[ 107.075135] XFS (sdb1): log mount finish failed
--
You are receiving this mail because:
You are the assignee for the bug.
|