Re: [patch 00/38] x86/retbleed: Call depth tracking mitigation

From: Thomas Gleixner
Date: Sat Jul 23 2022 - 05:51:01 EST


On Thu, Jul 21 2022 at 17:54, Peter Zijlstra wrote:
> On Wed, Jul 20, 2022 at 11:13:16PM +0200, Peter Zijlstra wrote:
> The idea is the above callthunk that makes any offset work by not having
> the full hash as an immediate and allow kCFI along with
> -fpatchable-function-entry=N,M and include M in the offset.
>
> Specifically, I meant to use -fpatchable-function-entry=16,16, but alas,
> I never got that far.

That's embarrasing. I missed that option in the maze of gcc
options. That would have spared me to stare at gcc code :)