Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) (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 324181640D for ; Tue, 12 Sep 2023 07:47:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694504880; x=1726040880; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=myILytDdutAkJHoVsjGJrHjJI0XRaM5nA9tqDHz8FOQ=; b=KKNF208pbGslTV36/o3vVKkU1+5DPrGO6mUBSzwVzc1UXU7Qf8fwuruf +HnElscS5akhh7YqfEnQw2eWnYeKTeWZ+y2em9OaxhIzA07axMCEQfRM9 CwkKaV2X/fSZtPIYo/xXksMuVQNcVC0yqHyEEzZ6y6zZrBpCnrtGQpDiZ hgQJMaSnXZoGdG2/fZKtWdlmWWI0ssON7lYruztwD71i4RdYQ2Ui1jfda pBzP68ittFpS6Ds33/RZwfrwdh8vQBA0dfsKlYVzmuDl73sOVuDSUZ+gP yC30ELj28a6Tn/iXLk/qpCyjztVOyx1otiYp/2tn6C1sZFIDRwnoU1fCF A==; X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="444742377" X-IronPort-AV: E=Sophos;i="6.02,245,1688454000"; d="scan'208";a="444742377" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 00:47:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="867283368" X-IronPort-AV: E=Sophos;i="6.02,245,1688454000"; d="scan'208";a="867283368" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.249.45.152]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 00:47:53 -0700 Message-ID: <1c736ca3-36e2-3225-2f98-e51149c468ef@intel.com> Date: Tue, 12 Sep 2023 10:47:49 +0300 Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.15.0 Subject: Re: [PATCH V2 1/2] efi/unaccepted: Do not let /proc/vmcore try to access unaccepted memory Content-Language: en-US To: David Hildenbrand , Adrian Hunter , "Kirill A. Shutemov" , Borislav Petkov , Andrew Morton , Ard Biesheuvel Cc: Dave Hansen , Vlastimil Babka , Mike Rapoport , Lorenzo Stoakes , Tom Lendacky , Baoquan He , Vivek Goyal , Dave Young , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, kexec@lists.infradead.org References: <20230911112114.91323-1-adrian.hunter@intel.com> <20230911112114.91323-2-adrian.hunter@intel.com> <96f124d6-c1f2-adb3-1d3b-8329e85ff099@redhat.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <96f124d6-c1f2-adb3-1d3b-8329e85ff099@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/09/23 10:19, David Hildenbrand wrote: > On 11.09.23 13:21, Adrian Hunter wrote: >> Support for unaccepted memory was added recently, refer commit dcdfdd40fa82 >> ("mm: Add support for unaccepted memory"), whereby a virtual machine may >> need to accept memory before it can be used. >> >> Do not let /proc/vmcore try to access unaccepted memory because it can >> cause the guest to fail. > > Oh, hold on. What are the actual side effects of this? > > Once we're in the kdump kernel, any guest is already dead. So failing a guest doesn't apply, no? > Unaccepted Memory is used by virtual machines. In this case the guest has kexec'ed to a dump-capture kernel, so the virtual machine is still alive and running the dump-capture kernel.