From patchwork Wed Jul 12 16:15:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric DeVolder X-Patchwork-Id: 13310640 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 5DF88C001DC for ; Wed, 12 Jul 2023 16:17:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233310AbjGLQRA (ORCPT ); Wed, 12 Jul 2023 12:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231309AbjGLQQk (ORCPT ); Wed, 12 Jul 2023 12:16:40 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D85410EA; Wed, 12 Jul 2023 09:16:31 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36CEjHDv011216; Wed, 12 Jul 2023 16:16:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=qysBbjkRFpiv0g2nt974fH1e1g2Uj3S9X6d8rMzs4p0=; b=NrPUOduFrZcSVSODxcKnycP+HTG4hlBFX6CpzFBYJMEhPU9OCFS2V13xQ1UjcpM+sKo3 rrr7JKrCnkLCy18XXZRd3qhy1jd+JhWvwxni99m0aMFLP54+Wy5BNdUtu1uO/7+1kD3y myC35Kx7x8Z1bRCfzZCoc5hSCO809L3Zxdgj2pch26V3kV8cRxPy37bS6fd3mYIuq7ku 4AXgXUV4NG/1U7UrHrW1Y/f0q6cQ+rjhAA09Y+5Jh7jiTXVRDs2XrxCuRDi+iZ59Ezlu q5/ho+uAcrSRKTtTHBlZKsj7+B5HEj4oKY9q6esqIsoNWdUv/4u0fx7XdCn7dgdjONTq cQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rrgn7wfet-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Jul 2023 16:16:05 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 36CFBhYZ033274; Wed, 12 Jul 2023 16:16:04 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2176.outbound.protection.outlook.com [104.47.57.176]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3rpx87b2aj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Jul 2023 16:16:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FntzZzw4xWLt6CGclUPSvCCgU8/wbOUSBYSAfNyaPb/um3u1St3JNz5IYuclNZIwKgDxwTisCzqY1Y4lpsbpDBMEFsALriqJajVEl8zF4nCFFmm+DHCNlIGvRUdTrd/jnB87ij1JHyELl3jcU7hJ5R1LRAi7QZbWjfkMaUzYM60Tinf5jxjygYKODECoGyZLOY50tlFZBYBFf5+hAI6hGC7/aLR+y7Pj/Pkb7z+gXYmaLIyq+XoKA+EUm52UYmQjhJ2qoydckjsN6uDuknr67g0HoopKmwQ6GhckqrhByVr9vzx5AH1SX9v/1jhrmk/grPIGm2t6rVUqFujqNuNFyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qysBbjkRFpiv0g2nt974fH1e1g2Uj3S9X6d8rMzs4p0=; b=kTFucYsslmien+07nysFCvaKVj41UaSYfP2XcfE4QEotD0YbCRlWA4ZCzop8XnZ6HYnrbXXKKfEJE5Tez12JMInMZBO+0at49ftXPw1XqMZmqanB8zyHQTa2cR0rhEz0VXi89kYxGwGa66HDl92qj1YDVjgG2jk7KwoQUfji1NMCDVaYKrmvapMy89VN9TYTyYX8X92AwUjmudzZZnGIoYQ3GsoFwZi6dVwQaHFsdVOn2nPHZiHchb7rVU+ZWAGAJneFc8SfGSCwrigPD1JOuHQkzLLyMEaV0F8oMoANWweeWOf3ioenHbdoYyI56Z+TjG3AAb+qbXtcJHxRp9Vciw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qysBbjkRFpiv0g2nt974fH1e1g2Uj3S9X6d8rMzs4p0=; b=WIbn0RRX9s7FFNanXIfuhpXFSJszQ/tv2NdE2R8eISsmMTLecHW2XYR81hhybnfxSkfKtcZNDH7VZioI/Eb4mjrbGMUEOQT2poPEF7xAk3q+u4NDH4z03iANvCd0kO1RZLD+lokyA/ParsDyIk3vLCxU96+p1Ya3gFv2Y2nRAOA= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by PH8PR10MB6501.namprd10.prod.outlook.com (2603:10b6:510:22b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.22; Wed, 12 Jul 2023 16:16:00 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::4c83:52fa:a398:11a8]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::4c83:52fa:a398:11a8%3]) with mapi id 15.20.6565.028; Wed, 12 Jul 2023 16:16:00 +0000 From: Eric DeVolder To: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, chenhuacai@kernel.org, geert@linux-m68k.org, tsbogend@alpha.franken.de, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Cc: kernel@xen0n.name, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, hpa@zytor.com, keescook@chromium.org, paulmck@kernel.org, peterz@infradead.org, frederic@kernel.org, akpm@linux-foundation.org, ardb@kernel.org, samitolvanen@google.com, juerg.haefliger@canonical.com, arnd@arndb.de, rmk+kernel@armlinux.org.uk, linus.walleij@linaro.org, sebastian.reichel@collabora.com, rppt@kernel.org, kirill.shutemov@linux.intel.com, anshuman.khandual@arm.com, ziy@nvidia.com, masahiroy@kernel.org, ndesaulniers@google.com, mhiramat@kernel.org, ojeda@kernel.org, thunder.leizhen@huawei.com, xin3.li@intel.com, tj@kernel.org, gregkh@linuxfoundation.org, tsi@tuyoix.net, bhe@redhat.com, hbathini@linux.ibm.com, sourabhjain@linux.ibm.com, eric.devolder@oracle.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com Subject: [PATCH v6 02/14] x86/kexec: refactor for kernel/Kconfig.kexec Date: Wed, 12 Jul 2023 12:15:33 -0400 Message-Id: <20230712161545.87870-3-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230712161545.87870-1-eric.devolder@oracle.com> References: <20230712161545.87870-1-eric.devolder@oracle.com> X-ClientProxiedBy: DM6PR11CA0028.namprd11.prod.outlook.com (2603:10b6:5:190::41) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|PH8PR10MB6501:EE_ X-MS-Office365-Filtering-Correlation-Id: 136c9e81-09ea-4738-9823-08db82f347d1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E0cJNRoXuEE4PRWvc3q2bdaDNFD4xcKsDNKx7/v6N5MIM2LH1oGz7tAySJXGzAHxeKJ8NhgUMGEz3yNmcs/OYoZKb/IpXTqvwq3QMVfCA5L7H4+hAljsDnEOHWqsY2GRa7vJTLRe4rHv+TcQFmucEEePo+u0xkoTSgEUHTxNBIk1oRn0VVqsfVYdCXcIGxsfHD/diyPiNnQBaBemJeCVhWar30wJDpEnn3qZKjyCn7H1zc05dZ2weROSWlnUvxv4mu7WVDeKqqmwezyBnr2RNy5OAsOS9RxXulnKbNb/bIMBMcAT8teQvoCwUGbJo3rNa6oTHt/azC7SzPdWwSHK97N6JYgO96kZIM+njFnSLZMPQLjUz+rjp7iDKQlKwZTOKcgxtEcTiMrLePlAlddD2t48TcDh15khqwadodnUwKtReb1F3Z6+CONk5OTm+EiaRME0Pd6JqPQunG1VIFeHd34sYzF4+mUNWArtoF9x3ZUu+cNuwdxXeYxjBLNYuYyHsF6vs94ijWPVJCb7tzc845PBbjrKGwvpbPOCzETaun+6HsX8MHkGyUbphyy+5VkIHTlJLTGy5QPTHZnBkG9yqUQYuQBm/U8CsKwdeAtbwH0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4531.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(376002)(396003)(39860400002)(136003)(366004)(346002)(451199021)(38100700002)(478600001)(921005)(4326008)(86362001)(6666004)(66476007)(66556008)(66946007)(6486002)(6512007)(316002)(41300700001)(186003)(83380400001)(2616005)(2906002)(36756003)(8936002)(107886003)(8676002)(7406005)(7366002)(7416002)(5660300002)(26005)(6506007)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 51t0mtEjGWieVNwdepUejKr9SOLbIe/TDjn75/5mTKPjeCkMT3ACmqbabN0XSBCilSfSXkrVuKCWxz96ststw56rDTIAxusG2Y0pd4dm5NtsmxIEFVBAt2Nf2I2ajFKvl1tp8m99nzRWxQdOcp1AC2hvA5QKcr2xJfZZypDknB5KuHQ3Iill7+MJQLotAqLw7gdI50XvxR5AWDagy6LpVxu732cS7TW3NUM3aREG9o3d7VAXTVQqJY/OKpyFAqPks2klsEHciDlP2bUltP9Y4RtGdMkg5ZXGUQSfQ7C/Ap2NE3zdoPOLJbKPIvuJwMZSr3Zz1egvotJP0VVradu/h4yXpGq6urEqc6QQRbvEBNnmOOx2TWY3GT/1jA7UZbMztPh/t7yQjJoq1/q3B3uX4IdDPg929yXXpc/5VJhfpvxEQEdQMgWLkWV+Mrsmtto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XzeeX4tYVJhYeFjieBEDbAD0tQJ/1dQ2U2puyQwFpJsDE2OEu8aXfcFS42guOXffxFO/28jk2M/ty9S9Q== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: CicfWHnOzV5deMq19jtBliYhL/W0Qj7IZaUY7tsLAhJ6WScPSYQ5alatshQWFZPPtkXSrdVAZ7rQpZljYDtRGAjC2Z97/owL9jc0tZovXdN6HYg6ti8kbD2zTW62mKK91eUv9500eKkMg/45lfEswrFSGwQ6K/q7olkCRuMxai5CuvuNUbLwgWoiZAFTPNvXkjhpdeLNOHr6qi90H0m8cal4hA5glo1Q8KG1TNY8l4VIXKKqx8XAImfaPmeSkhxLQLHOFkyk/Xo95Z4Bpxdr1Ij0D9a0GA8/Rr+b8h3rOC/eKeOr+1xr3mfzg7db+BY5fJRZnzrqrV/hwCoR44Umh7eORsCOBBnlRLk9ThYQj+F4HAyiT+0aYEae1JRDc5F3kuew3oU5t5vTcBwMOHMTpJru68NQy/zBJtozLFbl0ufFrusVycOI3pYoWfFZ/A2MRf/2ded/qbIPPk9f/K3CVUt/72R20Nc284DjGM1SkEAgofT/ORjSvxm1I5lMCP+stbrF4xGtsUrQ6fwn8VKWUfVFBu49/lf717k9BOCcf1R1sCUvwk9XZdeHK6Uq45ah6317f8uohD873rEQORt9S954RoRjduJUUpwrd0DhPU/uz+3VhqHUdpezFjtWDiGyIW5dP6bjGY1A9TNrL748TaxyZpUd5+XiSsz9pVLtxQfSdrMLYrDXMSWK9ukDBZUq6GEf1tcQemVxejIkmrucVISH/XJkGgqdjXsUhGkHcyKHX/DwhcRZft/NJt5Be9ggVRKuktNBDfDBsRSx07eYFh5kQmc+u9QPImnJEIa7oEPusCyeRoxsTN+uiOjiB17bauZzbaiFdzvitIVsnIkW9wvQv6LZLrOdLBm+TNPVKdxKhmePgt3+czfcj9rDY6YAx7UR6nHJCGLX8sP8MjlU9uMvdOjMknU3wE4A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pPyhx4DIzuN8oej+RMJrczZHmKQcEzYtVpxFn7lPk7DFqR9pucLj9jUGFwAPmdVprC8zNQ5pUUQ83I1iZrcBTRmNW2cHe5zndKcSbjXgl6OEB2ucknsoV9bXcB6y9AD+pYtyxsFCUlmnogbCA9lBWbDwqfAhIZiuEiXtW8yt/s8vquET05DdXctjWp+pcYgiRxxmsxDIaA/WAofaOk41v0ql3bPqYIpF/VPLGxIaRExrgFjMcAD04kz+2Etwu7I/jr4nZC2Wc8GLqLfh0vJTYM3chz3QlevHAg7KptVGQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 136c9e81-09ea-4738-9823-08db82f347d1 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 16:15:59.8663 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 07CrNVgEatp3M8gIrhhfqy+Lr7Uf9dCvblN5RgRZMCUZ1fhoewufwASfEu3pdxXWuHhwbLpkZsMSnM8KCMXrA+GmrUGGbWk1mwzr9wyMyM4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6501 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-12_11,2023-07-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 suspectscore=0 malwarescore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307120146 X-Proofpoint-ORIG-GUID: UCSgiEdiT7I66dv6UtlosM1nNdEX5p_U X-Proofpoint-GUID: UCSgiEdiT7I66dv6UtlosM1nNdEX5p_U Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/x86/Kconfig | 92 ++++++++++-------------------------------------- 1 file changed, 19 insertions(+), 73 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 7422db409770..9767a343f7c2 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2040,88 +2040,34 @@ config EFI_RUNTIME_MAP source "kernel/Kconfig.hz" -config KEXEC - bool "kexec system call" - select KEXEC_CORE - help - kexec is a system call that implements the ability to shutdown your - current kernel, and to start another kernel. It is like a reboot - but it is independent of the system firmware. And like a reboot - you can start any kernel with it, not just Linux. - - The name comes from the similarity to the exec system call. - - It is an ongoing process to be certain the hardware in a machine - is properly shutdown, so do not be surprised if this code does not - initially work for you. As of this writing the exact hardware - interface is strongly in flux, so no good recommendation can be - made. - -config KEXEC_FILE - bool "kexec file based system call" - select KEXEC_CORE - select HAVE_IMA_KEXEC if IMA - depends on X86_64 - depends on CRYPTO=y - depends on CRYPTO_SHA256=y - help - This is new version of kexec system call. This system call is - file based and takes file descriptors as system call argument - for kernel and initramfs as opposed to list of segments as - accepted by previous system call. +config ARCH_SUPPORTS_KEXEC + def_bool y -config ARCH_HAS_KEXEC_PURGATORY - def_bool KEXEC_FILE +config ARCH_SUPPORTS_KEXEC_FILE + def_bool X86_64 && CRYPTO && CRYPTO_SHA256 -config KEXEC_SIG - bool "Verify kernel signature during kexec_file_load() syscall" +config ARCH_SELECTS_KEXEC_FILE + def_bool y depends on KEXEC_FILE - help + select HAVE_IMA_KEXEC if IMA - This option makes the kexec_file_load() syscall check for a valid - signature of the kernel image. The image can still be loaded without - a valid signature unless you also enable KEXEC_SIG_FORCE, though if - there's a signature that we can check, then it must be valid. +config ARCH_HAS_KEXEC_PURGATORY + def_bool KEXEC_FILE - In addition to this option, you need to enable signature - verification for the corresponding kernel image type being - loaded in order for this to work. +config ARCH_SUPPORTS_KEXEC_SIG + def_bool y -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 ARCH_SUPPORTS_KEXEC_SIG_FORCE + def_bool y -config KEXEC_BZIMAGE_VERIFY_SIG - bool "Enable bzImage signature verification support" - depends on KEXEC_SIG - depends on SIGNED_PE_FILE_VERIFICATION - select SYSTEM_TRUSTED_KEYRING - help - Enable bzImage signature verification support. +config ARCH_SUPPORTS_KEXEC_BZIMAGE_VERIFY_SIG + def_bool y -config CRASH_DUMP - bool "kernel crash dumps" - depends on X86_64 || (X86_32 && HIGHMEM) - help - Generate crash dump after being started by kexec. - This should be normally only set in special crash dump kernels - which are loaded in the main kernel with kexec-tools into - a specially reserved region and then later executed after - a crash by kdump/kexec. The crash dump kernel must be compiled - to a memory address not used by the main kernel or BIOS using - PHYSICAL_START, or it must be built as a relocatable image - (CONFIG_RELOCATABLE=y). - For more details see Documentation/admin-guide/kdump/kdump.rst +config ARCH_SUPPORTS_KEXEC_JUMP + def_bool y -config KEXEC_JUMP - bool "kexec jump" - depends on KEXEC && HIBERNATION - help - Jump between original kernel and kexeced kernel and invoke - code in physical address mode via KEXEC +config ARCH_SUPPORTS_CRASH_DUMP + def_bool X86_64 || (X86_32 && HIGHMEM) config PHYSICAL_START hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)