linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: compat: Move sigreturn32.S to .rodata section
@ 2022-07-01  3:54 Chen Zhongjin
  2022-07-01 15:41 ` Will Deacon
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Zhongjin @ 2022-07-01  3:54 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel; +Cc: catalin.marinas, will, mark.rutland

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: compat: Move sigreturn32.S to .rodata section
  2022-07-01  3:54 [PATCH] arm64: compat: Move sigreturn32.S to .rodata section Chen Zhongjin
@ 2022-07-01 15:41 ` Will Deacon
  0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2022-07-01 15:41 UTC (permalink / raw)
  To: Chen Zhongjin, linux-arm-kernel, linux-kernel
  Cc: catalin.marinas, kernel-team, Will Deacon, mark.rutland

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-01 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01  3:54 [PATCH] arm64: compat: Move sigreturn32.S to .rodata section Chen Zhongjin
2022-07-01 15:41 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).