Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3480886ybh; Mon, 5 Aug 2019 19:45:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhDiQrX81XAJdCF/HSHdMxQkK4giZANSCTCuhXhPel1CNCx6s3gXZv5pg/E13BZv8/UKHv X-Received: by 2002:a63:784c:: with SMTP id t73mr943575pgc.268.1565059508966; Mon, 05 Aug 2019 19:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565059508; cv=none; d=google.com; s=arc-20160816; b=UdfImv8pQAAIc6Jnbcz6/VSMfoJiOxd5CFgDHm1aExc7B/iySFllbpB2+a5N7Nf5mH Y9PxUZVoYUdIvweDFBdImejqU4c1rteasVO1AJI2Zo6x0U96ccigwnrWHpB72U0WrNi7 l+0AIEcLJ6s5rY0yQvDE5P2KA0obwvdMIF6/BlIDfxJgzdHmfUf1GwwufvNNJyvgVwHB HnNKio8rfRhceDLc4wWvYnclrgaxOB5hvl1+3o3nPcowo+nwSHA9/H7dFzY/EmdIkLns NenVL2GWpCoaf2DEBOpu1VR3LBdyeQHU0eXXhYy2tx+hBCrlE0NHMhm+JG2Emhui23Lv aEug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qn3NXkSNcn4Z4+AfF7ip4Og+RfE2NrC6HHhk/dVbEbs=; b=Gzz1tU4pKov1+pgNYc9CVsBlnEcLiri31PBT0Q2PqU1jd+d0LLvLKCSKJ+whaNMuCz iYbkFdXkAn0mC6aKoGF3KuPanVhLNBCfkl+l2hWNVTbgAEKD1GiNm1Me2VDI+TSlxSYB Xy+5u+cF9tCIxP/ITbJW+84rgcWBioA32Thp5nX3pBbDOQLBzSRYvEcipAdOcdlIybTF qH+Uk0y0/kSMNjbUOJ1nhRunSRSOedKTbano9RtietoWlcN8FD095Ori2TaOXS8V3dL3 7Gxzp0AdJy3K5oOBlsVoWLxOqsfY9YpHbWkoycCf7WvZWc/BhY6PULDgaSTHihHoF6GG eOcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si73409695pgv.61.2019.08.05.19.44.53; Mon, 05 Aug 2019 19:45:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731405AbfHFCoU (ORCPT + 99 others); Mon, 5 Aug 2019 22:44:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29846 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729334AbfHFCoU (ORCPT ); Mon, 5 Aug 2019 22:44:20 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 006523001AA4; Tue, 6 Aug 2019 02:44:20 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-88.pek2.redhat.com [10.72.12.88]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C5DC19C5B; Tue, 6 Aug 2019 02:44:17 +0000 (UTC) Date: Tue, 6 Aug 2019 10:44:13 +0800 From: Dave Young To: Matthew Garrett Cc: linux-efi , Ard Biesheuvel , kexec@lists.infradead.org, Linux Kernel Mailing List , bhsharma@redhat.com Subject: Re: [PATCH] do not clean dummy variable in kexec path Message-ID: <20190806024413.GB6956@dhcp-128-65.nay.redhat.com> References: <20190805083553.GA27708@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Tue, 06 Aug 2019 02:44:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/05/19 at 10:09am, Matthew Garrett wrote: > On Mon, Aug 5, 2019 at 1:36 AM Dave Young wrote: > > > > kexec reboot fails randomly in UEFI based kvm guest. The firmware > > just reset while calling efi_delete_dummy_variable(); Unfortunately > > I don't know how to debug the firmware, it is also possible a potential > > problem on real hardware as well although nobody reproduced it. > > > > The intention of efi_delete_dummy_variable is to trigger garbage collection > > when entering virtual mode. But SetVirtualAddressMap can only run once > > for each physical reboot, thus kexec_enter_virtual_mode is not necessarily > > a good place to clean dummy object. > > I agree that this isn't necessarily the best place to do this in the > kexec case, but given we control the firmware, figuring out what's > actually breaking seems like a good plan. I'm more than glad to get the root cause, if you can help on debugging I would like to share the efi var file etc. But it is indeed a problem cause weird reset on end user part, but even if we can not find the root cause (in firmware..) I think we still need avoid it with such workaround. Thanks Dave