Ubuntu-focal-kernel/tools/testing/selftests
Michael Ellerman d69f082cb8 selftests/powerpc: Fix error handling in FPU/VMX preemption tests
BugLink: https://bugs.launchpad.net/bugs/2055075

[ Upstream commit 9dbd5927408c4a0707de73ae9dd9306b184e8fee ]

The FPU & VMX preemption tests do not check for errors returned by the
low-level asm routines, preempt_fpu() / preempt_vsx() respectively.
That means any register corruption detected by the asm routines does not
result in a test failure.

Fix it by returning the return value of the asm routines from the
pthread child routines.

Fixes: e5ab8be68e ("selftests/powerpc: Test preservation of FPU and VMX regs across preemption")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231128132748.1990179-1-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2024-02-29 15:23:34 +01:00
..
android
arm64
bpf selftests/bpf: check that modifier resolves after pointer 2023-07-10 17:22:03 +02:00
breakpoints
capabilities
cgroup selftests: cgroup: Test open-time cgroup namespace usage for migration checks 2022-05-20 15:20:06 +02:00
cpu-hotplug
cpufreq
drivers selftests: mlxsw: vxlan_flooding: Prevent flooding of unwanted packets 2022-06-22 14:50:48 +02:00
efivarfs selftests/efivarfs: create-read: fix a resource leak 2024-02-02 14:13:07 +01:00
exec
filesystems
firmware
ftrace selftests/ftrace: Add new test case which checks non unique symbol 2024-02-02 14:12:58 +01:00
futex selftests/futex: fix build for clang 2023-02-01 15:21:05 +01:00
gpio
ia64
intel_pstate selftests/intel_pstate: fix build for ARCH=x86_64 2023-02-01 15:21:05 +01:00
ipc
ir
kcmp
kexec
kmod
kselftest
kvm KVM: VMX: Fix the spelling of CPU_BASED_USE_TSC_OFFSETTING 2023-02-01 15:23:36 +01:00
lib
livepatch
locking
media_tests
membarrier
memfd selftests/memfd: Fix unknown type name build failure 2023-08-09 12:25:34 +02:00
memory-hotplug
mount
mqueue testing/selftests/mqueue: Fix mq_perf_tests to free the allocated cpu set 2022-06-22 14:50:32 +02:00
net selftests: tls: swap the TX and RX sockets in some tests 2024-01-05 14:29:47 +01:00
netfilter selftests: nft_nat: ensuring the listening side is up before starting the client 2023-07-10 17:21:40 +02:00
networking/timestamping
nsfs
ntb
pidfd
powerpc selftests/powerpc: Fix error handling in FPU/VMX preemption tests 2024-02-29 15:23:34 +01:00
prctl
proc proc: fixup uptime selftest 2023-02-01 15:22:13 +01:00
pstore
ptp selftests/ptp: Fix timestamp printf format for PTP_SYS_OFFSET 2023-09-01 14:48:46 +02:00
ptrace
rcutorture
rseq selftests/rseq: Fix build with undefined __weak 2023-10-30 11:41:53 +01:00
rtc selftests: rtc: Increase test timeout so that all tests run 2022-04-14 11:32:14 +02:00
safesetid
seccomp UBUNTU: SAUCE: selftests/seccomp: Fix s390x regs not defined issue 2022-01-13 18:43:10 +01:00
sigaltstack selftests: sigaltstack: fix -Wuninitialized 2023-08-09 12:25:11 +02:00
size
sparc64
splice
static_keys
sync
sysctl
tc-testing selftests: tc: set timeout to 15 minutes 2023-10-02 12:12:14 +02:00
timers UBUNTU: SAUCE: selftest: rtcpie: Force passing unreliable subtest 2023-02-24 14:01:18 +01:00
tmpfs
tpm2
uevent
user
vDSO
vm kselftest/vm: fix tests build with old libc 2022-05-20 15:17:57 +02:00
watchdog
x86 selftests/x86: Add validity check and allow field splitting 2022-05-20 15:18:32 +02:00
zram selftests/zram: Adapt the situation that /dev/zram0 is being used 2022-04-14 11:32:15 +02:00
.gitignore
Makefile selftests: set the BUILD variable to absolute path 2023-02-01 15:23:43 +01:00
gen_kselftest_tar.sh
kselftest.h
kselftest_harness.h
kselftest_install.sh
kselftest_module.h
kselftest_module.sh
lib.mk selftests: Use optional USERCFLAGS and USERLDFLAGS 2023-02-01 15:23:24 +01:00