Ubuntu-focal-kernel/tools/testing
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
..
fault-injection
ktest ktest.pl: Add RUN_TIMEOUT option with default unlimited 2023-05-12 17:15:11 +02:00
nvdimm
radix-tree radix tree test suite: fix incorrect allocation size for pthreads 2023-10-30 11:41:52 +01:00
scatterlist
selftests selftests/powerpc: Fix error handling in FPU/VMX preemption tests 2024-02-29 15:23:34 +01:00
vsock