From nobody Thu Sep 11 12:56:01 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B225FC001DB for ; Thu, 3 Aug 2023 23:05:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229867AbjHCXFu (ORCPT ); Thu, 3 Aug 2023 19:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232653AbjHCXFU (ORCPT ); Thu, 3 Aug 2023 19:05:20 -0400 X-Greylist: delayed 77 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 03 Aug 2023 16:04:46 PDT Received: from esa1.hc3370-68.iphmx.com (esa1.hc3370-68.iphmx.com [216.71.145.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3521546A6 for ; Thu, 3 Aug 2023 16:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1691103886; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=d2QxI1VIFLr9Zd/T7UXA/F5/G1e1i21XBdqtpHTollM=; b=dZ/JD9osKOelmKpERnBhjdQY5ljF0Oikf4djvLfmqlTt8yZ1r+iUDry8 XI8lZDqjhmriS+sPoz9FAq4Eca6K2b60k8fNs6LZZT9wWeeO6k9xMs69l +6dT+jqx3e/vUHorC836aZKvVqM6+Bi80318C6gsKE/22X9Azu8QK+IwB Y=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none X-SBRS: 4.0 X-MesageID: 118879229 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.123 X-Policy: $RELAYED IronPort-Data: A9a23:UdM24Kj3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HmbP/3nhTRUXX8ave8pQNHsbae1oOJY3UI6OJqV/XU9A/zvs9eyah1 i3VZ3K0P3Kl1COZc17VNig7AF4tNL4mxU8G0eUXFQ7A8xAejUyHts/zq7NfkWEbydFe IronPort-HdrOrdr: A9a23:U0OCAqpB/l0jLOoyamIXvbwaV5oTeYIsimQD101hICG8cqSj+f xG+85rsyMc6QxhIE3I9urhBEDtex/hHNtOkOws1NSZLW7bUQmTXeJfBOLZqlWKcUDDH6xmpM NdmsBFeaTN5DNB7PoSjjPWLz9Z+qjkzJyV X-Talos-CUID: =?us-ascii?q?9a23=3A7JUfkGqsHo+4lgLDvCQvUJHmUc0kd3fNwkfzGh6?= =?us-ascii?q?fF39GTLTPZVvL5poxxg=3D=3D?= X-Talos-MUID: 9a23:4t+bKwjww5BoH4qRu0L6V8MpLMFRwKSWUUE3mpANh9uhLBAqBGzDpWHi X-IronPort-AV: E=Sophos;i="6.01,253,1684814400"; d="scan'208";a="118879229" From: Andrew Cooper To: LKML CC: Andrew Cooper , Petr Pavlu , Peter Zijlstra , Josh Poimboeuf Subject: [PATCH] x86/retpoline,kprobes: Fix "Fix position of thunk sections with CONFIG_LTO_CLANG" Date: Fri, 4 Aug 2023 00:03:23 +0100 Message-ID: <20230803230323.1478869-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230803215555.zl5oabntc44ry3uc@treble> References: <20230803215555.zl5oabntc44ry3uc@treble> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Lets hope there are no .text..__x86womble sections around. Fixes: 973ab2d61f33 ("x86/retpoline,kprobes: Fix position of thunk sections= with CONFIG_LTO_CLANG") Signed-off-by: Andrew Cooper Acked-by: Josh Poimboeuf --- CC: Petr Pavlu CC: Peter Zijlstra (Intel) CC: Josh Poimboeuf CC: linux-kernel@vger.kernel.org Alternatively, int strstarts(const char *s1, const char *s2) { return strncmp(s1, s2, strlen(s2)); } --- tools/objtool/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index e096eb325acd..e2ee10ce7703 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -389,7 +389,7 @@ static int decode_instructions(struct objtool_file *fil= e) if (!strcmp(sec->name, ".noinstr.text") || !strcmp(sec->name, ".entry.text") || !strcmp(sec->name, ".cpuidle.text") || - !strncmp(sec->name, ".text..__x86.", 12)) + !strncmp(sec->name, ".text..__x86.", 13)) sec->noinstr =3D true; =20 /* base-commit: 029239c5b0e6484e4443be90e5664fd0bf0f066b --=20 2.30.2