s390/stacktrace: Skip first user stack frame
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 29 Apr 2024 12:28:45 +0000 (14:28 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 14 May 2024 11:37:06 +0000 (13:37 +0200)
commit87eceb17a987802aeee718be4decd19b56fc8e33
tree0c27fa2a537cbd580756c560b265d4fc72fb6432
parentebd912ff9919a10609511383d94942362234c077
s390/stacktrace: Skip first user stack frame

When walking user stack frames the first stack frame (where the stack
pointer points to) should be skipped: the return address of the current
function is saved in the previous stack frame, not the current stack frame,
which is allocated for to be called functions.

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/kernel/stacktrace.c