From 5cccfc8be6d256e91d155313edef20c1a89064b2 Mon Sep 17 00:00:00 2001 From: Jens Remus Date: Thu, 19 Sep 2024 14:40:06 +0200 Subject: s390/vdso: Add CFI annotations to __arch_chacha20_blocks_nostack() This allows proper unwinding, for instance when using a debugger such as GDB. Signed-off-by: Jens Remus Signed-off-by: Heiko Carstens Acked-by: Vasily Gorbik Signed-off-by: Vasily Gorbik --- arch/s390/kernel/vdso64/vgetrandom-chacha.S | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/s390') diff --git a/arch/s390/kernel/vdso64/vgetrandom-chacha.S b/arch/s390/kernel/vdso64/vgetrandom-chacha.S index 3f7e30886d1b..894954bf3b41 100644 --- a/arch/s390/kernel/vdso64/vgetrandom-chacha.S +++ b/arch/s390/kernel/vdso64/vgetrandom-chacha.S @@ -3,6 +3,7 @@ #include #include #include +#include #include #define STATE0 %v0 @@ -38,6 +39,7 @@ * size_t nblocks) */ SYM_FUNC_START(__arch_chacha20_blocks_nostack) + CFI_STARTPROC larl %r1,.Lconstants /* COPY0 = "expand 32-byte k" */ @@ -177,4 +179,5 @@ SYM_FUNC_START(__arch_chacha20_blocks_nostack) VPERM TMP3,STATE3,STATE3,BEPERM VSTM TMP0,TMP3,0,%r2 j .Lstoredone + CFI_ENDPROC SYM_FUNC_END(__arch_chacha20_blocks_nostack) -- cgit v1.2.3