Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp944120ybl; Fri, 31 Jan 2020 10:50:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwZYIOnWWkhm8AboQhYhRIphZm0fMfOM9aWf4qFwrQnPj1KB8LADT6SjUc87sVoTFi43h6/ X-Received: by 2002:aca:f2c5:: with SMTP id q188mr7394028oih.113.1580496628335; Fri, 31 Jan 2020 10:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580496628; cv=none; d=google.com; s=arc-20160816; b=I346VWcv7c63Hmrz62vfDTy63pJqrtjhTBfl2G9r47xMRSiAXV5dUaaGZiH3ehaZD0 XugwYFLCRIiM9M0XvEVGNo9ji/kYUDKWgSaOib0bWa758HDzpmKZqaUrIAnVx9HekFLN c1X5cCVpIl9jmjgj4/SAmIvDnQGhqI46/JASXm6fzuF14vI80HhoBNoe63gJ+Lj7LCHe 6f2Mfa6/e0o5MCpd6nIgb8v0NmbhTrktWXGORgTWmHYtQNrOZNXxj3Wfr9nHdM07lr/2 qmdEixQM4ojimEdDrPhzzD3IEElSRTvrfrQKgiSzWf+bVgLGiRfgGPVn/Bkve1O8KO6V NyPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fLcaF8ntvZPal3qbid9CNAGwD4mOTDkCEUjIwpYd2Xo=; b=mDTXcAeCmzJ6Nvl6heXIS6M+Ih3bRoMwpFCtwG6qCDa6uYBf2idyxWGHYBU6XWKXBp JgapQ96f2IxVdurSdmnPEd29s7SLneQ/+oBjpS1PeK0FlTOCDLtl2DOWAZiTUDn7giPq ecmyMTkXSUkjzDu0OwtwPNLylHx4v+54JpXg8MQRGEPM85uvjv2ifSCHQS33Y8tCDHoD hPgpRHoqs83AOS7Unw/4YyAQLJlB+a5apPo/1Nr+m4vNEOcZv8tPplyZGQb8vbTkaqYE loWAf7XcBlm0xalcmFURyk5KKBvlGYKSuorknhETIqhWNi3iFIuMnRh+y7PP9jfFw6NJ B++w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=R9auyalW; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si4476251oib.104.2020.01.31.10.50.16; Fri, 31 Jan 2020 10:50:28 -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=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=R9auyalW; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726262AbgAaSs4 (ORCPT + 99 others); Fri, 31 Jan 2020 13:48:56 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:42329 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgAaSs4 (ORCPT ); Fri, 31 Jan 2020 13:48:56 -0500 Received: by mail-oi1-f194.google.com with SMTP id j132so8220174oih.9 for ; Fri, 31 Jan 2020 10:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fLcaF8ntvZPal3qbid9CNAGwD4mOTDkCEUjIwpYd2Xo=; b=R9auyalWygTfn6g/yWz839IELezhpT2kdQxHXU5NMqxDhPcHX1skUIywXOCVN7LJEi Nwo39uLr8IVAmNBzLdBbbsFEOmaiZUHAtLkUQnL8uYUJZlbJrrtPMCbfy4ljGM6WaogP Fd6P327IMubILIRZ2ceVA8l2iyrqN99Ly0jqbTpcAK1NduJldMAau03igSZQWtdP+tfI i1ZnueCDHg+cviJ0msLi68C/lNxY3H5O3qOZp/9rRzgesDlsbVF5eIoWWmAI9VMltj8K vvrigOHxSQ+CPDx606QgEotW83bKPlilM3JggN4mZGrrRHHxnZsgyZr9xgfvs78JG568 nH2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fLcaF8ntvZPal3qbid9CNAGwD4mOTDkCEUjIwpYd2Xo=; b=bf6SEMbFA83gNzIV5QI1CfvYXCPPL3dxrIFwzTr6T7YG9tFjxR5WDoNzd0vHK3Sxx7 tSW9pONBS97F9H+27XnO2AkeuU3ZrttJrnR6UfNndWQd4ULyXSeCL7GBDFBe1KY6RHIt QTtGmPw5maaWTlahIzDhUJ6FOqDr3+Y4WO3RbUde8J960ihsjY5Zf1j4Fdxk7m/L/mNq A6kM/1gtWnOwOkyEyy6g9qpfzXTQ2r+TfewwBCqT/A5dDNKqXZBTSMIV454hFNaD47Kr 6fhzht4Jh3b99u3liNgm3js1NWwsJTXs0U84IqdzZbX719GRAqHATBd1sQftjGUlJmFU 39Ew== X-Gm-Message-State: APjAAAUN47A9V4dVTJ5aeMRG6+gqvAOXUgooxMi/0iPMfw4Ytv05u6Iv pWH2yHHyfnDTrlp0XxBNbXpKo7dT8VuKtPmlYeZ9Xu3L0gU= X-Received: by 2002:a54:4791:: with SMTP id o17mr6940609oic.70.1580496535560; Fri, 31 Jan 2020 10:48:55 -0800 (PST) MIME-Version: 1.0 References: <20200131064327.GB130017@gmail.com> <20200131183658.GA71555@gmail.com> In-Reply-To: <20200131183658.GA71555@gmail.com> From: Dan Williams Date: Fri, 31 Jan 2020 10:48:44 -0800 Message-ID: Subject: Re: EFI boot crash regression (was: Re: 5.6-### doesn't boot) To: =?UTF-8?Q?J=C3=B6rg_Otte?= Cc: Ard Biesheuvel , Linus Torvalds , Linux Kernel Mailing List , "the arch/x86 maintainers" , Ingo Molnar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 31, 2020 at 10:37 AM Ingo Molnar wrote: > > > (Cc:ed Dan and Ard) > > * J=C3=B6rg Otte wrote: > > > Am Fr., 31. Jan. 2020 um 07:43 Uhr schrieb Ingo Molnar : > > > > > > > > > * Linus Torvalds wrote: > > > > > > > On Thu, Jan 30, 2020 at 9:32 AM J=C3=B6rg Otte = wrote: > > > > > > > > > > my notebook doesn't boot with current kernel. Booting stops right= after > > > > > displaying "loading initial ramdisk..". No further displays. > > > > > Also nothing is wriiten to the logs. > > > > > > > > > > last known good kernel is : vmlinuz-5.5.0-00849-gb0be0eff1a5a > > > > > first known bad kernel is : vmlinuz-5.5.0-01154-gc677124e631d > > > > > > > > It would be lovely if you can bisect a bit. But my merges in that > > > > range are all from Ingo: > > > > > > > > Ingo Molnar (7): > > > > header cleanup > > > > objtool updates > > > > RCU updates > > > > EFI updates > > > > locking updates > > > > perf updates > > > > scheduler updates > > > > > > If I had to guess then perhaps the EFI changes look the most dangerou= s > > > ones from these trees - but in principle most of these trees could > > > contain a boot crasher/hang bug. > > > > > > > but not having any messages at all makes it hard to guess where it > > > > would be. > > > > > > To improve debug output: > > > > > > Removing any 'fbcon' options in /boot/grub/grub.cfg and adding this t= o > > > the boot options might improve the debug output: > > > > > > earlyprintk=3Dvga initcall_debug ignore_loglevel debug panic_on_war= n > > > > > > So for example if the relevant kernel boot entry in grub.cfg looks li= ke > > > this: > > > > > > linux /vmlinuz-5.3.0-26-generic root=3DUUID=3D1bcxabe3-0b62-4x04-= b456-47cd90c0e6x4 ro splash $vt_handoff > > > > > > Then editing it to the following could in principle produce (much) mo= re > > > verbose boot output: > > > > > > linux /vmlinuz-5.3.0-26-generic root=3DUUID=3D1bcxabe3-0b62-4x04-= b456-47cd90c0e6x4 ro earlyprintk=3Dvga initcall_debug ignore_loglevel debug= panic_on_warn $vt_handoff > > > > > > If this produces more output than just "loading initial ramdisk..' th= en a > > > photo of the hung screen would be sufficient, no need to transcribe i= t. > > > > > > > A few bisect runs would narrow it down a fair amount. Bisecting all= the > > > > way would be even better, of course, > > > > > > Agreed! > > > > > > If compiling full kernels for bisections takes too long (for example > > > because the .config is from a distro kernel) then running "make > > > localmodconfig" to create a config tailored to the currently active > > > modules will cut down significantly on build time. > > > > > > Also, a warning: if the normal boot log contains spurious warnings th= en > > > the new 'panic_on_warn' option will cause additional trouble on good > > > kernels. > > > > It's bisected. > > The first bad commit is : > > 1db91035d01aa8bfa2350c00ccb63d629b4041ad > > efi: Add tracking for dynamically allocated memmaps > > Thanks a ton, that's very useful! > > I've Cc:-ed the EFI gents who are developing this code, maybe they'll > spot the bug. I'll take a look. J=C3=B6rg, can you paste a full dmesg from a good boot?