Skip to contentSkip to conversation

s390: vmlinux.lds: move JUMP_TABLE_DATA into output section

PATCH In review Ard Biesheuvel 4 participants 5 messages Sep 30, 2018 – Oct 2, 2018 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: vmlinux.lds: move JUMP_TABLE_DATA into output section

Commit e872267b8bcbb179 ("jump_table: move entries into ro_after_init region") moved the __jump_table input section into the __ro_after_init output section, but inadvertently put the macro in the wrong place in the s390 linker script. Let's fix that.

Fixes e872267b8bcbb179 ("jump_table: move entries into ro_after_init region")
Cc Heiko Carstens <[email protected]>
Cc Kees Cook <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Martin Schwidefsky <[email protected]>
Cc Jessica Yu <[email protected]>
Cc Peter Zijlstra <[email protected]>
---
 arch/s390/kernel/vmlinux.lds.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/s390/kernel/vmlinux.lds.S +1 -1
index 4042bbf3f9ad..457713f48734 100644
@@ -64,9 +64,9 @@ SECTIONS
 	__start_ro_after_init = .;
 	.data..ro_after_init : {
 		 *(.data..ro_after_init)
+		JUMP_TABLE_DATA
 	}
 	EXCEPTION_TABLE(16)
-	JUMP_TABLE_DATA
 	. = ALIGN(PAGE_SIZE);
 	__end_ro_after_init = .;
 
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ard Biesheuvel

Commit e872267b8bcbb179 ("jump_table: move entries into ro_after_init region") moved the __jump_table input section into the __ro_after_init output section, but inadvertently put the macro in the wrong place in the s390 linker script. Let's fix that.

Quoted 10 lines
Fixes e872267b8bcbb179 ("jump_table: move entries into ro_after_init region")
Cc Heiko Carstens <[email protected]>
Cc Kees Cook <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Martin Schwidefsky <[email protected]>
Cc Jessica Yu <[email protected]>
Cc Peter Zijlstra <[email protected]>

-Kees

Quoted 22 lines
---
 arch/s390/kernel/vmlinux.lds.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/s390/kernel/vmlinux.lds.S +1 -2
index 4042bbf3f9ad..457713f48734 100644
@@ -64,9 +64,9 @@ SECTIONS
        __start_ro_after_init = .;
        .data..ro_after_init : {
                 *(.data..ro_after_init)
+               JUMP_TABLE_DATA
        }
        EXCEPTION_TABLE(16)
-       JUMP_TABLE_DATA
        . = ALIGN(PAGE_SIZE);
        __end_ro_after_init = .;
 
--

2.17.1

Signature · 2 lines
Kees Cook
Pixel Security
Acked-by on v1 1/1
#2 lore raw
In reply to Ard Biesheuvel
Quoted 15 lines · Ard Biesheuvel

Commit e872267b8bcbb179 ("jump_table: move entries into ro_after_init region") moved the __jump_table input section into the __ro_after_init output section, but inadvertently put the macro in the wrong place in the s390 linker script. Let's fix that.

Fixes e872267b8bcbb179 ("jump_table: move entries into ro_after_init region")
Cc Heiko Carstens <[email protected]>
Cc Kees Cook <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Martin Schwidefsky <[email protected]>
Cc Jessica Yu <[email protected]>
Cc Peter Zijlstra <[email protected]>
Quoted 3 lines
---
 arch/s390/kernel/vmlinux.lds.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I don't think this is very obvious, but this fixes current build breakage in linux-next and I assume Thomas should pick this up.

Quoted 18 lines
arch/s390/kernel/vmlinux.lds.S +1 -1
index 4042bbf3f9ad..457713f48734 100644
@@ -64,9 +64,9 @@ SECTIONS
 	__start_ro_after_init = .;
 	.data..ro_after_init : {
 		 *(.data..ro_after_init)
+		JUMP_TABLE_DATA
 	}
 	EXCEPTION_TABLE(16)
-	JUMP_TABLE_DATA
 	. = ALIGN(PAGE_SIZE);
 	__end_ro_after_init = .;
 
Signature · 1 line
2.17.1
#3 lore raw
Quoted 20 lines · Heiko Carstens
Quoted 15 lines · Ard Biesheuvel

Commit e872267b8bcbb179 ("jump_table: move entries into ro_after_init region") moved the __jump_table input section into the __ro_after_init output section, but inadvertently put the macro in the wrong place in the s390 linker script. Let's fix that.

Fixes e872267b8bcbb179 ("jump_table: move entries into ro_after_init region")
Cc Heiko Carstens <[email protected]>
Cc Kees Cook <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Martin Schwidefsky <[email protected]>
Cc Jessica Yu <[email protected]>
Cc Peter Zijlstra <[email protected]>
Quoted 3 lines
---
 arch/s390/kernel/vmlinux.lds.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines

I don't think this is very obvious, but this fixes current build breakage in linux-next and I assume Thomas should pick this up.

Indeed.

Thomas, Ingo,

Could you please take this fix for the jump lable changes queued in -next, and the other one I sent out yesterday [0], through core/core in tip.git as before?

Thanks,
Ard.

[0] https://lore.kernel.org/lkml/[email protected]/

#4 lore raw

[tip:core/core] s390/vmlinux.lds: Move JUMP_TABLE_DATA into output section

In reply to Ard Biesheuvel
s390/vmlinux.lds: Move JUMP_TABLE_DATA into output section
Commit-ID:  57d15877033e44e9ac283b8c6e82cc67bf6a0aa6
Gitweb:     https://git.kernel.org/tip/57d15877033e44e9ac283b8c6e82cc67bf6a0aa6
Author:     Ard Biesheuvel <[email protected]>
AuthorDate: Sun, 30 Sep 2018 18:49:50 +0200
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Tue, 2 Oct 2018 08:08:08 +0200

s390/vmlinux.lds: Move JUMP_TABLE_DATA into output section

Commit e872267b8bcbb179 ("jump_table: move entries into ro_after_init region") moved the __jump_table input section into the __ro_after_init output section, but inadvertently put the macro in the wrong place in the s390 linker script. Let's fix that.

---
 arch/s390/kernel/vmlinux.lds.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/s390/kernel/vmlinux.lds.S +1 -1
index 4042bbf3f9ad..457713f48734 100644
@@ -64,9 +64,9 @@ SECTIONS
 	__start_ro_after_init = .;
 	.data..ro_after_init : {
 		 *(.data..ro_after_init)
+		JUMP_TABLE_DATA
 	}
 	EXCEPTION_TABLE(16)
-	JUMP_TABLE_DATA
 	. = ALIGN(PAGE_SIZE);
 	__end_ro_after_init = .;