[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230803230323.1478869-1-andrew.cooper3@citrix.com>
Date: Fri, 4 Aug 2023 00:03:23 +0100
From: Andrew Cooper <andrew.cooper3@...rix.com>
To: LKML <linux-kernel@...r.kernel.org>
CC: Andrew Cooper <andrew.cooper3@...rix.com>,
Petr Pavlu <petr.pavlu@...e.com>,
Peter Zijlstra <peterz@...radead.org>,
Josh Poimboeuf <jpoimboe@...nel.org>
Subject: [PATCH] x86/retpoline,kprobes: Fix "Fix position of thunk sections with CONFIG_LTO_CLANG"
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 <andrew.cooper3@...rix.com>
---
CC: Petr Pavlu <petr.pavlu@...e.com>
CC: Peter Zijlstra (Intel) <peterz@...radead.org>
CC: Josh Poimboeuf <jpoimboe@...nel.org>
CC: linux-kernel@...r.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 *file)
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 = true;
/*
base-commit: 029239c5b0e6484e4443be90e5664fd0bf0f066b
--
2.30.2
Powered by blists - more mailing lists