From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8FE8C32751 for ; Tue, 6 Aug 2019 02:44:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D5FA206A2 for ; Tue, 6 Aug 2019 02:44:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731475AbfHFCoU (ORCPT ); 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