Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1322299rda; Mon, 23 Oct 2023 09:04:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKs4zAa8XLMQ+ZNbbTm5vXk8DVlAUcAezau06oV8ClLAllAQ/mcQ/7Gv4Vj3B7TX6X34YY X-Received: by 2002:a17:90a:a38d:b0:27d:3a34:2194 with SMTP id x13-20020a17090aa38d00b0027d3a342194mr9106368pjp.14.1698077087361; Mon, 23 Oct 2023 09:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698077087; cv=none; d=google.com; s=arc-20160816; b=LamZMJEUwRrY00MGWfEE8rzK13HscHO6DT+uguLvPc3LQojl+dy6xJRKdAjxvB4vRU P3fMByjrswsis14nr7VaA+QlcMKwvqbTyKjrzl1xmKv8o+abHnSe8iXfPZAAAxNh8FSv sSczcU4doZEsmOj3udZg3PvxK8jlpMI67QDXuf5XKR0ekupbH5LwE/d7cV+I2LD2GZX5 lwLBFUHHOd0kJAYCUbTgadaHBR3LYXXJOWWtyBP/mYATJgPBqjwrXM5C8gReDcU6a7v7 jxHXkbA3udLCjYALIEtDuyge+62vAApmT+gbEbDABZPj9klklTvfavVxVEtFH/2+9RhS ITKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=omI9l4fCxrjkUcM6JOxkmrHVP/pj0MGxudyGyoWqQuM=; fh=aA0MrUIUBMooLBpp/P2w1PoZZxzPI0ZgkGND4GWLc7o=; b=af+VKcZo7KtB9hOa80Y7UC67HQRNsCpyGAEXfjLxfGymBUlyz/GqNlJOfDrZsZP67+ q8JIVKdvtrPxbYOV0Q2KgP5JFxCu2l9upPdz22vUedVgbvykbyJNwrHnGkon/YBNhpZ5 Qs9a0LWUW6UtOpqsktYhggNXzvxUQTXVv/CB+iKNZQRZFAfPq/G9WmlgxB/7ZCEfXLAQ IUAGz/e+bfhmqBjVceikc5PX28oLxVGgXiwY1SpSbiYtkkqQbP35j5fOCmxpI+qWfsyU OKRFaZTVTCEE9szht8SIRGE9kzxTsCoe9sxnCcBNp+WIEahIwyPpDsCDvbRFWrnLUR1F 845Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=YxgVjGh0; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=goUABzr4; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o3-20020a17090ab88300b0027b258f284esi9306478pjr.26.2023.10.23.09.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=YxgVjGh0; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=goUABzr4; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5372C804E827; Mon, 23 Oct 2023 09:04:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbjJWQEe (ORCPT + 99 others); Mon, 23 Oct 2023 12:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjJWQEe (ORCPT ); Mon, 23 Oct 2023 12:04:34 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 028F1E9; Mon, 23 Oct 2023 09:04:31 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8937F5C035C; Mon, 23 Oct 2023 12:04:29 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Mon, 23 Oct 2023 12:04:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1698077069; x=1698163469; bh=om I9l4fCxrjkUcM6JOxkmrHVP/pj0MGxudyGyoWqQuM=; b=YxgVjGh0doHzbzLi6q PClGd5HsxejBbgx4/5RYmtv09+HQiwZyaplfE0ewOGHiZzudSB0S0OL4Jiqq0uno HLmpLafWY0qN31re7VYCs5H6sSnmT22PQ/FroqKVZiCs5uHKY8oFQ4unPLZ/8cZ8 O3WvNiXOfjxKatsocYQ/Jy/kFCsfdj9aK7yXnJ2qoaQEY4+YNBKvOBqKd34f8Mzg +9wsurB+1CVTUSJi2XymLm4v7rGK+FMAXIK03s6+HdkrM5s4RUEdsyuZb+fp0NVu EC5Nf2uyZcEkgvV7qC8wKZmmCNnbMvTbCNH7D2eD2/4uqUfXGaMowPbfcQCg6/xu jpdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1698077069; x=1698163469; bh=omI9l4fCxrjkU cM6JOxkmrHVP/pj0MGxudyGyoWqQuM=; b=goUABzr458FRgBTpbBm0q4IpvczdQ KTIemYL/NQhTZLhC/R8Z0ECg7u4Rzies++Bue1MGJNA98zrqnpWljNwQpoGs3A2C 9KzYFHanyP9UlexGaMOIS5xcW/XDhcr8gJMd6nGFY8ojDRdRHCwrSJtQzU1NxG1u 2M4Yxn9QZzcuk0Bo99b9Ro9Bf/XkUlEZ4U4vIRS6cEL9QibvirBy2+fzQMP1M16X 8tCg2cYkJMgX6RpYI47knEJ0GcEWwVcd2pkpRAQdc/nBAiET6Mb6xynZ5eVU0Fth ZpzCQEhPJi0wC+zg9GGFGpRQx32w8YTxcFQhKPoQQi7J4hWuMSFDcadHQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeeigdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 78236B60089; Mon, 23 Oct 2023 12:04:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1048-g9229b632c5-fm-20231019.001-g9229b632 MIME-Version: 1.0 Message-Id: <67ddd260-d424-4229-a815-e3fcfb864a77@app.fastmail.com> In-Reply-To: <20231023-thievish-imitation-c7c4b36d76f1@spud> References: <20231023110308.1202042-1-arnd@kernel.org> <20231023-thievish-imitation-c7c4b36d76f1@spud> Date: Mon, 23 Oct 2023 18:04:06 +0200 From: "Arnd Bergmann" To: "Conor Dooley" , "Arnd Bergmann" Cc: "Andrew Morton" , "Eric DeVolder" , "Herbert Xu" , "David S . Miller" , linux-crypto@vger.kernel.org, "Nicholas Piggin" , "Christophe Leroy" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" , "Christian Borntraeger" , "Sven Schnelle" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , x86@kernel.org, "H. Peter Anvin" , "Peter Zijlstra" , "Ard Biesheuvel" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 1/2] kexec: fix KEXEC_FILE dependencies Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 09:04:45 -0700 (PDT) On Mon, Oct 23, 2023, at 17:37, Conor Dooley wrote: > On Mon, Oct 23, 2023 at 01:01:54PM +0200, Arnd Bergmann wrote: >> index 25474f8c12b79..f571bad2d22d0 100644 >> --- a/arch/riscv/Kconfig >> +++ b/arch/riscv/Kconfig >> @@ -687,9 +687,7 @@ config ARCH_SELECTS_KEXEC_FILE >> select KEXEC_ELF >> >> config ARCH_SUPPORTS_KEXEC_PURGATORY >> - def_bool KEXEC_FILE >> - depends on CRYPTO=y >> - depends on CRYPTO_SHA256=y >> + def_bool y > > This being the problem, KEXEC_FILE is 64-bit only. > > IIRC I commented on this same thing during the original conversion > patches. Does it work with this patch on top? --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -687,7 +687,7 @@ config ARCH_SELECTS_KEXEC_FILE select KEXEC_ELF config ARCH_SUPPORTS_KEXEC_PURGATORY - def_bool y + def_bool ARCH_SUPPORTS_KEXEC_FILE config ARCH_SUPPORTS_CRASH_DUMP def_bool y Arnd