Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2244670pxp; Mon, 21 Mar 2022 14:50:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX2oc1CPIRAWK+ftokTFm3JjuFJKd2E0mQ1uXTD1Wp9leg5VI8HC+09uI8GUS2RF2wpajR X-Received: by 2002:a17:90a:3906:b0:1bf:a0a6:d208 with SMTP id y6-20020a17090a390600b001bfa0a6d208mr1254676pjb.21.1647899441500; Mon, 21 Mar 2022 14:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647899441; cv=none; d=google.com; s=arc-20160816; b=MlflsEr5w/6FeH57GqE/J6+Tbh6msKHYN/KKjsH3fi5RyBbYYC3C84IVxL2zEHabfB NawkPxm7OChuSU9E5N1G/HvRCi2URX/6y3XXmDnHrpmgQvACOhka1EWKbtI0GhhXNBmn GzzAd4uDcFoDGcosP3nNbINXTdu2xUrSWrgyb2SbK40ouzVnUzdp7uiF8kuh+fVdmLek xPqFTL0oVy4EGLfnfMuChEnVdm9z4Lvv1s1elhlGZbXz4NjXCHZJXYVvalDUYWhjv3cY ET8HxRELusdUpnJ358idnirub39rfluEL4lOCpIsuiBsNx2kKgerzRv8HUTr0/edRJh6 CIhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=wjonFop97SJxLIIkA1yfkOYs5xrVUOoOy7I0a3jI9qY=; b=DV+5LIvzNa1L7V3bUNfkiNNSA9nGY5KNViBjXrSdXTJiCkwuINLHLfLsMOG4NUEhgk 46E0l4pg3Pul2oKzp7fEMIsxnCkYY8P1UKPugNa1mIu71+0mJRqxNgYjMIN/voXEi4yP r6boXTv9cEYTnDkRGXNXAyfzvY//fgyZxGT6XWFeR7A0axUQDY9C+51jEcQdwAnMiAea z7rfwN7j/gIRzV1WZp7x6dgFrV6m4jGdvibaDE7l4irGNyAvHyB/lo3XMK67vuxwuEvQ S2yiBfwKwVOBmmqaYnFDLNoxFwVfpZcR50g1qNgA5jqnuNR4ABlBMkKw8qRjsDZZ8ZI1 al3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="PBns/DsK"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mu9-20020a17090b388900b001c664b49d24si465661pjb.168.2022.03.21.14.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:50:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="PBns/DsK"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DD7F34CD69; Mon, 21 Mar 2022 14:18:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346054AbiCUJyk (ORCPT + 99 others); Mon, 21 Mar 2022 05:54:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346043AbiCUJyf (ORCPT ); Mon, 21 Mar 2022 05:54:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0A6610FC1; Mon, 21 Mar 2022 02:53:07 -0700 (PDT) Date: Mon, 21 Mar 2022 09:53:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647856386; 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=wjonFop97SJxLIIkA1yfkOYs5xrVUOoOy7I0a3jI9qY=; b=PBns/DsKtJQdXt6BJNm0qnNtlTgxkauX7daVf03K4Q4pfRouQGy9EEGaXfgoUpM9GMcUTW ADH/Ej5D34YdwErWfa5wSdGBouWNrLDAb7fuFaB5Hnw+wPkfVxL/WmNfuERvUxpo+Cphl6 WdtKYeYJta1VLk6g2N5t1RTN3qBRf6sCpfape3mP9PmpvDjVs90qo6ak3ooLjXQHnsEkgU Z6FTk+H0n1l/fxAFqNDWTZyoiTP4zkUUJxL7lB26yetKptLNmluyqzV4Jj32OZhdnsg1ix 1qgRif0hNwiiY6zsRXmGikDUe8qCV4vegj1j37RAkN49OclE0RzTff5oo3EmDw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647856386; 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=wjonFop97SJxLIIkA1yfkOYs5xrVUOoOy7I0a3jI9qY=; b=mI9VZkC17hdWzOYOOlOWo21QfxYiWkhSeeJhMljWhLNoIfWIm/+i1D1V+ue4cA4HGLbcB1 wNo4O+n2PnKDgiCg== From: "tip-bot2 for Nathan Chancellor" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/core] x86/Kconfig: Only allow CONFIG_X86_KERNEL_IBT with ld.lld >= 14.0.0 Cc: Nathan Chancellor , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220318230747.3900772-3-nathan@kernel.org> References: <20220318230747.3900772-3-nathan@kernel.org> MIME-Version: 1.0 Message-ID: <164785638482.389.7255038844058524411.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The following commit has been merged into the x86/core branch of tip: Commit-ID: 46a5cf598a940e674a574664c32ad3518dc9ed6f Gitweb: https://git.kernel.org/tip/46a5cf598a940e674a574664c32ad3518dc9ed6f Author: Nathan Chancellor AuthorDate: Fri, 18 Mar 2022 16:07:47 -07:00 Committer: Peter Zijlstra CommitterDate: Sat, 19 Mar 2022 00:47:13 +01:00 x86/Kconfig: Only allow CONFIG_X86_KERNEL_IBT with ld.lld >= 14.0.0 With CONFIG_X86_KERNEL_IBT=y and a version of ld.lld prior to 14.0.0, there are numerous objtool warnings along the lines of: warning: objtool: .plt+0x6: indirect jump found in RETPOLINE build This is a known issue that has been resolved in ld.lld 14.0.0. Prevent CONFIG_X86_KERNEL_IBT from being selectable when using one of these problematic ld.lld versions. Signed-off-by: Nathan Chancellor Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20220318230747.3900772-3-nathan@kernel.org --- arch/x86/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 921e4eb..8757926 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1875,6 +1875,8 @@ config X86_KERNEL_IBT prompt "Indirect Branch Tracking" bool depends on X86_64 && CC_HAS_IBT && STACK_VALIDATION + # https://github.com/llvm/llvm-project/commit/9d7001eba9c4cb311e03cd8cdc231f9e579f2d0f + depends on !LD_IS_LLD || LLD_VERSION >= 140000 help Build the kernel with support for Indirect Branch Tracking, a hardware support course-grain forward-edge Control Flow Integrity