Re: [PATCH v3 00/11] arm64: BTI kernel and vDSO support

Will Deacon
2020-05-07T15:26:17Z

On Thu, May 07, 2020 at 04:07:13PM +0100, Mark Brown wrote:
> On Thu, May 07, 2020 at 03:35:47PM +0100, Will Deacon wrote:
> > On Thu, May 07, 2020 at 03:33:32PM +0100, Will Deacon wrote:
>
> > > Bugger, I'm still getting warnings (clang 11.0.1), but from an allmodconfig
> > > build now:
>
> > > warning: some functions compiled with BTI and some compiled without BTI
> > > warning: not setting BTI in feature flags
>
> > > (repeated many, many times).
>
> > > I'll try to get you some more info.
>
> Where are you getting this clang from? When I test using clang 11 from
> the LLVM apt repos right now it seems fine, and clang 11 doesn't seem to
> have been released yet so I'm guessing this is some kind of snapshot.

I'm using a build of:

https://android.googlesource.com/toolchain/llvm-project/+/b397f81060ce6d701042b782172ed13bee898b79

> > Quick look at the log suggests that these are caused by HDRTEST, whatever
> > that is.
>
> AFAICT that's something that's supposed to be checking for include
> guards and not doing anything fancy... I can't think what could cause
> this on a per-function basis.

Indeed, sorry for jumping the gun on that diagnosis.

Will