]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: vDSO: fix ELF hash table entry size for s390x
authorJens Remus <jremus@linux.ibm.com>
Wed, 11 Sep 2024 08:50:14 +0000 (10:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:34 +0000 (15:11 +0200)
commit2d07646df487e59c9e226abc70414ccfbaeac899
tree47cddc927f9f6f3af07bee41a82efe4ca4e23a76
parent0fc61eef8a46269d9a46904fbe0264da2f1e24bd
selftests: vDSO: fix ELF hash table entry size for s390x

[ Upstream commit 14be4e6f35221c4731b004553ecf7cbc6dc1d2d8 ]

The vDSO self tests fail on s390x for a vDSO linked with the GNU linker
ld as follows:

  # ./vdso_test_gettimeofday
  Floating point exception (core dumped)

On s390x the ELF hash table entries are 64 bits instead of 32 bits in
size (see Glibc sysdeps/unix/sysv/linux/s390/bits/elfclass.h).

Fixes: 40723419f407 ("kselftest: Enable vDSO test on non x86 platforms")
Reported-by: Heiko Carstens <hca@linux.ibm.com>
Tested-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/vDSO/parse_vdso.c