Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7506269rwd; Tue, 20 Jun 2023 02:07:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pXsLqFFyvugB1nZmEv4bmRH+p49Nh2du8lOWZJg6q1eXyvxfGdDFyTbIYvSw3eiyA3JfS X-Received: by 2002:a17:90b:19d0:b0:25b:bd4d:bd18 with SMTP id nm16-20020a17090b19d000b0025bbd4dbd18mr9168846pjb.16.1687252023779; Tue, 20 Jun 2023 02:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687252023; cv=none; d=google.com; s=arc-20160816; b=zL6sLVAbRrabrWpHK9/gZNHOApE7eEB0N6fjR9JHyjQ2d5G5wIfWQmTO3NSJqHLCwh 4TjQZwnwoGUKVMxX5vub5Ad0O5U17KznIac1motEnqF/EyhBw1bD+bVDW9UbjQ9FKE82 7HHbyivvOJY4gxfO5OAtSVzhYtFiNJI5d+plFs6gDDHmvqqpPA8mXdSTQSkr1IGbQkMI joN5A5QPvkui9pOOl11WiYqgrNGFvz92nbSOzZnAUXiwgcK4bpdCpNWB0sv6ciVBZ4po 3T4F2HiCJ3YSFosXO9y6IIR8QQM17lZI/XA18j7YVYs/k2FKxQmT4dqDfOk4GvvVNvzA o80Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5XHdbMNys0EMjfbiSdwj8lWyGP51R68NotGh4ls9XCg=; b=m0ndDFiXk4N3nze4CBVQYm+0IrI29NeA3L8/QPnIo6UKNb4Ynvq64rI+bKOd8p21R4 FgAs7e5Yxt2OXYA9sm8sJ+yHNYARieW654ARUuw/ZBYU47xIxXje1FbRmVjDMv6unS+/ JglrBXnT+4SL58BiEAQr2v7uL9yZrHoOEZAPSc113pxtVTd18PznHnbb9azdrdGiA7+0 YY93h6J3Qkk75Pnq0UMgweJ9P653uMGxQeepAbgsUOhOZv3UgYzmLUH7112pDdGiUmq1 jASGX84s1cTwiI2TyjZYljyUODMXYJfR4NPKaO1AM+TaJ2E6GN/jG34BOS3qFZYU2gBi JXtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GktkLPER; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a17090a7e8400b00256d7cc5b67si1463380pjl.133.2023.06.20.02.06.39; Tue, 20 Jun 2023 02:07:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GktkLPER; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231866AbjFTIWn (ORCPT + 99 others); Tue, 20 Jun 2023 04:22:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230482AbjFTIWk (ORCPT ); Tue, 20 Jun 2023 04:22:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C944ADB for ; Tue, 20 Jun 2023 01:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687249312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5XHdbMNys0EMjfbiSdwj8lWyGP51R68NotGh4ls9XCg=; b=GktkLPERUZkxkruZZxsklEQXEHNoLA3aNPSHYWXk2FzCp20YzSFfFVvri5DpuwGl6TCBaD Q5iZWVRK1hnDmRYoNghwoJak+8YkSNEX3F6jDVekJzXhv9fy068/uh1oN9XEXj4PRjyXZO Bnke85b16b4IL3Al94JROr1CjANmBd8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-653-DHNnL6O0PoOX-_3jeDwo5g-1; Tue, 20 Jun 2023 04:21:49 -0400 X-MC-Unique: DHNnL6O0PoOX-_3jeDwo5g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 918E73806739; Tue, 20 Jun 2023 08:21:48 +0000 (UTC) Received: from localhost (ovpn-12-166.pek2.redhat.com [10.72.12.166]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2B95A2166B26; Tue, 20 Jun 2023 08:21:46 +0000 (UTC) Date: Tue, 20 Jun 2023 16:21:42 +0800 From: Baoquan He To: Eric DeVolder Cc: 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, 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, hbathini@linux.ibm.com, sourabhjain@linux.ibm.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com Subject: Re: [PATCH v2 02/13] x86/kexec: refactor for kernel/Kconfig.kexec Message-ID: References: <20230619145801.1064716-1-eric.devolder@oracle.com> <20230619145801.1064716-3-eric.devolder@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230619145801.1064716-3-eric.devolder@oracle.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eric, On 06/19/23 at 10:57am, Eric DeVolder wrote: ...... > +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 ARCH_SELECTS_KEXEC_FILE > + def_bool y > depends on KEXEC_FILE > - help I am a little confused about this ARCH_SELECTS_XX adding. Wondering what limits us defining the ARCH_SUPPORTS_KEXEC_FILE like below? I have limited knowledge about Kconfig, please correct me if I am wrong. Thanks in advance. +config ARCH_SUPPORTS_KEXEC_FILE + def_bool y depends on KEXEC_FILE depends on X86_64 && CRYPTO && CRYPTO_SHA256 > - > - 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. > - > - 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. > -