Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1224667rwo; Wed, 2 Aug 2023 10:28:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlF6vIsJE6LV9YkMMaMUSyg7sWuMvAMheK2Upm3hI1tCB9xxqRUfCeF9JEP1iArfdn6nHgn1 X-Received: by 2002:a17:903:284:b0:1bc:28a8:f856 with SMTP id j4-20020a170903028400b001bc28a8f856mr5286506plr.47.1690997293121; Wed, 02 Aug 2023 10:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690997293; cv=none; d=google.com; s=arc-20160816; b=WRo/bx3pArvaZuFICdKfBW0kOkwKN5P0zaYHetcUVfqiWFhstMDzIABV4bKRzeX2vB R3lRUueXVuk9Vs5IId5gCDrVzj7c0nmQSa/b2pd2H34NPCkhiW3X5iSd/qyp84j7smlz q5k1Ra43H2QTK2FCppVNilAsKA3Vf0v0tf0u/z9QWf1/5PITsau4gotlJXyVdfRiVSxd E4vGgAgRnA8m5uAT6bfGuGUaHr60lIqhI4dYzYjXgRvoECT1h2FrIn1vXsDJ3h7A7IF3 Q5YToxERCC9sjrKEUi2MJEoAN1fVN337VPcJzd1VAT3wGfmIk7k/itlw7DhM8O9pCC37 u0nA== 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=/zLCkbTjjCIOrsfiC3jHxRrGhGTxQE0VVoGH/G9uxeo=; fh=y3zf8I+VA99o90NHayylmTUc9tvPoibWlFjG1rNUZvc=; b=Qa8mVH3dINlQFKOj7qlrcINxDTuPjytrBmeIDSHjwYY67R6G4FrUg41s1Dy5JtYh2T BONUCJoW+tJD7KPNuTV6ll+pM0qFwVvOXSpbrdaIALX4MpqPprNqMbasp4NCCFpJ/KWE 3VeJT1+BV5k7bAxMdN3ny2QmC0TY8WJx7SXZESKlOuUujbbFQ0cxg25v4YwhaT5tU5uy pBvTt6raNX1oPjB/fLJHJV8m8RbYlTDa1o7rV1zsa5/ia4pqpVv5QCgLAPi1M+voqMSf 1Y+TNoINiCbiaMkikq8a3Y5fU1b2IgNGxKCD07RAOFQjx7D9HW5HYFViJlyPl3IOM9sC 0SVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nQHeBRUO; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a170902ce8b00b001bbf89feae3si352200plg.600.2023.08.02.10.28.00; Wed, 02 Aug 2023 10:28:13 -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=@intel.com header.s=Intel header.b=nQHeBRUO; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbjHBQqM (ORCPT + 99 others); Wed, 2 Aug 2023 12:46:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbjHBQqK (ORCPT ); Wed, 2 Aug 2023 12:46:10 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63018273A; Wed, 2 Aug 2023 09:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690994769; x=1722530769; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=RrRdBl2qy7E3l7kO+e4ZQVEOkVwYkIaDQc+CdA7Vt9A=; b=nQHeBRUOvBh3PgvU3zbFFpKZu6HfsD8ySpcYDEg9tl30QRKhyFDprTqU rnAK3tdgMXcsGFrLixjLF1xKPEsKyEtLk/X5Cg95BWqyR+He4MaBR3Hhx fgkWKTyV3JEJi1yzr2Ud4kpK5ia4KYuEXQtto3Wfk+xithxqeBnZQKukK xH4YbwIwJ/GvWQK+THBe+eikOgEaaxc/NZLetiWNRLZKoZQQKfHl1rZ1H 0L+UIT/m0T2ixnjhsEJ30xmGIOP+Sm7K9dx89JYwuGWhAwI8VrjFPM6Fd mX7q3pqNR+SdHRZbxz0fb1bL0MgTVdh/4kmuDk2ZNIzQFOUW5J+MI0hLW A==; X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="369644791" X-IronPort-AV: E=Sophos;i="6.01,249,1684825200"; d="scan'208";a="369644791" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 09:46:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="732451876" X-IronPort-AV: E=Sophos;i="6.01,249,1684825200"; d="scan'208";a="732451876" Received: from dustindi-mobl2.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.37.50]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 09:46:06 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id 1B89110A112; Wed, 2 Aug 2023 19:46:03 +0300 (+03) Date: Wed, 2 Aug 2023 19:46:03 +0300 From: "Kirill A . Shutemov" To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v2] efi/x86: Ensure that EFI_RUNTIME_MAP is enabled for kexec Message-ID: <20230802164603.fzy2lmflp4iann5c@box> References: <20230802151704.2147028-1-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230802151704.2147028-1-ardb@kernel.org> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Wed, Aug 02, 2023 at 05:17:04PM +0200, Ard Biesheuvel wrote: > CONFIG_EFI_RUNTIME_MAP needs to be enabled in order for kexec to be able > to provide the required information about the EFI runtime mappings to > the incoming kernel, regardless of whether kexec_load() or > kexec_file_load() is being used. Without this information, kexec boot in > EFI mode is not possible. > > The CONFIG_EFI_RUNTIME_MAP option is currently directly configurable if > CONFIG_EXPERT is enabled, so that it can be turned on for debugging > purposes even if KEXEC is. However, the upshot of this is that it can s/is/isn't/ ? > also be disabled even when it shouldn't. > > So tweak the Kconfig declarations to avoid this situation. > > Reported-by: Kirill A. Shutemov > Signed-off-by: Ard Biesheuvel Tested-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov