Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2139651rwa; Mon, 22 Aug 2022 02:53:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR51Di8bGHACa4+AaqsorNrbBtoEQC7bknndN4g2P6ft9z99y8ROE2cPCpHCOCQk5xpnvgRP X-Received: by 2002:a05:6402:448e:b0:446:69bb:9853 with SMTP id er14-20020a056402448e00b0044669bb9853mr9104455edb.299.1661161985593; Mon, 22 Aug 2022 02:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661161985; cv=none; d=google.com; s=arc-20160816; b=zy6Hy2hzRdB0NlpABPoKVhLMnWJrOHaiKXa2VUmqYQktrpmgn8HFlzNplZl4QgsF9j 9uP2HEH5REMWzqgYtf7BR0ow0itUcxAFCHXn2TVjRQE8s6AmhCQ7j5eQFslSZDafLgft 34cTlDuAqm2p3orJEFzH4kGmd71guArXZwLTliLNSVaXMHmWZQhWbVGCqy/J7Q8hEb0I k5SZ+WYY72dm1hsL/oiZqpnFoshXwYLb3DrUcWOP4xm5VGoP2AC7AneU4cZwpvNz2K1g jR09YJvqUEkZMoDplHicDevJXygfHhTuytIyL1rk2oER0+q0VP1XnJ0BHQZxTUPaIXzn IJwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9pcV3eZ+QnLRA0XsAYM4IM/p4BNCtqZUKuotEhc0N34=; b=nZzSLl3IvSIOGRSS0+62Y5twchfL7p3rKPUdx5bgl8ctkGC52xPDk0CaWbpCn1Ac59 Pwrmp1pBwECKfrPEl0l1jUOzs9YkvFRLtP5t9o6DF61Zy2pNHWCcNVLfw0IAItSXsOiS +Gd1V7IKbFd7odIQxHfxee0HP1Mw25M5PifGZcrUoo9EOs7LNwXQuFVk1Rks/ZqY95cy IhBNYzyi+vfBuAMZeZjnxtIAxRUyruDgBJM6svA8SFR38w8oWbmZbVxP1LuCMHf1dvvR 0fSb7uAeHpzPkTPP4IATPjIliwxdEQmjNUUPe60VG8Cot5kjax35Xerj/VT0g86tL/mH BNzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YhoZieWN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020a05640235d500b0044688da9bfesi5706576edc.225.2022.08.22.02.52.39; Mon, 22 Aug 2022 02:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YhoZieWN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234125AbiHVJBY (ORCPT + 99 others); Mon, 22 Aug 2022 05:01:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234085AbiHVJA5 (ORCPT ); Mon, 22 Aug 2022 05:00:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BE202E9EF; Mon, 22 Aug 2022 02:00:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AFD6960AD7; Mon, 22 Aug 2022 09:00:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB127C433D7; Mon, 22 Aug 2022 09:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661158855; bh=/r635Nf0GeBhwc+wnSHRPBxLAAUJnF8htkFn+8pytfU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YhoZieWNU1+BD+y8GAvexW7gtzw7/8i91r4/y0ie7lO6GwzasEo6h4TcPTAthtF7G VaSKrfTZCUcpOYqPi6QKh6EpdG6AdqZVXyU6mEjiRnVKN2LUXHowPqoZfLUQA6stXS dR3BTN2HCl2cnMqaVjKlL1iW5n184HVDqy7L8Q7w= Date: Mon, 22 Aug 2022 11:00:52 +0200 From: Greg KH To: Qu Wenruo Cc: stable , "linux-btrfs@vger.kernel.org" , Linux Kernel Mailing List , linux-x86_64@vger.kernel.org Subject: Re: LTS kernel Linux 4.14.290 unable to boot with edk2-ovmf (x86_64 UEFI runtime) Message-ID: References: <2d6012e8-805d-4225-80ed-d317c28f1899@gmx.com> <1ed5a33a-b667-0e8e-e010-b4365f3713d6@gmx.com> <8aff5c17-d414-2412-7269-c9d15f574037@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 22, 2022 at 04:13:03PM +0800, Qu Wenruo wrote: > > > On 2022/8/22 15:58, Greg KH wrote: > > On Mon, Aug 22, 2022 at 03:49:51PM +0800, Qu Wenruo wrote: > > > > > > > > > On 2022/8/22 15:33, Greg KH wrote: > > > > On Mon, Aug 22, 2022 at 03:24:53PM +0800, Qu Wenruo wrote: > > > > > > > > > > > > > > > On 2022/8/22 14:25, Greg KH wrote: > > > > > > On Mon, Aug 22, 2022 at 09:15:59AM +0800, Qu Wenruo wrote: > > > > > > > Hi, > > > > > > > > > > > > > > When backporting some btrfs specific patches to all LTS kernels, I found > > > > > > > v4.14.290 kernel unable to boot as a KVM guest with edk2-ovmf > > > > > > > (edk2-ovmf: 202205, qemu 7.0.0, libvirt 1:8.6.0). > > > > > > > > > > > > > > While all other LTS/stable branches (4.19.x, 5.4.x, 5.10.x, 5.15.x, > > > > > > > 5.18.x, 5.19.x) can boot without a hipccup. > > > > > > > > > > > > > > I tried the following configs, but none of them can even provide an > > > > > > > early output: > > > > > > > > > > > > > > - CONFIG_X86_VERBOSE_BOOTUP > > > > > > > - CONFIG_EARLY_PRINTK > > > > > > > - CONFIG_EARLY_PRINTK_EFI > > > > > > > > > > > > > > Is this a known bug or something new? > > > > > > > > > > > > Has this ever worked properly on this very old kernel tree? If so, can > > > > > > you use 'git bisect' to find the offending commit? > > > > > > > > > > Unfortunately the initial v4.14 from upstream can not even be compiled. > > > > > > > > Really? Try using an older version of gcc and you should be fine. It > > > > did build properly back in 2017 when it was released :) > > > > > > Yeah, I'm pretty sure my toolchain is too new for v4.14.0. But my distro > > > only provides the latest and mostly upstream packages. > > > > > > It may be a even worse disaster to find a way to rollback to older > > > toolchains using my distro... > > > > > > Also my hardware may not be well suited for older kernels either. > > > (Zen 3 CPU used here) > > > > > > In fact, I even find it hard just to locate a v4.14.x tag that can compile. > > > After some bisection between v4.14.x tags, only v4.14.268 and newer tags > > > can even be compiled using latest toolchain. > > > (But still tons of warning, and tons of objdump warnings against > > > insn_get_length()). > > > > > > I'm not sure what's the normal practice for backports to such old branch. > > > > > > Do you stable guys keep dedicated VMs loaded with older distro just for > > > these old branches? > > > > I don't, that's why those kernels can be built with newer versions of > > gcc. > > > > Your distro should have a version of gcc-10 or gcc-9 that can be > > installed, right? > > This may sounds like a meme, but I'm really using Archlinux for my VM > and host, and it doesn't provide older GCC at all. Archlinux does provide older gcc versions, that's what I use. It still supports gcc11 in the main repo, and there is gcc10 in AUR as well as gcc9. Try those! good luck! greg k-h