Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1476562lqj; Tue, 4 Jun 2024 02:45:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7SIfB2cE0v53m9lNELfTWdLAlnIsOmTuV5nL2I8NX/MZPfJ9Pjee/sZVAB0+NaSr306JoOPWPlc/CHwG0ePlGmozsMqm4LPLP3Y3yZw== X-Google-Smtp-Source: AGHT+IFo/tkasE+w6YjuVPmVbFNWEE2Ys8uecDCxxAZLufojIBDK12SORiaT/b6Mm6ElhNbldTjq X-Received: by 2002:a50:d69e:0:b0:578:5771:dc2c with SMTP id 4fb4d7f45d1cf-57a3635869fmr8900573a12.3.1717494345523; Tue, 04 Jun 2024 02:45:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717494345; cv=pass; d=google.com; s=arc-20160816; b=IiPolT5ngMFulDktPDoCDMKPtRM4h6UvKgMeGKojKeXg+CRo2jINYN1IEqU54Et/of sZ7LQiQOFqr0bedfbRvloqELNngDLCA8RMM1nb4LJlHParqN86vkwjGJT4xIncQF0O+F acQcmeJkoNDfFi6ETgwn+ET1PJL8gKcyfFoaT21ZIcvQAWig9HPMC1lunrQRlFrLGjrI 857Pi5XqdUCJkdCKqrpesbJ533rfbGaTCaD8ag+7maFQK+nFzXANuQ1mBU4kbKq73U+U 104iWYmMeQAPByyYlrRaWkM6v5M1rNFY9/pc+4L0TF77cO9+slpBopOTfxaXL8h3J/md bzPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pIg8xe1Ns+NA9fRhRn6k+zXFxaT3zBumGkXlIKY3LLQ=; fh=dx9n0/v/qaOtVxjiDcZg78mf4LinLMYi3T5/oLqee7s=; b=a+CxQA3MwZlqnC+KUiOsW9JTGkKSFCtQUSIw6wtZR9LSwHAFOdK4FkA0ulQw1/b4Iq +AWDKvYbq1FNRFwzpoLOhTe4scQZu71NefdFuAx/JRfXRRZvYPmG6ztXYhsJJFRoEy6/ Yup1t8AQpXaBs0OFcmNzzM+D6AGsQpzYZcl/5NfKdY+H7v7BYFCNaslj/uaMmLSGc6HH 3x/gtJL2tjDjE+V5ADVUyD1IG2LeDj7w4cWXzRhu8lVT88Uss4EL1/hgE3KO9imSHCrb oN7w2Q7pdZKUGBBSKWcP32/XbDpWQcPgEhJBP83K1Jr5XDWlCwEDOGZNw2lu2MerKOqk Ip5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=XCoQSeVm; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-200379-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200379-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c9296dsi4931615a12.479.2024.06.04.02.45.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 02:45:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200379-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=XCoQSeVm; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-200379-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200379-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2FBAA1F229C2 for ; Tue, 4 Jun 2024 09:44:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EE701448C5; Tue, 4 Jun 2024 09:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="XCoQSeVm" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1105812AAD6 for ; Tue, 4 Jun 2024 09:44:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717494276; cv=none; b=YwGsaPV5q6dZFK0T3QAku6fZ7FI03y4N8wMuEwZC9U8mpJ6NAbVXT4m1juwjL+srktDIHsRYgz0WMILrFkR1V645EMoCl3suwspURDQktvJTe2tAMkamarWWdl142wWEfSvnb6wM5pTf/rbioRqRMtV+VcsBCta+5Xf9lpR+7wI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717494276; c=relaxed/simple; bh=pxFRbPGW24LmVBzQ4JhYZaaafh+WJ6V0jn0Ze+5zrWM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OJ1FLJjv/snI8+4qT1gUCeuDro9Ei0mJGUyTM/J0c0Q6ccorOMxU8dCjZ8MT78CkNy3TnkgXrgU/eQFC4JfJDaCl6RVmR+iaICCkIqA3Ow8xQrjoYGkTYCMhTB6b29Bdz6S4pBmJMFkl5PrgdIowo/NufWPn6BBc8/NItupRisw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=XCoQSeVm; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 8F31340E0176; Tue, 4 Jun 2024 09:44:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ddGCUwBu8TqP; Tue, 4 Jun 2024 09:44:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1717494268; bh=pIg8xe1Ns+NA9fRhRn6k+zXFxaT3zBumGkXlIKY3LLQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XCoQSeVmBvXsN7Oj0IZ5XqLQmBMN11lhRhATE9jviznkzRP14Kd1hs2txtmf/4AyA NCoDRxW0dgZwzakME8kA22PFD11iKTHm1yH4qH9E3hDGtrHRhJqlM1PmcaZcprC4KW e5OTw9UJKJkmDY5F0H+PE/CzHSDNp8m8RYHSi9LPyrjTjD6IgtSp5tMQyobcusGgqc qUyqYePgUtnHjDvNJagEur+WkeCVwX/b89H0Xpd9KZRx8lijyEtJQkgyQ0IYgktEYS j3+lHQWXPR/gTsk3RJoXDsBnvtvvvaIMhrIIJtcQXc8gf6DrKtxY/Pr4TDeeq2QHLI 1DRED/m7UZUl8Nn4fPVzUOSNXBJsEhYlgp283ONUaF/DqdgwWwltjQ3YruAc0VBT3J wcYgBbCmGHIMtzuBjgc/HdstEAS2je3fzhpv7TOym7iCDK93/OhdH7HrjBJrJ8EOb/ GxuRi2I37L2ARt3sD6T3k6rTayOZbw2oiWO04QcFaM+qKTPdwnMu8RtwTbVgxviMld 9HqDFPCq1OgIdfv5c/BRJkmvRH4j/lHQK1XOX4Nnz5lO78PcNDr39UtwyCAvlukc0P 0bbLlpzaBsgyS3EiwLUvyyEoX1TripsM1hYTynMQyw2RbG5oFFT2tj90oSN5x8K70V MCD8Cow+w/9EbV9SbZ8oFHkU= Received: from zn.tnic (p5de8ee85.dip0.t-ipconnect.de [93.232.238.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7573640E016A; Tue, 4 Jun 2024 09:43:59 +0000 (UTC) Date: Tue, 4 Jun 2024 11:43:58 +0200 From: Borislav Petkov To: Dave Young Cc: Mike Rapoport , "Kalra, Ashish" , tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, rafael@kernel.org, hpa@zytor.com, peterz@infradead.org, adrian.hunter@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, jun.nakajima@intel.com, rick.p.edgecombe@intel.com, thomas.lendacky@amd.com, michael.roth@amd.com, seanjc@google.com, kai.huang@intel.com, bhe@redhat.com, kirill.shutemov@linux.intel.com, bdas@redhat.com, vkuznets@redhat.com, dionnaglaze@google.com, anisinha@redhat.com, jroedel@suse.de, ardb@kernel.org, kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 1/3] efi/x86: Fix EFI memory map corruption with kexec Message-ID: <20240604094358.GBZl7h3otTCYJ5rkkt@fat_crate.local> References: <20240528095522.509667-1-kirill.shutemov@linux.intel.com> <20240603085654.GBZl2FVjPd-gagt-UA@fat_crate.local> <8e3dfc15-f609-4839-85c7-1cc8cefd7acc@amd.com> <1ef36309-8d7f-447b-a54a-3cdafeccca64@amd.com> <20240603144639.GCZl3XTwmFHwi-KUZW@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Tue, Jun 04, 2024 at 09:23:58AM +0800, Dave Young wrote: > kexec_in_progress is only for checking if this is in a reboot (kexec) code path. > But eif_mem_reserve is only called during the boot time so checking > kexec_in_progress is meaningless here. > current_kernel_is_booted_via_kexec != is_rebooting_with_kexec That's exactly what I wanna check: whether this is a kexec-ed kernel. Or is there a better helper for that? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette