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

From: Josh Poimboeuf
Date: Thu Nov 09 2023 - 19:38:01 EST


On Fri, Aug 04, 2023 at 10:43:28AM +0200, Peter Zijlstra wrote:
> On Fri, Aug 04, 2023 at 10:28:53AM +0200, Peter Zijlstra wrote:
> > On Fri, Aug 04, 2023 at 12:03:23AM +0100, Andrew Cooper wrote:
> > > 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.
>
> So there, that builds and compiles a kernel, must be good :-)

Would be nice to see this strstarts() change go in ;-)

Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>

--
Josh