Skip to content

Commit 2fd54dd

Browse files
chenhuacaigregkh
authored andcommitted
LoongArch: Fix SYM_SIGFUNC_START definition for 32BIT
commit 98b8aeb upstream. The SYM_SIGFUNC_START definition should match sigcontext that the length of GPRs are 8 bytes for both 32BIT and 64BIT. So replace SZREG with 8 to fix it. Cc: stable@vger.kernel.org Fixes: e4878c3 ("LoongArch: vDSO: Emit GNU_EH_FRAME correctly") Suggested-by: Xi Ruoyao <xry111@xry111.site> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 199ce11 commit 2fd54dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/loongarch/include/asm/linkage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
9, 10, 11, 12, 13, 14, 15, 16, \
7070
17, 18, 19, 20, 21, 22, 23, 24, \
7171
25, 26, 27, 28, 29, 30, 31; \
72-
.cfi_offset \num, SC_REGS + \num * SZREG; \
72+
.cfi_offset \num, SC_REGS + \num * 8; \
7373
.endr; \
7474
\
7575
nop; \

0 commit comments

Comments
 (0)