Skip to contentSkip to conversation

tests: disable testing of f2fs when PAGE_SIZE != 4096

PATCH In review Ondrej Mosnacek 2 participants 3 messages Jul 31 – Aug 3 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: disable testing of f2fs when PAGE_SIZE != 4096

Current latest f2fs-tools release (1.16.0) doesn't work with it, so just disable the test in such case. See the added comment for more details.

The issue can be reproduced for example:
* on a ppc64le machine with Fedora
* on an aarch64 machine with Fedora ELN or CentOS Stream 10 after running dnf install -y kernel-64k kernel-64k-devel kernel-64k-modules-extra and rebooting

---
 tests/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)
tests/Makefile +9 -0
index 4fe6f3c..084c788 100644
@@ -21,6 +21,15 @@ POL_TYPE := $(shell ./pol_detect $(SELINUXFS))
 # Filter out unavailable filesystems
 FILESYSTEMS := $(foreach fs,$(FILESYSTEMS),$(shell modprobe $(fs) > /dev/null 2>&1 && echo $(fs)))
 
+# Filter out f2fs if PAGE_SIZE != 4096.
+# Latest released f2fs-tools (1.16.0) can't produce a filesystem that is
+# mountable on a large page kernel. Latest master branch can do it with
+# `mkfs.f2fs -b $(getconf PAGESIZE) ...` and device size >= 1GiB (in case
+# of 64K page size), but that's not packaged in Fedora currently.
+ifneq ($(shell getconf PAGESIZE),4096)
+FILESYSTEMS := $(filter-out f2fs,$(FILESYSTEMS))
+endif
+
 SUBDIRS:= domain_trans entrypoint execshare exectrace execute_no_trans \
 	fdreceive inherit link mkdir msg open ptrace readlink relabel rename \
 	rxdir sem setattr setnice shm sigkill stat sysctl task_create \
Signature · 1 line
2.55.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Ondrej Mosnacek

Current latest f2fs-tools release (1.16.0) doesn't work with it, so just disable the test in such case. See the added comment for more details.

The issue can be reproduced for example:
* on a ppc64le machine with Fedora
* on an aarch64 machine with Fedora ELN or CentOS Stream 10 after running dnf install -y kernel-64k kernel-64k-devel kernel-64k-modules-extra and rebooting

author Applied
#2 lore raw
Quoted 12 lines · Stephen Smalley
Quoted 10 lines · Ondrej Mosnacek

Current latest f2fs-tools release (1.16.0) doesn't work with it, so just disable the test in such case. See the added comment for more details.

The issue can be reproduced for example:
* on a ppc64le machine with Fedora
* on an aarch64 machine with Fedora ELN or CentOS Stream 10 after running dnf install -y kernel-64k kernel-64k-devel kernel-64k-modules-extra and rebooting

Quoted 3 lines
Quoted 1 line

Thanks, applied:
https://github.com/SELinuxProject/selinux-testsuite/commit/0e15952d664f86f1936cc2a4c11ce1f1729fd22d

Signature · 3 lines
Ondrej Mosnacek
Senior Software Engineer, Linux Security - SELinux kernel
Red Hat, Inc.