From nobody Sun Jun 28 07:37:59 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7C1FC433F5 for ; Thu, 10 Feb 2022 13:16:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242063AbiBJNQy (ORCPT ); Thu, 10 Feb 2022 08:16:54 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237360AbiBJNQv (ORCPT ); Thu, 10 Feb 2022 08:16:51 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41DEF1142 for ; Thu, 10 Feb 2022 05:16:53 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id F0F4F1F391; Thu, 10 Feb 2022 13:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644499012; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=YTZipR0AHH/3JqUp1siZN5/DeW54S/X1Be4gcHmMiN4=; b=ZMpsYB/5pf7AqZsawRLtReJBCSmGV1NOXBregl7I2VX/8IFUCBRWCAqojwbk3zRLGz/IXU 9Ffw4CzRGx7Hxjt3BOemPLSQFBTj8YhYq3FvLu1cc39wJhoF1eMnJcrAK27j6c/Ie6Fv7m 87Gzo/cxDw9Bgkih9srx1UXjaDJih5U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644499012; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=YTZipR0AHH/3JqUp1siZN5/DeW54S/X1Be4gcHmMiN4=; b=kv3wNPpXOwpNUU7nJVaX0XP9kJxepzVGb0PzM2Ps4Z2L/UN34bsGylM5Okmk1lPoC6iBiR /lS4jXrJsYalLbDw== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) by relay2.suse.de (Postfix) with ESMTP id 47B68A3B87; Thu, 10 Feb 2022 13:16:50 +0000 (UTC) From: Michal Suchanek To: kexec@lists.infradead.org Cc: Michal Suchanek , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Kees Cook , Masahiro Yamada , Nathan Chancellor , "Peter Zijlstra (Intel)" , Sami Tolvanen , Mark Rutland , Nicholas Piggin , Guenter Roeck , Colin Ian King , linux-kernel@vger.kernel.org Subject: [PATCH] kexec: move KEXEC_SIG_FORCE from arch/x86 to arch Date: Thu, 10 Feb 2022 14:16:48 +0100 Message-Id: <20220210131648.16276-1-msuchanek@suse.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" There is nothing x86-specific about KEXEC_SIG_FORCE Signed-off-by: Michal Suchanek --- arch/Kconfig | 7 +++++++ arch/x86/Kconfig | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 678a80713b21..dc2446f01ac1 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -24,6 +24,13 @@ config KEXEC_ELF config HAVE_IMA_KEXEC bool =20 +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 =20 diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 9f5bd41bf660..3ea648dad6b6 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2032,13 +2032,6 @@ config KEXEC_SIG verification for the corresponding kernel image type being loaded in order for this to work. =20 -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 --=20 2.31.1