[PATCH] arm64: compat: Move sigreturn32.S to .rodata section

Chen Zhongjin posted 1 patch 3 years, 9 months ago
arch/arm64/kernel/sigreturn32.S | 1 +
1 file changed, 1 insertion(+)
[PATCH] arm64: compat: Move sigreturn32.S to .rodata section
Posted by Chen Zhongjin 3 years, 9 months ago
Kuser code should be inside .rodata. sigreturn32.S is splited
from kuser32.S, the code in .text section is never executed.

Move it to .rodata.

Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
---
 arch/arm64/kernel/sigreturn32.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/sigreturn32.S b/arch/arm64/kernel/sigreturn32.S
index 475d30d471ac..ccbd4aab4ba4 100644
--- a/arch/arm64/kernel/sigreturn32.S
+++ b/arch/arm64/kernel/sigreturn32.S
@@ -15,6 +15,7 @@
 
 #include <asm/unistd.h>
 
+	.section .rodata
 	.globl __aarch32_sigret_code_start
 __aarch32_sigret_code_start:
 
-- 
2.17.1
Re: [PATCH] arm64: compat: Move sigreturn32.S to .rodata section
Posted by Will Deacon 3 years, 9 months ago
On Fri, 1 Jul 2022 11:54:56 +0800, Chen Zhongjin wrote:
> Kuser code should be inside .rodata. sigreturn32.S is splited
> from kuser32.S, the code in .text section is never executed.
> 
> Move it to .rodata.
> 
> 

Applied to arm64 (for-next/vdso), thanks!

[1/1] arm64: compat: Move sigreturn32.S to .rodata section
      https://git.kernel.org/arm64/c/d9b728f8600b

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev