Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp935181ybl; Fri, 31 Jan 2020 10:39:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzX4X30HGMSHoosgeCVVFUTxer4axP4FXiGStFYV3/OwbwJ5Apas1TlUy3h8rxgBxBcswMs X-Received: by 2002:a9d:62d8:: with SMTP id z24mr8344363otk.362.1580495947580; Fri, 31 Jan 2020 10:39:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580495947; cv=none; d=google.com; s=arc-20160816; b=RB4zfaVAyLNXAE1ErAJWMQtrnbtiJcJx58djDK6VxrtrMBAa2hHdofclJj0RLJblbf dayrzIrTcv54QCj92oIkGYM49SWC6sji9481BWIP0qJQ6hPFRbdwUvS3zSMMNkCaKdUD UlK409UtHAwRrX7SzuRuM3pzmb9EPyPAuOoBvATXE+Z+zEA4bcDiyZaRnWmmSQOJ392f JGoOAZd5radbXTvFbPkDjl4Iw1jiHOn8PxGEndVeap6AwwY8AuGeXsq2YtrseiUtP9rP bCVAs/qu32H+D4uc+MYLMewa0WTOIVO8tN69fxfNCJGGiLwlNUnhWT1YmHOhQunWmbIC d/FA== 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=OXV92UcuWOio8wUsLVreOblv28BcDDZ/aCq7MZ9L0O0=; b=nC+iBnvm+q8DAMHaOTMASHH1W3/ficefYBdLVsEQr6XkhGWD/3XUTr7+CSyYvNJ8Gm fSO730FdDT3q/g63vSpfFOmoJcZWJv/0lgRkL2aMJqLZsDr/5CULz8osfZDmwrlStEq3 +340gyvIJeNCnmGmT3Sexs+Kb0SFcHHoIw0nzdlwvmerba7scBvQDyS9WVl6Q7ognn2b RAKILnY/Fb6nzEV/SUR0WZP25BQNXBAv4sWRfR+7mm6Lat2hPOx0KhMrObCZu4G7Wz3L 1gPCOhtSojBLqj8sj54dwHhY6lEkE2Ns67kvdACmuYErqOvnyTK4IWwzmBpM/c+S6SvQ abHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=dyBDXys7; 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 q124si5137455oig.228.2020.01.31.10.38.55; Fri, 31 Jan 2020 10:39: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=dyBDXys7; 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 S1726102AbgAaShD (ORCPT + 99 others); Fri, 31 Jan 2020 13:37:03 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46004 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbgAaShD (ORCPT ); Fri, 31 Jan 2020 13:37:03 -0500 Received: by mail-wr1-f68.google.com with SMTP id a6so9781807wrx.12 for ; Fri, 31 Jan 2020 10:37:02 -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=OXV92UcuWOio8wUsLVreOblv28BcDDZ/aCq7MZ9L0O0=; b=dyBDXys7ffHNsUDuD8glyxvA6du8y/ciqORc6VBmFajxFRhllRCvSTruxF7auG/yVL oT4ZZPFRLwWW6M/oDxbO+qP7s9Z2THon72gYtdz4rPz1iAO6XclfZHugrbqZ4S6swYxn Bl71rENXgvALNgi0ok7tQyVA3/pEwQdnB/oi9RUJ+DtFLDnlTD5ZB2JmfTBVQ/cc0D1L cUMl2lO/njYVOr3glSxk0RouVn/Z6ZgUlqHhFwWMHigjnS+x9odQ1N5fDmBAF57SzshQ +I34qoU9qMUaVG8NDKAQ4mttDImRO0nLklkXTccD0AWtia4jWMTrs43RFK8WsMjcmaRJ XmPA== 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=OXV92UcuWOio8wUsLVreOblv28BcDDZ/aCq7MZ9L0O0=; b=Ys+lm8rX/cKl8xZ90tauc46dBjY3mgqR17KARUQdFh8bhsDNMcFvLiYsQRK72EKWKj 7XhjRKa8CiIzPV6TftmOrxAZzIj1ayZo69dqUMDH84pOaM4jebBWjSfURgVVWM1h4Grn yqo8s9M8YANZothgGNls8xp78Le+L6iA4qWc4NwkaIBTNU7qJdUKJkKSGh0FZ/2O94bv kO64yrOoi/JrNY0EqjfL1nKv7prVa9tJORRojSNp5J8XDPnGAtlS/Rvwi347zH9k8rO3 6HEKDSMZwixOGijWVs3TJn2nipmtIcRNK78nq4Oa862Vr9KPQ7Sc6KVLEeTmPvb817P3 q21A== X-Gm-Message-State: APjAAAUNJT+Irxmni76Efs40ruKYqf7oNaIspJ+B/r/r71rcr26bK4Fk CcF5MirpYFhWcqgaI+MAZJ8= X-Received: by 2002:adf:e483:: with SMTP id i3mr13216394wrm.215.1580495821710; Fri, 31 Jan 2020 10:37:01 -0800 (PST) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id o15sm12792705wra.83.2020.01.31.10.37.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 10:37:01 -0800 (PST) Date: Fri, 31 Jan 2020 19:36:58 +0100 From: Ingo Molnar To: =?iso-8859-1?Q?J=F6rg?= Otte , Dan Williams , Ard Biesheuvel Cc: Linus Torvalds , Linux Kernel Mailing List , the arch/x86 maintainers Subject: EFI boot crash regression (was: Re: 5.6-### doesn't boot) Message-ID: <20200131183658.GA71555@gmail.com> References: <20200131064327.GB130017@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 (Cc:ed Dan and Ard) * J?rg 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?rg 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 dangerous > > 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 to > > the boot options might improve the debug output: > > > > earlyprintk=vga initcall_debug ignore_loglevel debug panic_on_warn > > > > So for example if the relevant kernel boot entry in grub.cfg looks like > > this: > > > > linux /vmlinuz-5.3.0-26-generic root=UUID=1bcxabe3-0b62-4x04-b456-47cd90c0e6x4 ro splash $vt_handoff > > > > Then editing it to the following could in principle produce (much) more > > verbose boot output: > > > > linux /vmlinuz-5.3.0-26-generic root=UUID=1bcxabe3-0b62-4x04-b456-47cd90c0e6x4 ro earlyprintk=vga initcall_debug ignore_loglevel debug panic_on_warn $vt_handoff > > > > If this produces more output than just "loading initial ramdisk..' then a > > photo of the hung screen would be sufficient, no need to transcribe it. > > > > > 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 then > > 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. Thanks, Ingo