New: SLUB debugging prevents booting encrypted XFS partition
Resending last message in plain text this time...
Would you like me to create a ticket on the XFS Bugzilla?
Thanks,
Stephen Panicho
Quoted 86 lines · Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the
bugzilla web interface).This might indicate a bug in XFS?
Begin forwarded message:
Date: Mon, 11 Sep 2017 01:44:34 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 196895] New: SLUB debugging prevents booting encrypted XFS partitionhttps://bugzilla.kernel.org/show_bug.cgi?id=196895
Bug ID: 196895
Summary: SLUB debugging prevents booting encrypted XFS
partition
Product: Memory Management
Version: 2.5
Kernel Version: 4.13
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Slab Allocator
Assignee: [email protected]
Reporter: [email protected]
Regression: NoThis has been identified as an upstream issue in
https://bugs.archlinux.org/task/54700Attempting to boot an encrypted XFS partition with slub_debug=FZPU or
CONFIG_SLUB_DEBUG_ON=yresults in memory corruption and failure to mount the
disk.The error messages are as follows:
[ 23.115192] XFS (dm—0): metadata I/O error: block 0x2 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 23.115300] XFS (dm—0): metadata I/O error: block 0x324b002 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 23.115380] XFS (dm-0): metadata I/O error: block 0x6496002 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 23.115459] XFS (dm-0): metadata I/O error: block 0x96e1002 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 23.115468] XFS (dm-0): Corruption of in—memory data detected. Shutting down filesystem [ 23.115471] XFS (dm-0): Please umount the filesystem and rectify theproblem(s)
A notable comment from user "loqs" in the Arch Linux bug tracker post linked at
the beginning of this post:Reran the test with only
CONFIG_SLAB_CANARY=yand I was able to reproduce the
issue.
Edit:
Rebuilt withCONFIG_XFS_WARN=yset as well first run did not reproduce the
issue, second run did reproduce the issue.
No additional xfs related output generated with/proc/sys/kernel/printkset to
7.
Edit2:
After 10 test runs 9 reproduced the issue.
Edit3:
Rebuilt withoutCONFIG_XFS_WARN=ywithCONFIG_XFS_DEBUG=yfirst run did not
reproduce the issue, second run did reproduce the issue. No additional xfs related output generated with/proc/sys/kernel/printkset to
7. (identical behavior to that noted in Edit)
Not sure how they related to slub debugging, but the warnings you see below mean that XFS got an I/O error back from the layer below, so that might be the best place to look.