s390/vdso: Introduce and use struct stack_frame_vdso_wrapper
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 29 Apr 2024 12:28:47 +0000 (14:28 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 14 May 2024 11:37:07 +0000 (13:37 +0200)
commitbe72ea09c1a5273abf8c6c52ef53e36c701cbf6a
tree91b96d1e0662af8fdff21cffeaf8d8ab11d6291e
parentcd58109283944ea8bdcd0a8211a86cbd2450716a
s390/vdso: Introduce and use struct stack_frame_vdso_wrapper

Introduce and use struct stack_frame_vdso_wrapper within vdso user wrapper
code.  With this structure it is possible to automatically generate an
asm-offset define which can be used to save and restore the return address
of the calling function.

Also use STACK_FRAME_USER_OVERHEAD instead of STACK_FRAME_OVERHEAD to
document that the code works with user space stack frames with the standard
stack frame layout.

Fixes: aa44433ac4ee ("s390: add USER_STACKTRACE support")
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/stacktrace.h
arch/s390/kernel/asm-offsets.c
arch/s390/kernel/vdso64/vdso_user_wrapper.S