Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2767584ybb; Sun, 5 Apr 2020 16:20:18 -0700 (PDT) X-Google-Smtp-Source: APiQypL5l3JniFQhvfIlPSA9loabPHPuVjYxY2tCS/qMxs0NBgrSrJioend7hOqC3tedKxQUiNhs X-Received: by 2002:a05:6830:22c3:: with SMTP id q3mr16134412otc.152.1586128818329; Sun, 05 Apr 2020 16:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586128818; cv=none; d=google.com; s=arc-20160816; b=BmuTrpmT6R4QKyjTARpy5BhI6JDWO62rNkDSBQLgWvP1H0mEs+ebBUsmxU2tiOJ/tW i93jEhIrmM3fz2NfR08Tx0kR1L09ebpDWBRR+mpSyg67jIoc5pZFNqgWuuY2d0qymE7p Y7i07NSTFO+u9fSIFKqaQ5MzWTYSvsHkHE4nBCv673QUA5gtO/XienskPqbkb6iagDWs NptES3hbGg1hHOihLqNKT/skFjB1PEBTi2r0jv6xmvdkmEaO5RqcNQbdbGvqPhTrZXBb CgqnPhZc26mpjUje3anTHp7axtK/lNTrg3eJioOYzEFDqwNejU+Zzx7xabHA4zfNvW48 tKNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=M/F/f/WzwdqXVXZxqD6HXXgsX9oeQ3XHsN3eudpW6Js=; b=hOQLvoILg2P3MtAMQj/9NgSPQOSPyo2LUGfoJGL7qb73YjaC83J/aNsstd5NyyPOXk u47l3VmMH1dC/iXy1iMk5yn061dUAc9R+Yz/XzpG5yk87MJzOwPsrjlR2p5Ud8Kto6ss /rL9DqIpUUGxuuVtqXY2Wtq4DDoeiPmduImzDCFiDcM+avX7Rgiih2Q+tZzg8NsgzoZS jO3MHt5yFSyzoV4QbmETdmki0EqqmtAGGPA9StIbd1ngwAnN4AQiaUbx08xQmQYA+vr0 XVPXaVzenLStYT1hCyQU1VYVwr0h2ScjkOOaPZxrcU46dXjZfA4EH3Q5Nzb0hsv1ouSE FeAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QwVnRAi1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k30si6321569ool.81.2020.04.05.16.19.37; Sun, 05 Apr 2020 16:20:18 -0700 (PDT) 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=QwVnRAi1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727794AbgDEXSt (ORCPT + 99 others); Sun, 5 Apr 2020 19:18:49 -0400 Received: from mail-qv1-f66.google.com ([209.85.219.66]:34255 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727612AbgDEXSs (ORCPT ); Sun, 5 Apr 2020 19:18:48 -0400 Received: by mail-qv1-f66.google.com with SMTP id s18so6691449qvn.1; Sun, 05 Apr 2020 16:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=M/F/f/WzwdqXVXZxqD6HXXgsX9oeQ3XHsN3eudpW6Js=; b=QwVnRAi1GBtAEz+wTk1Adt9f8cAAAx7zwq08y7UvmAG+z2Tfvyf8ot33CvKSQrOOUw xsk7SYls+pdhTRdE9x97McpZA9ACwMFKldKpiS6DdfQ8gE8bC/B44wmXwJPKEwf1ebGw xmfFLdBp58U3VGm7FfkKVUByxwLg4zhreRneAYM+uAdqP/OiKHNey7uQKIqcjXkDf4tS ibEY4k+UsASqou4b7CbDmF5b8aUb8+wDHgDlNun/NjeXLjRyqvLA4WK47VbLICPRz49q 5MqZ49okDnTcgrmmgrdBuAH9aDBCZ94xAoKcUMcNU2rzCHaBg5TU8YDesEKLdDo6YTwt 4qhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=M/F/f/WzwdqXVXZxqD6HXXgsX9oeQ3XHsN3eudpW6Js=; b=WVBvPaHoRXpImGE/inBG+/e1gJNmUa/yfdfjcsublNjCHEBml/IzDrOOKp3h+oFJJs 3TklVHzJQOD3frJzVyYHq2hwocD4Vim38gtHklvemhTaJ8u0HKILRrITrVBggyY+yha0 nWfoF/bxQqzFRgna8Vz/w2qxWgdQ2UFE5rajAJKZyCn8KEHpVX3h8r1zh2qJwh0FZxiS lkSYOJtGxjV/OkafST7dRKoDPnyu7DYX0LOxjyJWUdZDbNW370zkNBhuXUsR/BgSQGXC MYvdefS4G+mFBklAqYi9MDjc9L8Z+Bywdm8UEQArgnYGwqSYuI4XZj+yWg1hqpp2HB11 3sPg== X-Gm-Message-State: AGi0PubXa6Q87AFmoDW5QN2SH8rXlUQeO6l0Uf1VhunDEEgM7fzdyTSz bW4jLODGWT4O9RjSiPfDLTg32RJ+ X-Received: by 2002:ad4:498c:: with SMTP id t12mr18696454qvx.27.1586128727395; Sun, 05 Apr 2020 16:18:47 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id o5sm3810154qkh.77.2020.04.05.16.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Apr 2020 16:18:46 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Sun, 5 Apr 2020 19:18:45 -0400 To: Sergey Shatunov Cc: nivedita@alum.mit.edu, bp@alien8.de, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, x86@kernel.org, linux-efi@vger.kernel.org Subject: Re: [PATCH 1/2] x86/boot/compressed/64: Remove .bss/.pgtable from bzImage Message-ID: <20200405231845.GA3095309@rani.riverdale.lan> References: <20200109150218.16544-1-nivedita@alum.mit.edu> <20200405154245.11972-1-me@prok.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200405154245.11972-1-me@prok.pw> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 05, 2020 at 10:42:46PM +0700, Sergey Shatunov wrote: > This patch causes some strange things happens with my laptop. > > Cold boot crashed in some early initilization logic with message 'Failed to execute /esp/.../linux.efi: Buffer Too Small'. > After couple reboots into firmware setup (bios) or hot reboot from other working kernel (without that commit) helps it to boot. > During bisecting couple times I saw different message: 'exit_efi() failed; efi_main() failed', but above tricks helps it too. > So bisect points to that commit and I tried to compile kernel with that commit reverted and it works flawlessly. > > Some notes about my setup: > Kernel tree I used: Torvalds git (which recently pulls that commit). > Kernel itself with initrd and cmdline packed into systemd-boot stub (probably here can be issues too, not sure). > Secure boot enabled with custom keyring. > > I can provide more info or change my setup (for example get rid of systemd-boot stub) if needed for sure. I'm not familiar with systemd-boot: when you say systemd-boot stub, is that something different from the kernel's EFI_STUB option? Or is it just a kernel with EFI_STUB enabled and with builtin initramfs + builtin cmdline? If it is different, can you point me to the tool that creates it? The first error message you mention should be from systemd-boot after the kernel exits with an EFI_BUFFER_TOO_SMALL error status. The second one -- is that 'exit_boot() failed' rather than 'exit_efi() failed'? I can't find the latter string in the tree. Can you also specify a commit tag that is broken + works with this patch reverted, just to make sure we're looking at the same code? Thanks Cc linux-efi.