Skip to contentSkip to conversation

xfs: mark ARM OABI as incompatible in Kconfig

PATCH In review Eric Sandeen 3 participants 4 messages Feb 25, 2020 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: mark ARM OABI as incompatible in Kconfig

The old ARM OABI's structure alignment quirks break xfs disk structures, let's just move on and disallow it rather than playing whack-a-mole for the infrequent times someone selects this old config, which is usually during "make randconfig" tests.

---

fs/xfs/Kconfig +2 -0
index e685299eb3d2..043624bd4ab2 100644
@@ -2,6 +2,8 @@
 config XFS_FS
 	tristate "XFS filesystem support"
 	depends on BLOCK
+	# We don't support OABI structure alignment on ARM
+	depends on (!ARM || AEABI)
 	select EXPORTFS
 	select LIBCRC32C
 	select FS_IOMAP
#1 lore raw
Quoted 13 lines · Eric Sandeen

The old ARM OABI's structure alignment quirks break xfs disk structures, let's just move on and disallow it rather than playing whack-a-mole for the infrequent times someone selects this old config, which is usually during "make randconfig" tests.

---

fs/xfs/Kconfig +0 -0
index e685299eb3d2..043624bd4ab2 100644

fs/xfs/Kconfig line 5

Quoted 4 lines
fs/xfs/Kconfig +1 -0
@@ -2,6 +2,8 @@
 config XFS_FS
 	tristate "XFS filesystem support"
 	depends on BLOCK
+	# We don't support OABI structure alignment on ARM

Should this limitation be documented in the help screen?

Quoted 5 lines
fs/xfs/Kconfig +1 -0
+	depends on (!ARM || AEABI)
 	select EXPORTFS
 	select LIBCRC32C
 	select FS_IOMAP
#2 lore raw
Quoted 9 lines · Darrick J. Wong
Quoted 8 lines · Eric Sandeen

The old ARM OABI's structure alignment quirks break xfs disk structures, let's just move on and disallow it rather than playing whack-a-mole for the infrequent times someone selects this old config, which is usually during "make randconfig" tests.

---

Quoted 11 lines

fs/xfs/Kconfig line 5

Quoted 9 lines
fs/xfs/Kconfig +1 -0
index e685299eb3d2..043624bd4ab2 100644
@@ -2,6 +2,8 @@
 config XFS_FS
 	tristate "XFS filesystem support"
 	depends on BLOCK
+	# We don't support OABI structure alignment on ARM

Should this limitation be documented in the help screen?

Yeah probably.

But now looking at

aa2dd0ad4d6d xfs: remove __arch_pack

hch indicates that some non-arm architectures have similar problems, so is there any point to excluding this one config on this one arch?

-Eric

#3 lore raw
Quoted 8 lines · Eric Sandeen

Yeah probably.

But now looking at

aa2dd0ad4d6d xfs: remove __arch_pack

hch indicates that some non-arm architectures have similar problems, so is there any point to excluding this one config on this one arch?

Yes, I think we just need to be more careful with our newly added structure layouts and whenever we do a major reorganization of an existing one.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel