Re: [PATCH] [PATCH v2] AARCH64: Add gcc Shadow Call Stack support
From: Miguel Ojeda
Date: Fri Feb 25 2022 - 20:28:07 EST
On Fri, Feb 25, 2022 at 9:59 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>
> I thought about that too, but I think it's less simple due to the
> __has_feature vs CONFIG differences, etc:
> https://lore.kernel.org/lkml/202202251243.1E38256F9@keescook/
>
> But maybe __has_feature doesn't really matter here?
I have not tested it, but I was assuming the `CONFIG` could do its
job, since it comes from testing the compiler flag.
If the `__has_feature` is actually restricting it more than that, then
we should probably get the `CONFIG` fixed so that it only gets enabled
when really it is going to be used.
Cheers,
Miguel