From nobody Wed Feb 11 07:47:24 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0401113B298 for ; Mon, 27 Jan 2025 15:54:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737993271; cv=none; b=HoJbvY88jXzDHydrxg2AzX7MbM7bSaV49izzurDkTYVKAOC5WSKM0vFJHQZodNP2j1tIBGRbQp7p89C9+Ns8GcpH2N/iFhn2pkRW8Nh0MvMsWnM+rvZzhtpd7s25M0ketssd0ZdFA70t80uHoyZ6Z9p8nfuSWIHkz2BkvZLX+hA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737993271; c=relaxed/simple; bh=ZXCK40CraUL8tGi6tUPG+oNjZfiAR8aM9+SFn8pdTzA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MtiaDuSPo1LlKNlYNVKgAl1bJdxwsQJjth3Hkpk4AdkssjGHD4HibEbV5O1q88m2or5fuzROod09sjouZwOTCKlW0FHdPJgqK/kAgyr5EMJaa2rv9PMULs8R3xrT964xO7aZonjvF0n5edD4SjP2pwTQuauLi+Km5ewR6cVEGGY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iAFI23Wi; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iAFI23Wi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F61BC4CEE0; Mon, 27 Jan 2025 15:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737993270; bh=ZXCK40CraUL8tGi6tUPG+oNjZfiAR8aM9+SFn8pdTzA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iAFI23WiWXedMpD4myuD5gu1ePyvl2aQqlFmL850f/o5RYz+sJ9S2AJUvTIyfASXZ /e9j6C8ygWeXfYDo8uJ/GigsJiaZRP1n8f6yze4+esPItyEXvhTt4R5nTAHD7m14kb XwZ3fw/yUGqmbNU0eicfU3a47N1ZZmXXuAc6lF3EOwP0/9o36fqNEE2jjtCA57X27z QeuWXAv7dw3Dmij6m7yyK6nt9+Fwrvj71pa7O8qtr/Z8RremIUTd62eqbO2XbeNBmR RhGtmfrEAF7s+BVvMasMxdH6EBu+w7ndsRLsJoPsZNARYQ9kcw3uyb352fpX6/i5wn AlgxInD8ltKCQ== Date: Mon, 27 Jan 2025 16:54:20 +0100 From: Ingo Molnar To: Linus Torvalds Cc: Ard Biesheuvel , linux-kernel@vger.kernel.org, the arch/x86 maintainers , David Woodhouse , Peter Zijlstra , "H. Peter Anvin" Subject: [GIT PULL] x86 fix Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Linus, Please pull the latest x86/urgent Git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-202= 5-01-27 # HEAD: fb1102a09a3b6710ac1e033690f0283696dc94dc Revert "x86/boot: Rejec= t absolute references in .head.text" Fix a build regression on certain config and build environment combinations that generate absolute references to symbols. Thanks, Ingo ------------------> Ingo Molnar (1): Revert "x86/boot: Reject absolute references in .head.text" arch/x86/tools/relocs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c index e937be979ec8..27441e5863b2 100644 --- a/arch/x86/tools/relocs.c +++ b/arch/x86/tools/relocs.c @@ -841,10 +841,10 @@ static int is_percpu_sym(ElfW(Sym) *sym, const char *= symname) static int do_reloc64(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, const char *symname) { - int headtext =3D !strcmp(sec_name(sec->shdr.sh_info), ".head.text"); unsigned r_type =3D ELF64_R_TYPE(rel->r_info); ElfW(Addr) offset =3D rel->r_offset; int shn_abs =3D (sym->st_shndx =3D=3D SHN_ABS) && !is_reloc(S_REL, symnam= e); + if (sym->st_shndx =3D=3D SHN_UNDEF) return 0; =20 @@ -900,12 +900,6 @@ static int do_reloc64(struct section *sec, Elf_Rel *re= l, ElfW(Sym) *sym, break; } =20 - if (headtext) { - die("Absolute reference to symbol '%s' not permitted in .head.text\n", - symname); - break; - } - /* * Relocation offsets for 64 bit kernels are output * as 32 bits and sign extended back to 64 bits when