Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp255514ybl; Wed, 4 Dec 2019 02:10:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxqg/a9XIoyWlkXmEKJ6pkvH6Qi0ipYKrwVU5d6uVd5nucxrpPPJhW4H2qZcmW83l3Q3Iv8 X-Received: by 2002:aca:d483:: with SMTP id l125mr1820830oig.124.1575454213410; Wed, 04 Dec 2019 02:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575454213; cv=none; d=google.com; s=arc-20160816; b=s+ZVkLOBqFL7s/ZAPdHn6HziO9BOL9zWJYqjuvRGrmqwPoGXWSmz0KNjJmBLaVS3bq 8o1H7trKVKzQefpeQW4o+VkJ6xLRzMQykSK5qvbfMXNS5BtcBUyqMz0HtV6fDltJtAL8 lqrRDioQtVVKsOF7XFymX6ozXTo77324E/f2u6SNpoZskhm0Kom2gujw6ikeioU3ATGK pB42utXmzD28YmTuvcMtypfuUZdQwsNzgZ15vmR3ykfRh/QmFx0H5qHwFv6I4fFYiVvc q7eZfhMHdY5NlZoyGStMiWpX6uEe0B0UDlwz+dVFj/V4dAM7Ut+ymSM3kaD40C17/qSF wVVA== 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:dkim-signature; bh=raeCtC+dljo0qv32p8D/VuYe95bGrREsFJM19wAQqc8=; b=MrdZOZhGyBGl3lLbdrpg+Z4x6zXnCe7fTgUX5BNCVY0myZ31i0vsCy8YZQFTrZUo+j AZJHsDebz3JFD+y2vZv6FZNd5WSCh/QP6G7kN/M7gB33lgbKoRMGw1TogyhzFyBIRc98 LRiUA6LV6GhEno20SOlDz+reZQXss1XQdzg4HaZA6bVKopKk9BlXpBJTlX7fZCyzasyq lHNKcDDfgDPu86vjxKdTf/YUkk+9vWDX1/otBuRCSnfHvpxsC8Xgd9NRlJR2UASfC4LX MRWuneQU3uMU/TzBpw8TSeBb7JdgWleORjMUCaOqR6TKk538uEpirq/w6JBrM9DDcxRF lTwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KNNpisM7; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si2948557otq.75.2019.12.04.02.10.01; Wed, 04 Dec 2019 02:10:13 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KNNpisM7; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727539AbfLDKJX (ORCPT + 99 others); Wed, 4 Dec 2019 05:09:23 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40760 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727273AbfLDKJW (ORCPT ); Wed, 4 Dec 2019 05:09:22 -0500 Received: by mail-wr1-f66.google.com with SMTP id c14so7779502wrn.7; Wed, 04 Dec 2019 02:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=raeCtC+dljo0qv32p8D/VuYe95bGrREsFJM19wAQqc8=; b=KNNpisM7QR9D0AXGY6S7UtWvFsgqwnLg/z6E+LyY7Z/PFWc7kGnrlFu6LchmdcXtYB aGFWUf0fW3q2g4j/4SBrKGBNBUhWnrbisCgGNU+O/SwpJUczZTtjNty4T25ydIG98Gu0 9tjFel3etp4TbLMLYVAJvGJ/BCaQguKU3Q3dh1z+kJlCkHV35WqyjNshFNyMS9cS0Ycj 6tjRA7/DKcSkDXS+IXLd/FUf4vTKPti5MP+kI0gqdrTwTDhcsKKQVajzp5h4/DqqfJzf wy5VqBQLFm7a2H9Tj5EmLjZ+SXc0gFVn8MlNI8+nmozpPRfnwMOu53xH3mUvHFM6ToJJ VfOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=raeCtC+dljo0qv32p8D/VuYe95bGrREsFJM19wAQqc8=; b=m9P0nEAY+LH079XRoTxkiUt2k0fxCDFz5WK0DVZhGkNJXI4Ca16HHd2lQqOHv7bc/h Gogdv4WNob5rUcBnVDNQfK1dCEjoL2xpdN6i0OxvOZLJpySCWTdvBLUVtkxkeIi/nvy3 6jjBjKKMoxlE0qpNuh20jy1sj/odrQII2BLmoFqw7IHz2Z4tsH2x88u1h93TjPwth5lT aihHEod4EioxEjPOCpc1D+iqJFHDN1slT126681LeNSavtR+L4QUuRffjfFNtDesqor1 stNvH2WHxOy7t5cBR1oPnPgQj8LJgV+vNLDVT955cJDfzQOh+7BAHOR4S9T1Os+HhvS4 PEXg== X-Gm-Message-State: APjAAAUBrzPK8PwhsW3dtcfYIFxjQQSuXXqRZIi7E30adN+y7c4XEaA8 ILkIsgO6oPQJtEaWCjJxdvZ4weoF X-Received: by 2002:adf:f78d:: with SMTP id q13mr3059791wrp.365.1575454160662; Wed, 04 Dec 2019 02:09:20 -0800 (PST) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id h17sm7904846wrs.18.2019.12.04.02.09.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2019 02:09:19 -0800 (PST) Date: Wed, 4 Dec 2019 11:09:17 +0100 From: Ingo Molnar To: Dave Young Cc: linux-efi@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Michael Weiser , Ard Biesheuvel , kexec@lists.infradead.org, Ingo Molnar , Borislav Petkov , "Eric W. Biederman" , "H. Peter Anvin" , Thomas Gleixner Subject: Re: [PATCH] x86/efi: update e820 about reserved EFI boot services data to fix kexec breakage Message-ID: <20191204100917.GC114697@gmail.com> References: <20191204075233.GA10520@dhcp-128-65.nay.redhat.com> <20191204075917.GA10587@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191204075917.GA10587@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dave Young wrote: > On 12/04/19 at 03:52pm, Dave Young wrote: > > Michael Weiser reported he got below error during a kexec rebooting: > > esrt: Unsupported ESRT version 2904149718861218184. > > > > The ESRT memory stays in EFI boot services data, and it was reserved > > in kernel via efi_mem_reserve(). The initial purpose of the reservation > > is to reuse the EFI boot services data across kexec reboot. For example > > the BGRT image data and some ESRT memory like Michael reported. > > > > But although the memory is reserved it is not updated in X86 e820 table. > > And kexec_file_load iterate system ram in io resource list to find places > > for kernel, initramfs and other stuff. In Michael's case the kexec loaded > > initramfs overwritten the ESRT memory and then the failure happened. > > s/overwritten/overwrote :) If need a repost please let me know.. No need, I've edited the typo. :) Thanks, Ingo