s390/vdso: Add CFI for RA register to asm macro vdso_func
authorJens Remus <jremus@linux.ibm.com>
Tue, 23 Apr 2024 15:35:52 +0000 (17:35 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 26 Apr 2024 14:22:38 +0000 (16:22 +0200)
commitb961ec10b9f9719987470236feb50c967db5a652
tree8a7eceda65663e421667ac04aa17fb0216f6812b
parent5e1a99cf22a65bd91cb43c5380cc14a44b85ad2a
s390/vdso: Add CFI for RA register to asm macro vdso_func

The return-address (RA) register r14 is specified as volatile in the
s390x ELF ABI [1]. Nevertheless proper CFI directives must be provided
for an unwinder to restore the return address, if the RA register
value is changed from its value at function entry, as it is the case.

[1]: s390x ELF ABI, https://github.com/IBM/s390x-abi/releases

Fixes: 4bff8cb54502 ("s390: convert to GENERIC_VDSO")
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/dwarf.h
arch/s390/kernel/vdso64/vdso_user_wrapper.S