]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 13 Sep 2024 15:28:36 +0000 (17:28 +0200)
commit14be4e6f35221c4731b004553ecf7cbc6dc1d2d8
treec6f2c63627fcc4ec531f7abe034b673138280573
parent8072b39c3a75b63bc08737a74b24c263b7909ba0
selftests: vDSO: fix ELF hash table entry size for s390x

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>
tools/testing/selftests/vDSO/parse_vdso.c