Re: [PATCH v13 7/8] x86/vdso: Insert endbr32/endbr64 to vDSO

From: Yu, Yu-cheng
Date: Fri Sep 25 2020 - 12:30:07 EST


On 9/25/2020 9:18 AM, Andy Lutomirski wrote:
On Fri, Sep 25, 2020 at 7:58 AM Yu-cheng Yu <yu-cheng.yu@xxxxxxxxx> wrote:

From: "H.J. Lu" <hjl.tools@xxxxxxxxx>

When Indirect Branch Tracking (IBT) is enabled, vDSO functions may be
called indirectly, and must have ENDBR32 or ENDBR64 as the first
instruction. The compiler must support -fcf-protection=branch so that it
can be used to compile vDSO.

Acked-by: Andy Lutomirski <luto@xxxxxxxxxx>


Thanks!

Yu-cheng