Skip to contentSkip to conversation

New: SLUB debugging prevents booting encrypted XFS partition

Bug 196895 [email protected] 2 participants 2 messages Sep 18, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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 partition

https://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: No

This has been identified as an upstream issue in
https://bugs.archlinux.org/task/54700

Attempting to boot an encrypted XFS partition with slub_debug=FZPU or CONFIG_SLUB_DEBUG_ON=y results 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 the

problem(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=y and I was able to reproduce the
issue.
Edit:
Rebuilt with CONFIG_XFS_WARN=y set 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/printk set to
7.
Edit2:
After 10 test runs 9 reproduced the issue.
Edit3:
Rebuilt without CONFIG_XFS_WARN=y with CONFIG_XFS_DEBUG=y first run did not
reproduce the issue, second run did reproduce the issue. No additional xfs related output generated with /proc/sys/kernel/printk set to
7. (identical behavior to that noted in Edit)

#2 lore raw

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.