Re: [PATCH] x86/retpoline,kprobes: Fix "Fix position of thunk sections with CONFIG_LTO_CLANG"

From: Peter Zijlstra
Date: Fri Aug 04 2023 - 04:29:44 EST


On Fri, Aug 04, 2023 at 12:03:23AM +0100, Andrew Cooper wrote:
> 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@xxxxxxxxxx>
> ---
> CC: Petr Pavlu <petr.pavlu@xxxxxxxx>
> CC: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> CC: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
> CC: linux-kernel@xxxxxxxxxxxxxxx
>
> Alternatively,
>
> int strstarts(const char *s1, const char *s2)
> {
> return strncmp(s1, s2, strlen(s2));
> }

Durr, I hate C ;-/ And yes, we have a ton of it, lemme try that
strstarts thing.