Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp219368rdb; Tue, 31 Oct 2023 05:56:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHt4b5vSxkRgjKGSxVkxmBN0vXNXcg/vJD3inBBTTw//HjNK68NiAwiRYzojQd77nx7KsTM X-Received: by 2002:a17:902:f0d1:b0:1cc:32df:40e7 with SMTP id v17-20020a170902f0d100b001cc32df40e7mr4836803pla.66.1698756972852; Tue, 31 Oct 2023 05:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698756972; cv=none; d=google.com; s=arc-20160816; b=f8TktoH7ROQCUOIHWUlEX1ufgJCkeNenb/OzB46YBu7TyZCJJGYB/Qi9e1hwJSfm+u oHEBIRaYp92sMv8ZkG+aNJgdjarWsYfrzMVzYopZowwzlhwncVk3KsedpAVSEMZJYXR7 gd0+6N1jxvwZZS5Np5p14jiGA8Nuk2ObsBF0tm2hWQxf6AAjgf3pRPpNvLlBeBdQWnEt hfilk+43V7KPvJucB6IRRHPZITb54jwREf0g/xWA1d+KmsbJLboJzktAgMt4FbihMOzq Bq/EGBHWyo9AKbaLqpIYX7nB+ojkwgt/xMfIgDkRf114cKDUjbBg1Jqf0V6/tOP2FSTo wdcw== 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=UrRV9comlCzf1IwGcq6HH9xLRFn7wmQgqHRWwZQrrpk=; fh=ae5mecGgtUfA44OZRZ1Bvfpj7+uvFxaOiFvVfqOh6IM=; b=Y+YeWC6zFMWRz+R1RkG+ns4NFObS02ts6+Z/QynRtnIgbJppZBMFb95j9Bz7+vfRo4 RyeMjEg9RqXckeaEe2d+LrJjJk4xbDFBnSQgccCsZE4jWuWd0kzgeGr4UjaF4OMya/kP x5gGaqnP9XmE2H+ddR5LqzS6m+QFhvG9ghjE2AEpsgixcB1lqWWXKZFcCiOaDZmykQNU zc3RZD+eIJosC609IoEA6UHtZai/oUVFOyNK7jTs5mbKmRBWTb0nhAqwzE9caSDibT9N z3JACklSZwBs5DI8O8GKuC1NVIuzuu38bk1IbWSIcKD7iF5tJ5C6V5i9EowHAbY9H5XZ WuXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oXcs+V3P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d13-20020a170903230d00b001c61226fe40si998455plh.392.2023.10.31.05.56.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 05:56:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oXcs+V3P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D69768080E25; Tue, 31 Oct 2023 05:55:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344382AbjJaMzL (ORCPT + 99 others); Tue, 31 Oct 2023 08:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344376AbjJaMzK (ORCPT ); Tue, 31 Oct 2023 08:55:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C74FEB7; Tue, 31 Oct 2023 05:55:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA51EC433C8; Tue, 31 Oct 2023 12:55:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698756906; bh=RYewFD9TWjSqCwbN9nCh3XE/ZeLF89Q9BiBTGcTP5bY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oXcs+V3Pikwn7hI7NEzQFtLth6QsK0Dx016S7N1oBy6EB2HnqV3UO4bM8AMlf5VR8 c20wgb5Th1Yifknay+NRXSp6fUlhnlfcMvGZyI1C3tvVocKjyxn5dG8MuOAfzfQ2Py xVUHMdwkAv67S/O4imB2m1D8zzf6T6VRU7sG/s08= Date: Tue, 31 Oct 2023 13:54:57 +0100 From: Greg Kroah-Hartman To: Nathan Chancellor Cc: Sasha Levin , stable@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Josh Poimboeuf , Peter Zijlstra , x86@kernel.org Subject: Re: Apply a1e2c031ec39 and e32683c6f7d2 to 5.15 and earlier Message-ID: <2023103135-yesterday-exhaust-a621@gregkh> References: <20231027160144.GA232578@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027160144.GA232578@dev-arch.thelio-3990X> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 31 Oct 2023 05:55:26 -0700 (PDT) On Fri, Oct 27, 2023 at 09:01:44AM -0700, Nathan Chancellor wrote: > Hi Greg and Sasha, > > Please consider applying the following mbox files to their respective > stable trees, which contains commit a1e2c031ec39 ("x86/mm: Simplify > RESERVE_BRK()") and commit e32683c6f7d2 ("x86/mm: Fix RESERVE_BRK() for > older binutils"). This resolves a link failure noticed in the Android > trees due to a new diagnostic in ld.lld: > > https://github.com/llvm/llvm-project/commit/1981b1b6b92f7579a30c9ed32dbdf3bc749c1b40 > > ld.lld: error: relocation refers to a symbol in a discarded section: __brk_reservation_fn_dmi_alloc__ > >>> defined in vmlinux.o > >>> referenced by ld-temp.o > >>> vmlinux.o:(exit_amd_microcode.cfi_jt) > > ld.lld: error: relocation refers to a symbol in a discarded section: __brk_reservation_fn_early_pgt_alloc__ > >>> defined in vmlinux.o > >>> referenced by ld-temp.o > >>> vmlinux.o:(exit_amd_microcode.cfi_jt) > > While I think this may be related to Android's downstream use of LTO and > CFI, I see no reason that this could not happen without LTO due to > RESERVE_BRK() prior to those upstream commits residing in the > .discard.text section. > > I confirmed they resolve the Android build problem and I did an > ARCH=x86_64 defconfig build and boot test in QEMU and an allmodconfig > build with GCC, which had no regressions. All now queued up, thanks! If only all stable submissions were sent to us in such easy-to-consume-form :) thanks, greg k-h