]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
kselftest: Fix vdso_test_abi return status
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Mon, 31 Jan 2022 11:34:05 +0000 (11:34 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:44:05 +0000 (11:44 +0100)
commit80481ce777f46dc329cd5ca6257d85587da73863
tree774361a617f8465bc29bb83c79f24b4e50a0aeb9
parent78ca8ed6e8a38d3766e467a8f1c2c971477ad5bb
kselftest: Fix vdso_test_abi return status

BugLink: https://bugs.launchpad.net/bugs/1963890
[ Upstream commit ec049891b2dc16591813eacaddc476b3d27c8c14 ]

vdso_test_abi contains a batch of tests that verify the validity of the
vDSO ABI.

When a vDSO symbol is not found the relevant test is skipped reporting
KSFT_SKIP. All the tests return values are then added in a single
variable which is checked to verify failures. This approach can have
side effects which result in reporting the wrong kselftest exit status.

Fix vdso_test_abi verifying the return code of each test separately.

Cc: Shuah Khan <shuah@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Reported-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
tools/testing/selftests/vDSO/vdso_test_abi.c