Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2565565ybl; Sun, 2 Feb 2020 01:25:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzBqRTU5dkXCWBr5kiSzWs1VDVIL0dWPnKgi+Be7kstmNLrdh3+FBJXVbJlgSqiA9fK6JKa X-Received: by 2002:a9d:7f11:: with SMTP id j17mr14306436otq.281.1580635507442; Sun, 02 Feb 2020 01:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580635507; cv=none; d=google.com; s=arc-20160816; b=x51XFfrRFnDAdeJMH2h1Beg7tcI1OYLpa7zGwdOSzYZoyylbJ5xzf/agRzAZf0dEmZ 2Jjo7yeZH1gNecf+GfU6ALIzb4FpI+askEWAQKRTGO43fZqSSLf8eej3MNfzZaaoFoGn ypP/MAdHepQlIsk+4aCmGURdcSosVB+91R+A+Q/U3yRU8bmYM/9lhK4PWREGcvYyd2KL rD1E6yxVlB4jbbkk64XcxqNuzq+yR6/ZYY1ndQvHJdMeiIWkMgA8LYOG+jaEpjHYZPQb mmJ5mp4gxqJIwGliloBrc2wZJuxoYvukkbHfjtuMZyMynki+76SQw+v5DNkzRrUtoTz6 A17A== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sXuMcOH+VNjc67NNOI8dzekDLyq1aGZf4jXoBS5IWHM=; b=FO8oFL9u7YCjWQGDYv77WgoR29Hlf7VKtOBo8b9gBjbd+mby97IIFis0r94kiMYJh7 JIa0KkyNxQWQTAMNAK5hOtfnXgSPFbK1Nm2w0D39eXhsOcX6/UN9zIBUjNShIA2KvS2l oa6+3M0oO85K5ELoJaEuDPY7CCUAW/dD5skrj2J7XQrWlAw4e2ffllOAuAOsJ5LqYFdM ekzQf3vTuOs8LRmIpXlggXb01vOej5/HHmTvf3S/qpqgzNn8JmU95s+lNllCsYt/b3UO P2BWpkiy1u8TVA0rGcIYy9rknisbEghUODO7gTox8YD5pNvmVvS4kQaJRbmeNaQO7vzi xrSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="Aow+/nTs"; 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 v17si7264250otp.244.2020.02.02.01.24.42; Sun, 02 Feb 2020 01:25:07 -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="Aow+/nTs"; 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 S1726379AbgBBJXB (ORCPT + 99 others); Sun, 2 Feb 2020 04:23:01 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33165 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbgBBJXA (ORCPT ); Sun, 2 Feb 2020 04:23:00 -0500 Received: by mail-wr1-f65.google.com with SMTP id u6so767407wrt.0 for ; Sun, 02 Feb 2020 01:22:58 -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:content-transfer-encoding:in-reply-to :user-agent; bh=sXuMcOH+VNjc67NNOI8dzekDLyq1aGZf4jXoBS5IWHM=; b=Aow+/nTstuVKaafEv2axDGAPg+3kTMYgMkwpX6tNWRdMJ/VCKJXa8Rz74ri5/jotA+ idCY8iCWla69uLQlehcipA624SYvjzvj2Z0/beZfFzeQE9mlydjI3izPrEHE8dSZeqrh 3dftGBYgnmkVw+8LHNHrfurQcgwXvse/yqHO4Ux3blcySeb+eEBsw+lzmYWtPGckgB39 FOYlNXBXTQdkMs1qBAUj3823Zub+nXZJ8IriXPNMuuy01dDFyotXlVwCq79QhOU0IYyG mJibOpAim6RPqQNXTtf65vwxbEIgV6m0kibm/DTvb3NOxDuzBm1FbzAGcUNKMIb1/Yad 8vUQ== 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 :content-transfer-encoding:in-reply-to:user-agent; bh=sXuMcOH+VNjc67NNOI8dzekDLyq1aGZf4jXoBS5IWHM=; b=dTllFNNzb7h5YRkWVB+e+3dPyx/4Jf7UopqRcgmaOj8CuimlJrEO1N7xDRhKFv7mcU ZOTfUsu7IYz2KO8jDiCz23VpEyVWdCJqFqKRFQVZr4D6yQLQOhd5mGtYYSashXn/0S6I llbofKYalBy+VKjRoQmv+ZOPWNW5yKRUtFCbmqTMlZvXEUlXmwEBsoJI8ZfOmPiDkj4R JK4tGaNhHSAZuUg7fvQOsoKUIupWKqm1x2l3IAlz+il9gwyzwae410tegUecS9SXftT6 duSauuKyInhfRhsgh7h0bsgk64tnzQdNBbtwdB7TiND11uY6VjEyWcYOqXydGRN9EW09 DjAA== X-Gm-Message-State: APjAAAVFrHuNBi5TNEKVCESHrAfPO2SFagCyZk1/5n28DsKirp8z49L6 r8UI4oChs/uF+Mwlprx27Mc= X-Received: by 2002:adf:f80c:: with SMTP id s12mr9309738wrp.1.1580635377934; Sun, 02 Feb 2020 01:22:57 -0800 (PST) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id x10sm20617722wrp.58.2020.02.02.01.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Feb 2020 01:22:57 -0800 (PST) Date: Sun, 2 Feb 2020 10:22:55 +0100 From: Ingo Molnar To: Ard Biesheuvel Cc: =?iso-8859-1?Q?J=F6rg?= Otte , Dan Williams , Ard Biesheuvel , Linus Torvalds , Linux Kernel Mailing List , the arch/x86 maintainers Subject: Re: EFI boot crash regression (was: Re: 5.6-### doesn't boot) Message-ID: <20200202092255.GA72728@gmail.com> References: <20200131064327.GB130017@gmail.com> <20200131183658.GA71555@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 * Ard Biesheuvel wrote: > Hello J?rg, > > Could you please try whether the change below fixes the issue? > > diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c > index 59f7f6d60cf6..ae923ee8e2b4 100644 > --- a/arch/x86/platform/efi/efi.c > +++ b/arch/x86/platform/efi/efi.c > @@ -308,7 +308,7 @@ static void __init efi_clean_memmap(void) > .phys_map = efi.memmap.phys_map, > .desc_version = efi.memmap.desc_version, > .desc_size = efi.memmap.desc_size, > - .size = data.desc_size * (efi.memmap.nr_map - n_removal), > + .size = efi.memmap.desc_size * (efi.memmap.nr_map - n_removal), > .flags = 0, Oh, I actually noticed this one, but convinced myself that it's correct, because GCC didn't warn about uninitialized data. But maybe in this weird case data.desc_size as used within its own initializer is zero? Thanks, Ingo