From nobody Sun Feb 8 21:09:34 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7C1B825D537; Wed, 9 Apr 2025 10:21:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744194113; cv=none; b=m9f7t4PyoWjOda2pxoMrK3WSdy5EQ8pfiRULD0XOCD/3EcnOlTrGfRei4fwThZnblOF0ALf02+abfry55Dd+AFg+4yEo3oGO9Bv9K/ABTZGdSS7kO0VXzG2OiwetcF3YsxlWYRh/qrWH7SITsOIpwAjXv2q8Uy1mdTMz3R0T8yk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744194113; c=relaxed/simple; bh=j/4jf77R0PebDQIN52aFR5oHc0HxZrYVC7puNNdigD8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=AbeLh3tQoUlwGmojv5qMj02kQrrsoF8nb0eDAxNxWTTwYiuXUskvYnq81NNQiz81mazRrBVb7aXv5Cy5TAhzc9FRU795E/Bpws/l4++cRd9cv+j7WdnBFjQ/VeUNzB9eg6F0Gh/+5nysD6nDzIVqNsZdm5l7nq3qkn/3Ioie04M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=n7bbcThB; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZLbKptei; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="n7bbcThB"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZLbKptei" Date: Wed, 09 Apr 2025 10:21:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1744194109; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f/LXrH6QOy5Vp7GRM3jyiK+8jqSUek2ehoeMxwLSiz4=; b=n7bbcThBhq58IeQM4VQBm0AvUV7uCVB+hAejuFAtYM+73w6Zh+FurufRt7cLsU/ZngMT8V vJ3YyMvd9nxsFptg4bbaprYwmaPde5aVItRjRpkq5j/+4qIC80MTmV4Dv0tonuhpm4IlEI cuRDAcZOQMc8irNbZh3dcWQsHTbqLVpYTJo+WWvB7NCQ8Yev7rCb/z80b6Pt+ywWVjJ+r+ zJl1KZ5LtUbpjM7rDqdMp9+RthCkWKWOQnqRylYQNJYVOeVmhmuPnhyFAIL4N0nXAD4S5Q ff4WrcZcxKzJ0vxVUOyj7L10GlIaYaVHPjQy8hczhTXQ21fCJ0oBvMz16GvNPA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1744194109; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f/LXrH6QOy5Vp7GRM3jyiK+8jqSUek2ehoeMxwLSiz4=; b=ZLbKpteiCw916z/1P7X7uD581C5EFA0vcnl/SfDaULklHv7QGapZUyBX+XLqcG7P7sQ8hM RnUHaOUHpta3h7AA== From: "tip-bot2 for Ard Biesheuvel" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/boot] x86/boot/startup: Disable objtool validation for library code Cc: Chaitanya Kumar Borah , Ard Biesheuvel , Ingo Molnar , "H. Peter Anvin" , Kees Cook , Linus Torvalds , David Woodhouse , "Rafael J. Wysocki" , Len Brown , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250408085254.836788-10-ardb+git@google.com> References: <20250408085254.836788-10-ardb+git@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174419410761.31282.16523291113363404371.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/boot branch of tip: Commit-ID: d9fa398fe82728ee703ad2bd9cf5247df9626470 Gitweb: https://git.kernel.org/tip/d9fa398fe82728ee703ad2bd9cf5247df= 9626470 Author: Ard Biesheuvel AuthorDate: Tue, 08 Apr 2025 10:52:56 +02:00 Committer: Ingo Molnar CommitterDate: Wed, 09 Apr 2025 11:59:03 +02:00 x86/boot/startup: Disable objtool validation for library code The library code built under arch/x86/boot/startup is not intended to be linked into vmlinux but only into the decompressor and/or the EFI stub. This means objtool validation is not needed here, and may result in false positive errors for things like missing retpolines. So disable it for all objects added to lib-y Tested-by: Chaitanya Kumar Borah Signed-off-by: Ard Biesheuvel Signed-off-by: Ingo Molnar Cc: H. Peter Anvin Cc: Kees Cook Cc: Linus Torvalds Cc: David Woodhouse Cc: Rafael J. Wysocki Cc: Len Brown Cc: Josh Poimboeuf Link: https://lore.kernel.org/r/20250408085254.836788-10-ardb+git@google.com --- arch/x86/boot/startup/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/boot/startup/Makefile b/arch/x86/boot/startup/Makefile index 73946a3..8919a1c 100644 --- a/arch/x86/boot/startup/Makefile +++ b/arch/x86/boot/startup/Makefile @@ -4,3 +4,9 @@ KBUILD_AFLAGS +=3D -D__DISABLE_EXPORTS =20 lib-$(CONFIG_X86_64) +=3D la57toggle.o lib-$(CONFIG_EFI_MIXED) +=3D efi-mixed.o + +# +# Disable objtool validation for all library code, which is intended +# to be linked into the decompressor or the EFI stub but not vmlinux +# +$(patsubst %.o,$(obj)/%.o,$(lib-y)): OBJECT_FILES_NON_STANDARD :=3D y