linux-yocto/tools/testing/selftests
Lorenzo Stoakes ab09a7816c tools/testing/selftests: fix gup_longterm for unknown fs
commit 21c68ad1d9771d331198cc73cbf6e908d7915f35 upstream.

Commit 66bce7afba ("selftests/mm: fix test result reporting in
gup_longterm") introduced a small bug causing unknown filesystems to
always result in a test failure.

This is because do_test() was updated to use a common reporting path, but
this case appears to have been missed.

This is problematic for e.g.  virtme-ng which uses an overlayfs file
system, causing gup_longterm to appear to fail each time due to a test
count mismatch:

	# Planned tests != run tests (50 != 46)
	# Totals: pass:24 fail:0 xfail:0 xpass:0 skip:22 error:0

The fix is to simply change the return into a break.

Link: https://lkml.kernel.org/r/20260106154547.214907-1-lorenzo.stoakes@oracle.com
Fixes: 66bce7afba ("selftests/mm: fix test result reporting in gup_longterm")
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: David Hildenbrand (Red Hat) <david@kernel.org>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Peter Xu <peterx@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-23 11:21:25 +01:00
..
acct
alsa
amd-pstate
arm64
bpf selftests/bpf: Fix selftest verif_scale_strobemeta failure with llvm22 2026-01-23 11:21:23 +01:00
breakpoints
cachestat selftests: cachestat: Fix warning on declaration under label 2025-10-22 09:23:18 -06:00
capabilities
cgroup selftests: cgroup: Use values_close_report in test_cpu 2025-10-15 05:00:59 -10:00
clone3
connector
core
coredump
cpu-hotplug
cpufreq
damon
devices
dma
dmabuf-heaps
drivers selftests: drv-net: Bring back tool() to driver __init__s 2026-01-17 16:35:28 +01:00
dt
efivarfs
exec
fchmodat2
filelock
filesystems
firmware
fpu
ftrace selftests/ftrace: traceonoff_triggers: strip off names 2026-01-08 10:16:52 +01:00
futex
gpio
hid selftests/hid: add tests for missing release on the Dell Synaptics 2025-10-15 17:27:06 +02:00
ia64
intel_pstate
iommu iommufd/selftest: Make it clearer to gcc that the access is not out of bounds 2026-01-02 12:56:48 +01:00
ipc
ir
kcmp
kexec
kho
kmod
kselftest
kselftest_harness
kvm selftests: kvm: try getting XFD and XSAVE state out of sync 2026-01-23 11:21:23 +01:00
landlock selftests/landlock: Properly close a file descriptor 2026-01-23 11:21:22 +01:00
lib
livepatch
lkdtm
locking
lsm
media_tests
membarrier
memfd
memory-hotplug
mincore
mm tools/testing/selftests: fix gup_longterm for unknown fs 2026-01-23 11:21:25 +01:00
module
mount
mount_setattr
move_mount_set_group
mqueue
mseal_system_mappings
namespaces
nci
net selftests: drv-net: fix RPS mask handling for high CPU numbers 2026-01-23 11:21:18 +01:00
nolibc
ntb
openat2
pci_endpoint
pcie_bwctrl
perf_events
pid_namespace
pidfd
power_supply
powerpc
prctl
proc
pstore
ptp
ptrace
rcutorture
resctrl
ring-buffer
riscv
rlimits
rseq
rtc
rust
safesetid
sched
sched_ext
seccomp
sgx
signal
size
sparc64
splice
static_keys
sync
syscall_user_dispatch
sysctl
tc-testing selftests/tc-testing: Create tests trying to add children to clsact/ingress qdiscs 2025-11-10 16:57:56 -08:00
tdx
thermal/intel
timens
timers
tmpfs
tpm2
tty
turbostat
ublk selftests: ublk: fix overflow in ublk_queue_auto_zc_fallback() 2026-01-02 12:56:50 +01:00
uevent
user_events selftests/user_events: fix type cast for write_index packed member in perf_test 2025-11-15 10:52:02 -08:00
vDSO
vfio vfio: selftests: replace iova=vaddr with allocated iovas 2025-11-12 08:04:42 -07:00
vsock selftests/vsock: avoid false-positives when checking dmesg 2025-11-06 07:34:50 -08:00
watchdog
wireguard
x86
zram
.gitignore
gen_kselftest_tar.sh
kselftest_deps.sh
kselftest_harness.h
kselftest_install.sh
kselftest_module.h
kselftest.h
lib.mk
Makefile
run_kselftest.sh