Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 11EA71640D for ; Tue, 12 Sep 2023 07:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694505023; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/mzVy3Mc/7bAQAhf4c1iHjdctfZReLCkKlOdBdE9Gi0=; b=ODluy26FsB9pO/LFtbOO9QaIk1zPPZMVy9NUTkcmhEs3S6wqIiqkG5tHqeZ0hQFxpbubfb dUB8y8UeYIWwkS7j3bHJps9Li43lBN/Iwg6T72o6gsuVIF0ZTNK/dkzblTw1g0tljmMew+ Mhu2FkZDnGZu0f8Dar7IS47PRW/fAts= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-321-LFoxSsw5NyerZ2g3QRC6Zg-1; Tue, 12 Sep 2023 03:50:21 -0400 X-MC-Unique: LFoxSsw5NyerZ2g3QRC6Zg-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4011fa32e99so40651015e9.0 for ; Tue, 12 Sep 2023 00:50:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694505020; x=1695109820; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/mzVy3Mc/7bAQAhf4c1iHjdctfZReLCkKlOdBdE9Gi0=; b=cGyDdgBPUllbHxCmKRncwIdsZ5WyTFBfBrnRSz+cM5EvT2VHI10muUtmH2JqHa2T2+ msO5MAg9PLXTXD3bSU+CSg7i2QiYpcyiUm0Kn9tOAXBaCRbqfmxQTyguItwwCWFcFdmd eJwd2meX9eh4vNNok0f1M2YM28m35ftFVflkrKoPuzcTkOe3Dh9I+Qzg/vDZrx0b5oPQ TTPuTbJAftepadPVqdPNpF9unT40SMaK7qcQuex5YYxqqSU9PVRKNzlEowikQZxN2Hvz nq+WYQfdzRppJHsiz+LoV2oHVXnitzrPNMB4ctzGKBA0jQPSuIDhb8DVHXAfsgaRuAws xYCw== X-Gm-Message-State: AOJu0YwsIlF8EGdF5n7cMB45OqHFTOO8aOzqNEyEm/KO6uEAsJx1ja+P KgGKfvxz7lWMieFGWWo3Jx/VRNYkpSLK3zDSPWdYxLrFYoaomPuNvPdRpKENp83/or4rlqYP+NB xR2vQI7bqW73e2iS6YC9MUg== X-Received: by 2002:a05:600c:b59:b0:402:8896:bb7b with SMTP id k25-20020a05600c0b5900b004028896bb7bmr10597658wmr.6.1694505020030; Tue, 12 Sep 2023 00:50:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWb5KPPue011J3X0eD1sW7gLSQXGBULtIBQ0OCAIfXnbwUsDGLY2yVip/HeBg+JEeYAy53ww== X-Received: by 2002:a05:600c:b59:b0:402:8896:bb7b with SMTP id k25-20020a05600c0b5900b004028896bb7bmr10597627wmr.6.1694505019623; Tue, 12 Sep 2023 00:50:19 -0700 (PDT) Received: from ?IPV6:2003:cb:c74f:d600:c705:bc25:17b2:71c9? (p200300cbc74fd600c705bc2517b271c9.dip0.t-ipconnect.de. [2003:cb:c74f:d600:c705:bc25:17b2:71c9]) by smtp.gmail.com with ESMTPSA id ay7-20020a05600c1e0700b0040303a9965asm9212894wmb.40.2023.09.12.00.50.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Sep 2023 00:50:19 -0700 (PDT) Message-ID: Date: Tue, 12 Sep 2023 09:50:18 +0200 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 Thunderbird/102.13.0 Subject: Re: [PATCH V2 1/2] efi/unaccepted: Do not let /proc/vmcore try to access unaccepted memory To: 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> <1c736ca3-36e2-3225-2f98-e51149c468ef@intel.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <1c736ca3-36e2-3225-2f98-e51149c468ef@intel.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12.09.23 09:47, Adrian Hunter wrote: > 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. Ah, I got lost in TDX host semantics. So what you're saying, if we (guest) are reading unnaccepted memory we will get zapped. Makes sense. -- Cheers, David / dhildenb