diff options
author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2025-02-17 16:04:18 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2025-03-04 19:15:18 +0300 |
commit | a22ee38d2efe18edc53791fd1036396c23b43ad0 (patch) | |
tree | 4c7a8f5c206ae73d04ea84850425cfa860fd5e89 /scripts | |
parent | 5623bc23a1cb9f9a9470fa73b3a20321dc4c4870 (diff) | |
download | linux-a22ee38d2efe18edc53791fd1036396c23b43ad0.tar.xz |
selftests/vDSO: Fix GNU hash table entry size for s390x
Commit 14be4e6f3522 ("selftests: vDSO: fix ELF hash table entry size for s390x")
changed the type of the ELF hash table entries to 64bit on s390x.
However the *GNU* hash tables entries are always 32bit.
The "bucket" pointer is shared between both hash algorithms.
On s390, this caused the GNU hash algorithm to access its 32-bit entries as if they
were 64-bit, triggering compiler warnings (assignment between "Elf64_Xword *" and
"Elf64_Word *") and runtime crashes.
Introduce a new dedicated "gnu_bucket" pointer which is used by the GNU hash.
Fixes: e0746bde6f82 ("selftests/vDSO: support DT_GNU_HASH")
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250217-selftests-vdso-s390-gnu-hash-v2-1-f6c2532ffe2a@linutronix.de
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions