git: ec69d230933f - main - linux: Allows writing to the vdso from the kernel

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Thu, 06 Jun 2024 09:08:13 UTC
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=ec69d230933f82c7c142b053882255aa57475463

commit ec69d230933f82c7c142b053882255aa57475463
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2024-06-05 18:47:48 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-06-06 09:07:49 +0000

    linux: Allows writing to the vdso from the kernel
    
    We need to write to the vdso in the kernel to perform fixups. Move it
    from .rodata to .data so these can be run.
    
    Reported by:    cy
    Sponsored by:   Arm Ltd
---
 sys/compat/linux/linux_vdso_inc.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linux/linux_vdso_inc.S b/sys/compat/linux/linux_vdso_inc.S
index af10907f0b60..44cc357b4a4a 100644
--- a/sys/compat/linux/linux_vdso_inc.S
+++ b/sys/compat/linux/linux_vdso_inc.S
@@ -25,7 +25,7 @@
  * SUCH DAMAGE.
  */
 
-	.section .rodata
+	.section .data
 	.globl _binary_linux_vdso_so_o_start
 _binary_linux_vdso_so_o_start:
 	.incbin "linux_vdso.so.o"