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

Chen Zhongjin posted 1 patch 3 years, 11 months ago
arch/arm64/kernel/kuser32.S | 1 +
1 file changed, 1 insertion(+)
[PATCH] arm64: compat: Move kuser32.S to .rodata section
Posted by Chen Zhongjin 3 years, 11 months ago
Kuser code should be inside .rodata.

Now code in kuser32.S is inside .text section and never executed.
Move it to .rodata.

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

diff --git a/arch/arm64/kernel/kuser32.S b/arch/arm64/kernel/kuser32.S
index 42bd8c0c60e0..692e9d2e31e5 100644
--- a/arch/arm64/kernel/kuser32.S
+++ b/arch/arm64/kernel/kuser32.S
@@ -15,6 +15,7 @@
 
 #include <asm/unistd.h>
 
+	.section .rodata
 	.align	5
 	.globl	__kuser_helper_start
 __kuser_helper_start:
-- 
2.17.1
Re: [PATCH] arm64: compat: Move kuser32.S to .rodata section
Posted by Will Deacon 3 years, 10 months ago
On Tue, 31 May 2022 09:53:50 +0800, Chen Zhongjin wrote:
> Kuser code should be inside .rodata.
> 
> Now code in kuser32.S is inside .text section and never executed.
> Move it to .rodata.
> 
> 

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

[1/1] arm64: compat: Move kuser32.S to .rodata section
      https://git.kernel.org/arm64/c/2d304afaedc4

Cheers,
-- 
Will

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