Skip to contentSkip to conversation

kexec: move KEXEC_SIG_FORCE from arch/x86 to arch

PATCH In review Michal Suchanek 2 participants 2 messages Feb 10, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec: move KEXEC_SIG_FORCE from arch/x86 to arch

There is nothing x86-specific about KEXEC_SIG_FORCE

---
 arch/Kconfig     | 7 +++++++
 arch/x86/Kconfig | 7 -------
 2 files changed, 7 insertions(+), 7 deletions(-)
arch/Kconfig +7 -0
index 678a80713b21..dc2446f01ac1 100644
@@ -24,6 +24,13 @@ config KEXEC_ELF
 config HAVE_IMA_KEXEC
 	bool
 
+config KEXEC_SIG_FORCE
+	bool "Require a valid signature in kexec_file_load() syscall"
+	depends on KEXEC_SIG
+	help
+	  This option makes kernel signature verification mandatory for
+	  the kexec_file_load() syscall.
+
 config SET_FS
 	bool
 
arch/x86/Kconfig +0 -7
index 9f5bd41bf660..3ea648dad6b6 100644
@@ -2032,13 +2032,6 @@ config KEXEC_SIG
 	  verification for the corresponding kernel image type being
 	  loaded in order for this to work.
 
-config KEXEC_SIG_FORCE
-	bool "Require a valid signature in kexec_file_load() syscall"
-	depends on KEXEC_SIG
-	help
-	  This option makes kernel signature verification mandatory for
-	  the kexec_file_load() syscall.
-
 config KEXEC_BZIMAGE_VERIFY_SIG
 	bool "Enable bzImage signature verification support"
 	depends on KEXEC_SIG
Signature · 1 line
2.31.1
#1 lore raw
Quoted 31 lines · Michal Suchanek

There is nothing x86-specific about KEXEC_SIG_FORCE

---
 arch/Kconfig     | 7 +++++++
 arch/x86/Kconfig | 7 -------
 2 files changed, 7 insertions(+), 7 deletions(-)
arch/Kconfig +7 -0
index 678a80713b21..dc2446f01ac1 100644
@@ -24,6 +24,13 @@ config KEXEC_ELF
 config HAVE_IMA_KEXEC
 	bool
 
+config KEXEC_SIG_FORCE
+	bool "Require a valid signature in kexec_file_load() syscall"
+	depends on KEXEC_SIG
+	help
+	  This option makes kernel signature verification mandatory for
+	  the kexec_file_load() syscall.
+
 config SET_FS
 	bool
 
arch/x86/Kconfig +0 -0
index 9f5bd41bf660..3ea648dad6b6 100644

arch/x86/Kconfig config KEXEC_SIG · line 2041

Quoted 10 lines
arch/x86/Kconfig +0 -7
@@ -2032,13 +2032,6 @@ config KEXEC_SIG
 	  verification for the corresponding kernel image type being
 	  loaded in order for this to work.
 
-config KEXEC_SIG_FORCE
-	bool "Require a valid signature in kexec_file_load() syscall"
-	depends on KEXEC_SIG
-	help
-	  This option makes kernel signature verification mandatory for
-	  the kexec_file_load() syscall.
-

This means it is no longer folded under KEXEC_SIG in menuconfig, which makes it harder to find. I would prefer seeing KEXEC_SIG (and KEXEC_SIG_FORCE) moved out of the per-arch Kconfig files into a common location, and then arch Kconfig can add something like:

select ARCH_SUPPORTS_KEXEC

Quoted 6 lines
arch/x86/Kconfig +0 -0
 config KEXEC_BZIMAGE_VERIFY_SIG
 	bool "Enable bzImage signature verification support"
 	depends on KEXEC_SIG
Signature · 1 line
2.31.1
Signature · 1 line
Kees Cook