Re: [PATCH v23 6/9] x86/entry: Introduce ENDBR macro

From: Dave Hansen
Date: Tue Mar 16 2021 - 13:47:21 EST


On 3/16/21 10:44 AM, Yu, Yu-cheng wrote:
>> Also, Boris asked for two *different* macros for 32 and 64-bit:
>>
>> https://lore.kernel.org/linux-api/20210310231731.GK23521@xxxxxxx/
>>
>> Could you do that in the next version, please?
>
> Yes, we can do two macros, probably in arch/x86/include/asm/vdso.h.

*But*, please do leverage _CET_ENDBR if you can. It seems awfully close
to what we need. If it works out, just use it for the 32/64-bit switch.